]> git.ipfire.org Git - thirdparty/shadow.git/commit
tests/unit/test_chkhash.c: add invalid hashes master
authorIker Pedrosa <ipedrosa@redhat.com>
Fri, 6 Feb 2026 15:20:37 +0000 (16:20 +0100)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Tue, 17 Feb 2026 23:30:57 +0000 (00:30 +0100)
commit09705335c186ab7617e16910d26e6423148d0605
treefebdafe8282ace0bb5c9e5caf49edd93bc361392
parentde83bc82fea2f76b678083be9c1310ed8f671259
tests/unit/test_chkhash.c: add invalid hashes

Add comprehensive negative testing condition validation:
- Invalid algorithm prefixes and hash length validation
- Invalid delimiter handling
- Invalid salt characters and rounds parameter testing

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
tests/unit/test_chkhash.c