saethlin / crater-at-home

We have Crater At Home
MIT License
20 stars 4 forks source link

Actually recognize ASan error messages #87

Open saethlin opened 1 year ago

saethlin commented 1 year ago

https://github.com/saethlin/crater-at-home/blob/eaaea3d9c30b5d7d6daf2723fbf994af8369a113/src/diagnose.rs#L70-L79

ASan diagnosis only special-cases the too-large allocations. So we end up with some goofy diagnoses like UB: SEGV which should indicate clearly that this is a null pointer deref, and UB: attempting which is just the first word of "attempting double free".