Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aiohttp] Fix Broken Fuzzer Build #12931

Merged

Conversation

DaveLak
Copy link
Contributor

@DaveLak DaveLak commented Jan 10, 2025

Fixes https://issues.oss-fuzz.com/issues/42532914

The project build & install has been failing since 2024-02-12 when attempting to build the llhttp parser submodule using a very outdated Nodejs (v10) provided by the default apt repositories. At the time of this commit, aiohttp v3.11 is using Nodejs 18 in CI for the same task.

The changes here upgrade Nodejs to the latest LTS release version available (v22.x) and update the build & install commands to bring them in line with the steps described by the aiohttp contributor documentation and properly build the LLHTTP parser from C & Cython sources.

Fixes the project build and install steps which were failing when trying
to build the `llhttp` parser submodule using a very outdated Nodejs
(v.10) provided by the default apt repositories. At the time of this
commit, aiohttp 3.11 is using Nodejs 18 in CI for the same task.

The changes here upgrade Nodejs to the latest LTS release version
available (v22.x) and update the build & install commands to bring them
in line with the steps described by the aiohttp contributor
documentation and properly build the LLHTTP parser from C & Cython
sources.
Prior to this change `aiohttp.BodyPartReader` had been given unexpected
arguments (likely reflecting used by older version of the library)
which immediately halted the fuzzer by raising a `TypeError`.
Updating the arguments resolved the issue.
Copy link

DaveLak is a new contributor to projects/aiohttp. The PR must be approved by known contributors before it can be merged. The past contributors are: manunio

@oliverchang oliverchang merged commit a228f23 into google:master Jan 13, 2025
16 checks passed
@DaveLak DaveLak deleted the project/aiohttp/fix-broken-fuzzer-build branch January 13, 2025 02:26
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.

2 participants