Skip to content

[Bug/Enhance]: Loop fails to terminate when loop argument is negative.  #7

Description

@Enkryp

Bug

Infinite loops for repeat (negative) [...]

Fix

In visitLoop in builder.py:

change
loopCond = ChironAST.ConditionCommand(ChironAST.NEQ(counterVar, constZero))
to
loopCond = ChironAST.ConditionCommand(ChironAST.GT(counterVar, constZero))

otherwise fuzzers will go into infinite loops if repeat has a fuzzing var.

version: 1.0.4

Metadata

Metadata

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions