[hackers] [farbfeld] fix segfault on JPG error || FRIGN
commit dbfeeacb8c678974f89eb1fd09a7ef6a6076c8fb
Author: FRIGN <dev_AT_frign.de>
AuthorDate: Tue Dec 8 16:57:22 2015 +0100
Commit: FRIGN <dev_AT_frign.de>
CommitDate: Tue Dec 8 16:57:22 2015 +0100
fix segfault on JPG error
thanks Quentin Rameau!
diff --git a/jpg2ff.c b/jpg2ff.c
index f7ac5fc..52b4928 100644
--- a/jpg2ff.c
+++ b/jpg2ff.c
_AT_@ -37,7 +37,7 @@ main(int argc, char *argv[])
struct jpeg_decompress_struct cinfo;
struct jpeg_error_mgr jerr;
uint32_t width, height, val_be;
- uint16_t *ff_row;
+ uint16_t *ff_row = NULL;
size_t jpeg_row_len, ff_row_len, i, dx, sx;
int ret = 1;
JSAMPARRAY buffer; /* output row buffer */
Received on Tue Dec 08 2015 - 16:57:43 CET
This archive was generated by hypermail 2.3.0
: Tue Dec 08 2015 - 17:00:16 CET