Commit Graph

6 Commits (167ea1f4f0003f3e9f7ca1e586189e99cf33d47f)

Author SHA1 Message Date
Pierre Joye 167ea1f4f0
Fix tests based on coverity reports (#819)
* Partial #818, unused arg

* Partial #818, init var

* partail #818, fix va_args usage

* partail #818, handle f* calls and avoid possible call to malloc with negative values

* partail #818, prevent double free

* partail #818, resource leak if test fail

* partail #818, null deref fix

* partail #818, avoid double free on fp failure

* Partial #818, fix error msg

* Partial #818, leak on error

* Partial #818, null deref

* Partial #818, avoid possible negative index on failure

* partial #818, does not free if we return if requested new size overflow

* partial #818, avoid double free, free where the alloc happened
2022-02-01 15:09:01 +07:00
Pierre Joye 20f9273879 use gdtest api 2016-07-17 15:49:09 +07:00
Pierre Joye f5f112d1aa fix #245 2016-07-14 14:03:46 +07:00
Pierre Joye dd8f99a4e3 fix #255, some duplicate cases but allow png&gd2 tests 2016-07-14 13:47:07 +07:00
Mike Frysinger 0315e441ec tests: gd2: add general read test helpers #208
Since we have random files we want to read & check, turn the two
read programs into general tools.  Then we have shell scripts to
run against the right inputs.

Most of the changes here are just shuffling variable names so we
can add to check_PROGRAMS independently of TESTS.
2016-04-30 21:52:45 -04:00
Mike Frysinger 2bb97f407c gd2: handle corrupt images better (CVE-2016-3074)
Make sure we do some range checking on corrupted chunks.

Thanks to Hans Jerry Illikainen <hji@dyntopia.com> for indepth report
and reproducer information.  Made for easy test case writing :).
2016-04-16 03:51:22 -04:00