[fossology/fossology] f0348b: fix(buckets): Prevent possible buffer overflow/-run


Gaurav Mishra <noreply@...>
 

Branch: refs/heads/master
Home: https://github.com/fossology/fossology
Commit: f0348b64ccebc2ad8694903b0559d4e56a766065
https://github.com/fossology/fossology/commit/f0348b64ccebc2ad8694903b0559d4e56a766065
Author: Andreas J. Reichel <andreas.reichel@...>
Date: 2019-09-03 (Tue, 03 Sep 2019)

Changed paths:
M src/buckets/agent/buckets.h
M src/buckets/agent/liccache.c
M src/buckets/agent/walk.c

Log Message:
-----------
fix(buckets): Prevent possible buffer overflow/-run

Allocate enough space for sprintf, use strncpy correctly to be sure
to have a 0 at the end of the dest buffer.

Signed-off-by: Andreas J. Reichel <andreas.reichel@...>


Commit: 221da0ffdc8bd83e31dd2c99d3495ffee63c7261
https://github.com/fossology/fossology/commit/221da0ffdc8bd83e31dd2c99d3495ffee63c7261
Author: Gaurav Mishra <@gmishx>
Date: 2019-09-19 (Thu, 19 Sep 2019)

Changed paths:
M src/buckets/agent/buckets.h
M src/buckets/agent/liccache.c
M src/buckets/agent/walk.c

Log Message:
-----------
Merge pull request #1437 from andi8086/andreas/gcc8-buckets

fix(buckets): Prevent possible buffer overflow/-run

Reviewed-by: @gmishx
Tested-by: @gmishx


Compare: https://github.com/fossology/fossology/compare/9d0441ff636d...221da0ffdc8b

Join fossology-commits@lists.fossology.org to automatically receive all group messages.