1. 12 Jun, 2019 4 commits
  2. 11 Jun, 2019 3 commits
    • Benjamin Berg's avatar
      data: Deprecate print storage API · 0a45ed7a
      Benjamin Berg authored
      The only API user currently seems to be the examples. fprintd has its
      own storage and that will be a good idea in general.
      
      So deprecate the API, we'll need to find a different solution for the
      examples eventually.
      0a45ed7a
    • Benjamin Berg's avatar
      core: Add guards to public API · 1db2dc3f
      Benjamin Berg authored
      Add appropriate g_return_val_if_fail macros to all public API functions
      to guard against NULL pointers being passed into libfprint.
      1db2dc3f
    • Benjamin Berg's avatar
      poll: Remove fpi_timeout_cancel_for_dev · 953c7557
      Benjamin Berg authored
      The function was committed by accident as part of commit d18e1053
      (lib: Add a way to name timeouts). It is not used anywhere and
      fpi_timeout_cancel_all_for_dev exists, is exported and used and serves
      the same purpose.
      953c7557
  3. 06 Jun, 2019 7 commits
  4. 14 May, 2019 2 commits
    • Peter Maatman's avatar
      examples: Remove sleep call in enroll examples · 6ba9439b
      Peter Maatman authored
      The call to sleep(1) inside of the enrollment loop caused a crash
      on at least the etes603 driver.
      
      Because in fp_enroll_finger_img the function enters an event
      handling loop. This loop needs to start before the next libusb
      event timeout. Which would not happen in the etes603 driver
      because the timeout there was set to 1 second as well.
      6ba9439b
    • Peter Maatman's avatar
      etes603: Prevent hang during enroll process · 6764ec79
      Peter Maatman authored
      This commit fixes a hang in gnome-settings when trying to enroll a finger.
      
      The same issue could be seen in the enroll example. Previously the enroll
      example would hang on "deactivating" because at some point dev->is_active
      is set to false and m_exit_start is never called.
      6764ec79
  5. 06 May, 2019 1 commit
  6. 21 Mar, 2019 1 commit
  7. 21 Feb, 2019 1 commit
    • Seong-Joong Kim's avatar
      uru4000: Fix integer overflow in imaging_run_state() · ca26e85f
      Seong-Joong Kim authored
      ‘img->key_number’ variable is originally from the device through bulk
      endpoint of USB. The variable is immediately assigned to ‘buf[0]’ for
      sending to control endpoint of the device. Here, integer overflow may
      occur when the ‘img->key_number’ attempts to assign a value that is
      outside of type range of ‘char’ to the ‘buf[0]’
      ca26e85f
  8. 21 Jan, 2019 3 commits
  9. 30 Dec, 2018 1 commit
  10. 14 Dec, 2018 1 commit
  11. 13 Dec, 2018 12 commits
  12. 12 Dec, 2018 4 commits
    • Bastien Nocera's avatar
      mindtct: Fix uninitialised value usage in count_minutia_ridges() · a218437c
      Bastien Nocera authored
      libfprint/nbis/mindtct/ridges.c:153:7: warning: 1st function call argument is an uninitialized value
            free(nbr_list);
            ^~~~~~~~~~~~~~
      a218437c
    • Bastien Nocera's avatar
      bozorth3: Remove unused assignments in bz_match_score() · 0add0ca9
      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;
                              ^   ~
      0add0ca9
    • Bastien Nocera's avatar
      mindtct: Fix memory leaks in get_centered_contour() · eaa4aa96
      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);
                   ^~~
      eaa4aa96
    • Bastien Nocera's avatar
      mindtct: Fix "garbage value" error in dft_dir_powers() · 74bb899c
      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]);
                        ~~~~~~~~~~ ^
      74bb899c