quirc/lib
Alexandre Perrin 1f9edb0b84 Fix a potential use-after-free on quirc_resize failure.
Before this patch, in the event of `q->image` reallocation success but
`q->pixels` failure, `q->image` would point to a freed memory.

After this patch, once quirc_resize() returns, `q->image` consistently
point to a memory address that can be freed.

There is still an inconsistency left in the example codepath: `q->{h,w}`
would hold the "old" values, while `q->image` allocated size would be
based in the requested width/height; hence the comment update about the
state of the QR-code recognizer (it should only be passed to
quirc_destroy()).
2017-06-07 19:37:14 +02:00
..
decode.c Comment fix 2017-05-30 19:23:42 +02:00
identify.c identify: fix warning 2017-04-30 10:42:14 +01:00
quirc.c Fix a potential use-after-free on quirc_resize failure. 2017-06-07 19:37:14 +02:00
quirc.h Fix a potential use-after-free on quirc_resize failure. 2017-06-07 19:37:14 +02:00
quirc_internal.h Deinterleave blocks correct. 2016-12-28 15:37:18 +13:00
version_db.c Deinterleave blocks correct. 2016-12-28 15:37:18 +13:00