Skip to content

CSS lexer infinite loop on nuiLayout rules/anchors parsing #38

@mathieugarcia

Description

@mathieugarcia

It looks like the parser expects two tokens for each orientation. Giving just one results in an infinite loop:

Layout = [center] / [top, bottom];

Backtrace:

* thread #1: tid = 0x845464, 0x00000001028e16fb XXX`nglString::GetLength(this=0x00007fff5fbec300) const + 11 at nglString.cpp:547, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00000001028e16fb XXX`nglString::GetLength(this=0x00007fff5fbec300) const + 11 at nglString.cpp:547
    frame #1: 0x00000001028e1ab7 XXX`nglString::GetNextUChar(this=0x00007fff5fbec300, Index=0x00007fff5fbebd80) const + 87 at nglString.cpp:596
    frame #2: 0x0000000103feb046 XXX`nuiLayoutConstraint::Set(this=0x00007fff5fbec180, rDescription=0x00007fff5fbec300) + 806 at nuiLayout.cpp:140
    frame #3: 0x0000000103ff3736 XXX`nuiLayout::SetConstraint(this=0x000061f0002fa280, pWidget=0x00006200001ef080, rDescription=0x00007fff5fbec500) + 1046 at nuiLayout.cpp:520
    frame #4: 0x0000000103ff324b XXX`nuiLayout::AddChild(this=0x000061f0002fa280, pChild=0x00006200001ef080) + 315 at nuiLayout.cpp:382
    frame #5: 0x0000000102f70569 XXX`nuiWidgetCreator::Create(this=0x000060e000199f40, rParamDictionary=size=1, pBuilder=0x000000010602f2a0) const + 15113 at nuiBuilder.cpp:329

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions