Summary: | jbig2dec needs to check malloc() return values | ||
---|---|---|---|
Product: | jbig2dec | Reporter: | Masaki Ushizaka <masaki.ushizaka> |
Component: | Parsing | Assignee: | Henry Stiles <henry.stiles> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | shailesh.mistry |
Priority: | P4 | ||
Version: | master | ||
Hardware: | All | ||
OS: | All | ||
Customer: | Word Size: | --- | |
Attachments: |
check all malloc paths for an error being returned
Patch to check for realloc error paths |
Description
Masaki Ushizaka
2010-04-27 07:53:49 UTC
Created attachment 8160 [details]
check all malloc paths for an error being returned
This patch checks all return paths to ensure that the appropriate error is returned on failure. It has been regression tested and no cluster differences were found.
Okay Shailesh, please commit. Patch committed in d20a6cb9f12682804af2e74ec5d6bb75ca9d5410 Created attachment 8227 [details]
Patch to check for realloc error paths
This patch adds to the previous one by catering for the following areas :-
1) All realloc paths have been checked to ensure the correct error is returned on failure
2) code now redundant due to the use of memset has been removed
3) free memory highlighted by valgrind run
Thanks Shailesh, please commit. Patch committed in c0573245db4f03c6cdca24906d73151a4e9be3c9 |