Skip to content

wolfssl: fix broken build#63

Open
tc-agent wants to merge 2 commits into
masterfrom
wolfssl-fix-broken-build
Open

wolfssl: fix broken build#63
tc-agent wants to merge 2 commits into
masterfrom
wolfssl-fix-broken-build

Conversation

@tc-agent

Copy link
Copy Markdown
Owner

Summary

The wolfssl OSS-Fuzz build has been failing since the 2026-05-19 build run; the last successful build was 2026-05-18 (build history: https://oss-fuzz-build-logs.storage.googleapis.com/index.html#wolfssl).

Root cause

wolfSSL/wolfssl#10460, merged 2026-05-18, changed the public wolfCrypt MD2 and MD4 API from returning void to returning int (wc_InitMd2 / wc_Md2Update / wc_Md2Final and the MD4 equivalents).

The Cryptofuzz wolfCrypt module instantiates its Digest<> wrappers for MD2 and MD4 with the Init_Void / DigestUpdate_Void / DigestFinalize_Void template variants. After the signature change those template arguments no longer match the wolfCrypt function pointers, so compilation fails:

module.cpp:680:9: error: no matching constructor for initialization of
  'Digest<Md2, 16, Init_Void<Md2>, DigestUpdate_Void<Md2>, DigestFinalize_Void<Md2>>'

Fix

build.sh patches the MD2/MD4 Digest<> instantiations in the Cryptofuzz checkout to use the *_Int template variants, which Cryptofuzz already provides and uses for the other int-returning digest APIs (MD5, SHA-*, RIPEMD, …). The patch is applied with sed, consistent with the Cryptofuzz patching build.sh already performs.

With this change the build compiles cleanly and produces all 22 fuzz targets.

References

@github-actions

github-actions Bot commented May 21, 2026

Copy link
Copy Markdown

Fuzzing Coverage Report

Tested: project wolfssl · base 5339266 → head 8b35c90 · 300s total fuzz budget · updated 2026-05-27 22:35 UTC · workflow run

Metric Before After Delta
Static reachability >45m >45m

Δ = (after − before) / before, to accommodate that denominators may change. "new" when before is 0; "deleted" when after is 0.

@tc-agent
tc-agent force-pushed the master branch 4 times, most recently from 6125235 to e512e7e Compare May 27, 2026 06:33
@tc-agent
tc-agent force-pushed the wolfssl-fix-broken-build branch from 6a3f9b5 to 6f3ea25 Compare May 27, 2026 07:08
@tc-agent
tc-agent force-pushed the master branch 5 times, most recently from b5fd10c to 712a52f Compare May 27, 2026 16:16
@tc-agent
tc-agent force-pushed the wolfssl-fix-broken-build branch from 6f3ea25 to 8b35c90 Compare May 27, 2026 21:47
@tc-agent
tc-agent force-pushed the master branch 6 times, most recently from af7f9a7 to 806b281 Compare May 28, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant