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

Fixing integer overflow bugs in Perl_my_setenv #13

Closed
wants to merge 1 commit into from
Closed

Fixing integer overflow bugs in Perl_my_setenv #13

wants to merge 1 commit into from

Conversation

jkrshnmenon
Copy link

Using 32 bit integers to store return value of strlen might lead to integer overflow vulnerability while allocating a buffer. This could then possibly lead to a buffer overflow vulnerability on the heap.

Not sure if the variable max, declared @ util.c : 2093 needs to be initialised to a 64 bit integer as well.
If it is possible for environ to have 2^32 - 2 entries, max should probably be 64 bits in length as well.
I would like to hear what you think about this.

@steve-m-hay
Copy link
Contributor

This problem was resolved in blead by commit 34716e2, which was back-ported to 5.26.3 (5737d31) and 5.28.1 (0589f07).

This was referenced Oct 18, 2019
@toddr
Copy link
Member

toddr commented Oct 20, 2019

Closing as this was already resolved by 34716e2

@toddr toddr closed this Oct 20, 2019
demerphq added a commit that referenced this pull request Nov 5, 2022
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