- 13 Dec, 2018 7 commits
-
-
Bastien Nocera authored
Assert if any of the multiplications, which are then used to allocate memory, would overflow. Closes: #100
-
Bastien Nocera authored
Assert if any of the multiplications, which are then used to allocate memory, would overflow. Closes: #101
-
Bastien Nocera authored
Assert if any of the multiplications, which are then used to allocate memory, would overflow. Closes: #103
-
Bastien Nocera authored
This will allow us to segragate helper functions that we want to use within NBIS. The first helper will be a macro checking for overflow in multiplications.
-
Bastien Nocera authored
libfprint/nbis/mindtct/ridges.c:284:13: warning: Potential leak of memory pointed to by 'nbr_list' free(nbr_sqr_dists); ^~~~
-
Bastien Nocera authored
Free the maps if we're not returning them. libfprint/nbis/mindtct/maps.c:176:14: warning: Potential leak of memory pointed to by 'direction_map' return(ret); ^~~ libfprint/nbis/mindtct/maps.c:195:14: warning: Potential leak of memory pointed to by 'low_contrast_map' return(ret); ^~~ libfprint/nbis/mindtct/maps.c:195:14: warning: Potential leak of memory pointed to by 'low_flow_map' return(ret); ^~~
-
Bastien Nocera authored
libfprint/nbis/mindtct/shape.c:263:13: warning: Potential leak of memory pointed to by 'shape' fprintf(stderr, ^~~~~~~
-
- 12 Dec, 2018 18 commits
-
-
Bastien Nocera authored
libfprint/nbis/mindtct/ridges.c:153:7: warning: 1st function call argument is an uninitialized value free(nbr_list); ^~~~~~~~~~~~~~
-
Bastien Nocera authored
libfprint/nbis/bozorth3/bozorth3.c:704:1: warning: Value stored to 'kx' is never read kx = 0; ^ ~ libfprint/nbis/bozorth3/bozorth3.c:820:4: warning: Value stored to 'l' is never read l = 1; ^ ~
-
Bastien Nocera authored
The first contour wasn't freed if we failed on the second contour. libfprint/nbis/mindtct/contour.c:521:14: warning: Potential leak of memory pointed to by 'half1_ex' return(ret); ^~~ libfprint/nbis/mindtct/contour.c:521:14: warning: Potential leak of memory pointed to by 'half1_ey' return(ret); ^~~ libfprint/nbis/mindtct/contour.c:521:14: warning: Potential leak of memory pointed to by 'half1_x' return(ret); ^~~ libfprint/nbis/mindtct/contour.c:521:14: warning: Potential leak of memory pointed to by 'half1_y' return(ret); ^~~
-
Bastien Nocera authored
libfprint/nbis/mindtct/dft.c:212:30: warning: The left operand of '*' is a garbage value cospart += (rowsums[i] * wave->cos[i]); ~~~~~~~~~~ ^
-
Bastien Nocera authored
libfprint/drivers/elan.c:351:4: warning: 2nd function call argument is an uninitialized value dbg_buf(elandev->last_read, transfer->actual_length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libfprint/drivers/elan.c:46:5: note: expanded from macro 'dbg_buf' fp_dbg("%02x", buf[0]); \ ^~~~~~~~~~~~~~~~~~~~~~ ../../../../../../Projects/jhbuild/libfprint/libfprint/fpi-log.h:52:16: note: expanded from macro 'fp_dbg' #define fp_dbg g_debug ^ libfprint/drivers/elan.c:351:4: warning: The left operand of '<<' is a garbage value dbg_buf(elandev->last_read, transfer->actual_length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libfprint/drivers/elan.c:48:27: note: expanded from macro 'dbg_buf' fp_dbg("%04x", buf[0] << 8 | buf[1]); \ ~~~~~~ ^ libfprint/drivers/elan.c:351:4: warning: The left operand of '<<' is a garbage value dbg_buf(elandev->last_read, transfer->actual_length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libfprint/drivers/elan.c:50:41: note: expanded from macro 'dbg_buf' fp_dbg("%04x... (%d bytes)", buf[0] << 8 | buf[1], len) ~~~~~~ ^
-
Bastien Nocera authored
libfprint/drivers/elan.c:598:10: warning: Division by zero bg_mean /= frame_size; ~~~~~~~~^~~~~~~~~~~~~
-
Bastien Nocera authored
libfprint/drivers/elan.c:249:26: warning: Division by zero px = (px - min) * 0xff / (max - min); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
-
Bastien Nocera authored
libfprint/drivers/aesx660.c:292:10: warning: Potential leak of memory pointed to by 'stripe' return 0; ^
-
Bastien Nocera authored
libfprint/drivers/aeslib.c:156:1: warning: Potential leak of memory pointed to by 'wdata' } ^
-
Bastien Nocera authored
-
Bastien Nocera authored
By asserting if we have a zero line width. libfprint/drivers/upeksonly.c:118:7: warning: Division by zero mean /= (ctx->line_width / 2); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
-
Bastien Nocera authored
libfprint/drivers/uru4000.c:1357:3: warning: Potential leak of memory pointed to by 'urudev' fp_err("could not get encryption slot"); ^~~~~~
-
Bastien Nocera authored
We don't need to assign urudev if we only want the size of one of its members. libfprint/drivers/uru4000.c:554:20: warning: Value stored to 'urudev' during its initialization is never read struct uru4k_dev *urudev = FP_INSTANCE_DATA(FP_DEV(dev)); ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
Bastien Nocera authored
Use GPtrArray to simplify the implementation. libfprint/fpi-data.c:777:13: warning: Access to field 'data' results in a dereference of a null pointer (loaded from variable 'elem') list[i] = elem->data; ^~~~~~~~~~
-
Bastien Nocera authored
libfprint/fpi-data.c:497:7: warning: 2nd function call argument is an uninitialized value if (!fp_dev_supports_print_data(dev, fdata)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
Bastien Nocera authored
libfprint/fpi-data.c:393:3: warning: Potential leak of memory pointed to by 'buf' fp_err("couldn't create storage directory"); ^~~~~~ libfprint/fpi-log.h:75:16: note: expanded from macro 'fp_err' #define fp_err g_warning ^~~~~~~~~
-
Bastien Nocera authored
libfprint/fpi-poll.c:398:11: warning: The left operand of '==' is a garbage value else if (timercmp(&fprint_timeout, &libusb_timeout, <)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/time.h:162:17: note: expanded from macro 'timercmp' (((a)->tv_sec == (b)->tv_sec) ? \ ~~~~~~~~~~~ ^
-
Bastien Nocera authored
libfprint/fpi-ssm.c:244:9: warning: Access to field 'completed' results in a dereference of a null pointer (loaded from variable 'machine') BUG_ON(machine->completed); ^~~~~~~~~~~~~~~~~~ libfprint/fpi-log.h:84:6: note: expanded from macro 'BUG_ON' if (condition) { \ ^~~~~~~~~
-
- 06 Dec, 2018 1 commit
-
-
Bastien Nocera authored
See dda6857f and https://bugzilla.redhat.com/show_bug.cgi?id=1656518 When the number of lines to assemble is 1, the median_filter() function would be passed -1 as its size as it was calculated with: (num_lines / 2) - 1 so (1 / 2) - 1 = 0 - 1 = -1 Add a guard to stop drivers trying to assemble single lines. This doesn't however fix the vfs5011 driver that tried to do that.
-
- 04 Dec, 2018 2 commits
-
-
Bastien Nocera authored
This reverts commit bcfe0ad1.
-
Bastien Nocera authored
It's currently broken on our CI runners, we'll need to reactivate it again in the future.
-
- 03 Dec, 2018 2 commits
-
-
Vasily Khoruzhick authored
-
Vasily Khoruzhick authored
-
- 30 Nov, 2018 2 commits
-
-
Bastien Nocera authored
-
Bastien Nocera authored
They are already declared in fpi-core.h. Also move their API docs to fpi-core.h.
-
- 29 Nov, 2018 8 commits
-
-
Bastien Nocera authored
-
Bastien Nocera authored
We shouldn't need to use fpi_imgdev_set_action_result(), because as fpi_imgdev_image_captured() is already there.
-
Bastien Nocera authored
Those usually appear in struct definitions which will be at the bottom of the docs, so there's nothing but the bottom of the page below.
-
Bastien Nocera authored
It's only used internally.
-
Bastien Nocera authored
-
Bastien Nocera authored
They're only used by this super quirky driver that stores data internally. See #127
-
Bastien Nocera authored
As those aren't used in any driver.
-
Bastien Nocera authored
And add a couple of helpers for the upekts driver to use.
-