Skip to content

Fix potential integer overflow#2357

Open
djbn65 wants to merge 1 commit into
Tencent:masterfrom
djbn65:master
Open

Fix potential integer overflow#2357
djbn65 wants to merge 1 commit into
Tencent:masterfrom
djbn65:master

Conversation

@djbn65

@djbn65 djbn65 commented Oct 22, 2025

Copy link
Copy Markdown
Contributor

This change fixes a potential integrer overflow due to assuming that unsigned is 4 bytes when there is no guarantee that unsigned types have a size of 4 bytes. The minimum required size is 2 bytes. Replace unsigned with uint32_t in GenericReader::ParseNumber to fix this issue.

This change fixes a potential integrer overflow due to assuming that
unsigned is 4 bytes when there is no guarantee that unsigned types
have a size of 4 bytes. The minimum required size is 2 bytes. Replace
unsigned with uint32_t in GenericReader::ParseNumber to fix this issue.
@tencent-adm

tencent-adm commented Oct 22, 2025

Copy link
Copy Markdown
Member

CLA assistant check
All committers have signed the CLA.

@djbn65

djbn65 commented Oct 22, 2025

Copy link
Copy Markdown
Contributor Author

I think this may address #2289 which mentions https://nvd.nist.gov/vuln/detail/CVE-2024-39684. Not 100% certain, but couldn't find a better fix.

@djbn65

djbn65 commented Oct 22, 2025

Copy link
Copy Markdown
Contributor Author

Fixes #2289

@djbn65

djbn65 commented Oct 22, 2025

Copy link
Copy Markdown
Contributor Author

@miloyip, @tencent-adm, hoping we can get this in to fix the CVE

@djbn65

djbn65 commented Oct 22, 2025

Copy link
Copy Markdown
Contributor Author

Fixes #2303

@yukta-saneja

Copy link
Copy Markdown

Hi @djbn65, why is this fix not merged to the master yet? I can see here that the CLA has been signed, is there any other blocker?

@djbn65

djbn65 commented Nov 25, 2025

Copy link
Copy Markdown
Contributor Author

Hi @djbn65, why is this fix not merged to the master yet? I can see here that the CLA has been signed, is there any other blocker?

Hey, @yukta-saneja, I do not have permissions to submit the change. Only the owners can accept the pull request and it seems they are not very responsive or even maintaining this repo anymore. I've tried emailing the owners but have gotten no response.

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.

3 participants