Closed GoogleCodeExporter closed 9 years ago
Hi Brian
Thanks, quite a thorough investigation :)
It happens that some of these corrections were already completed into latest
rc, but you nonetheless managed to find more of them.
Yes, this will be corrected.
Original comment by yann.col...@gmail.com
on 25 Jul 2013 at 11:41
Original comment by yann.col...@gmail.com
on 25 Jul 2013 at 11:41
You'll find in attached file a proposed rc,
which should correct all the points mentioned in this issue.
Rgds
Original comment by yann.col...@gmail.com
on 25 Jul 2013 at 11:45
Attachments:
FWIW cppcheck[1] is the one that found these issues :-)
With the lz4rc.zip provided, the following issues (still) exist:
bench.c:
* Before line 347, there should be a `free(chunkP);`.
fullbench.c:
* Before line 368, there should be a `free(chunkP);`.
lz4c:
* Before line 642, there should be a `free(headerBuffer);`.
* On line 365, a less-than-zero check is done on an unsigned integer.
* The `if (errorcode)` checks on line 340 is unnecessary because
get_fileHandle() always returns 0.
[1] http://cppcheck.sourceforge.net/
Original comment by msc...@gmail.com
on 25 Jul 2013 at 12:54
Nice tip, I should look more into this tool :)
Original comment by yann.col...@gmail.com
on 25 Jul 2013 at 1:22
The following rc seems to successfully pass cppCheck
(excluding style-related warnings)
Original comment by yann.col...@gmail.com
on 25 Jul 2013 at 3:15
Attachments:
Yep, that one looks good now :-)
Original comment by msc...@gmail.com
on 25 Jul 2013 at 5:39
Integrated into r99
Original comment by yann.col...@gmail.com
on 27 Jul 2013 at 11:29
Original issue reported on code.google.com by
msc...@gmail.com
on 24 Jul 2013 at 9:36