libfprint/libfprint
Bastien Nocera 94450a1d74 lib: Fix fpi_img_is_sane()
The checks weren't:
- checking whether the width or height were negative
- whether img->width * img->height would overflow, or
  was bigger than G_MAXINT
- whether img->width * img->height was bigger than the total
  length of the buffer

The last one looks like a thinko, it checked for:
(img->length * img->height) < img->length
which is equivalent to:
img->height < 1
which we already check for earlier.

Closes: #85
2018-10-12 00:54:39 +00:00
..
drivers lib: Rename assembling.[ch] 2018-09-28 15:12:39 +02:00
nbis mindtct: Fix a memory leak in morph_TF_map() 2018-10-12 00:54:39 +00:00
drivers_api.h lib: Include "fpi-dev.h" in drivers header 2018-09-28 15:12:39 +02:00
empty_file build: Remove the need to modify sources for new drivers 2018-05-24 12:23:39 +02:00
fp_internal.h lib: Tidy fp_internal.h 2018-09-28 15:12:39 +02:00
fpi-assembling.c lib: Rename assembling.[ch] 2018-09-28 15:12:39 +02:00
fpi-assembling.h lib: Rename assembling.[ch] 2018-09-28 15:12:39 +02:00
fpi-async.c lib: Split off async functions 2018-09-28 15:12:39 +02:00
fpi-async.h lib: Split off async functions 2018-09-28 15:12:39 +02:00
fpi-core.c lib: Move fp_dev helpers to fpi-dev.h from fpi-core.h 2018-09-28 15:12:39 +02:00
fpi-core.h lib: Move driver definitions to fpi-core.h 2018-09-28 15:12:39 +02:00
fpi-data.c lib: Make fpi_print_data_item_free() static 2018-09-28 15:12:39 +02:00
fpi-data.h lib: Split off fpi_print_data helpers 2018-09-28 15:12:39 +02:00
fpi-dev-img.c lib: Split off imgdev functions 2018-09-28 15:12:39 +02:00
fpi-dev-img.h lib: Split off imgdev functions 2018-09-28 15:12:39 +02:00
fpi-dev.c lib: Move fp_dev helpers to fpi-dev.h from fpi-core.h 2018-09-28 15:12:39 +02:00
fpi-dev.h lib: Remove titles from headers 2018-09-28 15:12:39 +02:00
fpi-img-pixman.c lib: Split off fp_img helpers 2018-09-28 15:12:39 +02:00
fpi-img.c lib: Fix fpi_img_is_sane() 2018-10-12 00:54:39 +00:00
fpi-img.h lib: Move fp_minutiae to fpi-img.h 2018-09-28 15:12:39 +02:00
fpi-log.h lib: Remove titles from headers 2018-09-28 15:12:39 +02:00
fpi-poll.c lib: Fix gtk-doc warning 2018-09-27 16:08:21 +02:00
fpi-poll.h lib: Remove titles from headers 2018-09-28 15:12:39 +02:00
fpi-ssm.c Revert "lib: Mark fpi_ssm_get_user_data as deprecated" 2018-09-28 15:12:39 +02:00
fpi-ssm.h lib: Remove titles from headers 2018-09-28 15:12:39 +02:00
fpi-sync.c lib: Rename sync.c to fpi-sync.c 2018-09-28 15:12:39 +02:00
fpi-usb.c lib: Add USB transfer helpers 2018-09-27 14:49:50 +02:00
fpi-usb.h lib: Remove titles from headers 2018-09-28 15:12:39 +02:00
fprint-list-supported-devices.c lib: Supported devices list is for master, not stable 2018-06-12 12:46:19 +02:00
fprint-list-udev-rules.c elan: Remove supported devices from udev whitelist 2018-08-09 14:45:15 +02:00
fprint.h lib: Add accessor for minutia coordinates 2018-10-08 16:50:59 +02:00
meson.build lib: Split off imgdev functions 2018-09-28 15:12:39 +02:00