iovisor / ubpf

Userspace eBPF VM
Apache License 2.0
814 stars 132 forks source link

Freeing stack memory via free is undefined behavior #496

Closed Alan-Jowett closed 3 months ago

Alan-Jowett commented 3 months ago

The variable stack_frames is located on the stack and not dynamically allocated. Freeing it results in undefined behavior.

coveralls commented 3 months ago

Coverage Status

coverage: 81.279%. remained the same when pulling 74c126ce56d216a5973f1528c2962c14e6378ada on Alan-Jowett:bad_free into 54be1df5237bbaa2ba3bf121fd08ad4bee603250 on iovisor:main.