Skip to content

Commit

Permalink
tests: disable more formats while fuzzing
Browse files Browse the repository at this point in the history
It's difficult to reproduce the fuzzLite failure elsewhere.
At the very least we are documenting the formats that fail.

```
Testing: RACF-KDFAES [KDFAES (DES + HMAC-SHA256/64 + AES-256)]...
racf_kdfaes_fmt_plug.c:372:23: runtime error: left shift of 238 by 24 places cannot be represented in type 'int'
```

```
Testing: ZIP, WinZip [PBKDF2-SHA1 256/256 AVX2 8x2]...
zip_fmt_plug.c:144:27: runtime error: index 64 out of bounds for type 'unsigned char[60]'
```

Signed-off-by: Claudio André <[email protected]>
  • Loading branch information
claudioandre-br committed May 12, 2024
1 parent 7a91507 commit c9c026e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .clusterfuzzlite/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ if [[ "$SANITIZER" == "address" ]]; then
# Asan
./configure --enable-asan
make -sj4

cp ../run/john "$OUT"/

echo "------------------ Disable problematic formats -------------------"
Expand All @@ -47,7 +46,14 @@ if [[ "$SANITIZER" == "undefined" ]]; then
# Ubsan
./configure --enable-ubsan
make -sj4
cp ../run/john "$OUT"/

echo "------------------ Disable problematic formats -------------------"
{
echo '[Local:Disabled:Formats]'
echo 'RACF-KDFAES = Y'
echo 'ZIP = Y'
} >>../run/john-local.conf
echo "------------------------- UBSAN fuzzing --------------------------"
echo "$ JtR UBSAN --test=0"
../run/john --test=0
Expand Down
1 change: 1 addition & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ intrinsics
jscpd
JTR
jtrcrackers
KDFAES
keepass
Keplr
keygen
Expand Down

0 comments on commit c9c026e

Please sign in to comment.