Skip to content

pratt parser panics on invalid input #562

@OmarTawfik

Description

@OmarTawfik

Copied from 0xalpharush/slang-fuzz#1

contract test {

	function intMinA() public pure returns (bool) {

		int8 int8_min = type(int8).min;
		require(int8_min == -2*;
  0   n == -2**127);

		return true;
	}

	function intMinC() public pure returreturn trb3
thread '<unnamed>' panicked at 'removal index (is 2) should be < len (is 2)', /Users/alpharush/.cargo/git/checkouts/slang-30d565f6b9959ce1/c542db9/crates/solidity/outputs/cargo/crate/src/legacy/generated/parser_helpers.rs:277:37

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions