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

expr: fix memory management #148

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

expr: fix memory management #148

wants to merge 2 commits into from

Conversation

E5ten
Copy link
Contributor

@E5ten E5ten commented Oct 10, 2019

Andy Chu's patch from the mailing list, modified slightly to fit the current source.
http://lists.landley.net/htdig.cgi/toybox-landley.net/2016-March/008113.html

This fixes #147 as well as fixing all remaining memory management issues in expr from what I can see (valgrind now gives no warnings or any indication of issues while previously it reported many invalid reads).

@E5ten
Copy link
Contributor Author

E5ten commented Nov 9, 2019

ping

toys/pending/expr.c Outdated Show resolved Hide resolved
toys/pending/expr.c Outdated Show resolved Hide resolved
@E5ten
Copy link
Contributor Author

E5ten commented Nov 11, 2019

uh I did not mean to do that

@enh-google
Copy link
Collaborator

(you might want to squash the two commits into one for ease of review. you probably also want to just send the patch on the list, because rob pays more attention to that than to the pull requests...)

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.

expr breaks autoconf
2 participants