Find a file
Leonardo Francisco ae3f3a2479 validity: add 16 regression tests for Iter6 audit fixes
Adds test-validity-verify.c with 16 unit tests that prevent regression
of all 8 issues found during the Iteration 6 code audit (b05657f):

  R1: parse_match_result TLV parsing (5 tests)
    - valid payload with all fields extracted correctly
    - multi-tag iteration (tag ordering independence)
    - empty dict returns no-match
    - truncated/malformed data handled gracefully
    - unknown tags skipped without error

  R1f: match_result_clear frees hash and zeros struct

  R2: identity builder NULL rejection (2 tests)
    - NULL uuid returns NULL (prevented g_variant_new_string crash)
    - valid UUID produces correct identity bytes

  R3: gallery matching by subtype (3 tests)
    - matches correct print by finger subtype
    - falls back to first entry when subtype not found
    - returns NULL for empty/NULL gallery

  R4: struct field separation — enroll_user_dbid != delete_storage_dbid

  R5: del_record command format — cmd 0x48 with dbid(2LE)

  R6: match_finger single allocation — exactly 13 bytes

  R7: SSM state enums exist (2 tests)
    - CLEAR_* states 0-5
    - DELETE_* states 0-7

To make the tests possible, extracted previously-static functions:
  - parse_match_result → validity_parse_match_result (public)
  - ValidityMatchResult struct moved to validity_db.h
  - validity_match_result_clear added to validity_db.c
  - validity_find_gallery_match helper extracted from verify SSM
2026-04-22 03:06:34 +00:00
.ci ci: Add ABI check 2019-08-05 20:05:13 +02:00
.gitlab-ci ci: Add PyGObject symbols 2026-02-10 06:33:00 +01:00
data validity: Add new driver for Validity/Synaptics VCSFW sensors 2026-04-22 03:06:34 +00:00
demo scripts/uncrustify: Use 2-spaces indentation for defines too 2025-02-20 15:50:46 +00:00
doc build: Stop using deprecated dep.get_pkgconfig_variable() method 2024-02-20 01:02:00 +01:00
examples examples/clear-storage: Remove local storage for devices without storage 2025-02-20 16:37:11 +01:00
libfprint validity: add 16 regression tests for Iter6 audit fixes 2026-04-22 03:06:34 +00:00
scripts scripts/uncrustify: Use 2-spaces indentation for defines too 2025-02-20 15:50:46 +00:00
tests validity: add 16 regression tests for Iter6 audit fixes 2026-04-22 03:06:34 +00:00
.git-blame-ignore-revs .git-blame-ignore-revs: Ignore formatting commit and add hint how to use it 2020-12-07 19:01:10 +01:00
.gitignore gitignore: Remove autotools ignores, add _build 2020-02-10 11:41:40 +01:00
.gitlab-ci.yml ci: Make jobs interrumpible 2026-02-10 06:35:26 +01:00
AUTHORS AUTHORS: Update 2012-12-14 13:17:24 +01:00
code-of-conduct.md Add code of conduct document 2019-07-25 12:04:39 +02:00
COPYING upekts relicensing 2007-11-15 09:54:35 +00:00
gcovr.cfg gcovr: Add gcovr project configuration 2025-08-01 01:42:01 +02:00
HACKING.md HACKING: Clarify the intent of the license 2019-08-05 13:37:28 +02:00
INSTALL INSTALL: Update for Meson 2018-05-18 01:16:30 +02:00
MAINTAINERS Add MAINTAINERS file 2020-05-22 15:00:11 +02:00
meson.build validity: Add TLS session management (Iteration 2) 2026-04-22 03:06:34 +00:00
meson_options.txt tests: Add support for installed tests 2023-06-28 16:35:16 +02:00
NEWS Release 1.94.10 2026-02-10 03:18:14 +01:00
README.md README: Add contact information 2024-05-03 15:35:11 +02:00
THANKS Thanks to Greg and Martin from AuthenTec 2012-11-29 09:51:55 +01:00

LibFPrint

LibFPrint is part of the FPrint project.


Button Website Button Documentation

Button Supported Button Unsupported

Button Contribute Button Contributors

History

LibFPrint was originally developed as part of an academic project at the University Of Manchester.

It aimed to hide the differences between consumer fingerprint scanners and provide a single uniform API to application developers.

Goal

The ultimate goal of the FPrint project is to make fingerprint scanners widely and easily usable under common Linux environments.

License

Section 6 of the license states that for compiled works that use this library, such works must include LibFPrint copyright notices alongside the copyright notices for the other parts of the work.

LibFPrint includes code from NIST's NBIS software distribution.

We include Bozorth3 from the US Export Controlled distribution, which we have determined to be fine being shipped in an open source project.

Get in touch

  • IRC - #fprint @ irc.oftc.net
  • Matrix - #fprint:matrix.org bridged to the IRC channel
  • MailingList - low traffic, not much used these days

Badge License