Skip to content

Use after free abort on invalid program input #4

@JeanMertz

Description

@JeanMertz

While investigating #3, I accidentally used a bad program, which caused the program to crash with a use after free error.

program:

.[] | .hello

input:

[1,2,3]

output:

my_crate-336024fec8446e30(13853,0x7000023d9000) malloc: Incorrect checksum for freed object 0x7f97cdb000d0: probably modified after being freed.
Corrupt value: 0x80000000ffffffff
my_crate-336024fec8446e30(13853,0x7000023d9000) malloc: *** set a breakpoint in malloc_error_break to debug
error: process didn't exit successfully: `/Users/jean/Development/Projects/my_crate/target/debug/deps/my_crate-336024fec8446e30` (signal: 6, SIGABRT: process abort signal)

It doesn't always aobrt (as you might expect with errors like these), sometimes it works as expected:

oarse error: Cannot index number with string \"hello\"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions