-
Notifications
You must be signed in to change notification settings - Fork 41
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
jsn->jpr_root is allocated using the wrong type #6
Comments
janaz
pushed a commit
to janaz/transmissionbt
that referenced
this issue
Dec 16, 2013
… integral type. upstream xref: mnunberg/jsonsl#6 git-svn-id: svn://svn.transmissionbt.com/Transmission/trunk@14216 f4695dd4-2c0a-0410-b89c-da849a56a58e
Thanks for the bug report. You can submit a pull request for this, or I can change it myself - which one do you prefer? |
mnunberg
pushed a commit
that referenced
this issue
Feb 8, 2014
wereHamster
pushed a commit
to wereHamster/transmission
that referenced
this issue
Feb 15, 2014
… integral type. upstream xref: mnunberg/jsonsl#6 git-svn-id: svn://svn.transmissionbt.com/Transmission/trunk@14216 f4695dd4-2c0a-0410-b89c-da849a56a58e
uranix
pushed a commit
to uranix/transmission
that referenced
this issue
Nov 16, 2014
… integral type. upstream xref: mnunberg/jsonsl#6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reported by Transmission user dhill in downstream ticket: https://trac.transmissionbt.com/ticket/5556
In jsonsl_jpr_match_state_init(), jpr_root is type size_t, but is allocated using sizeof(int).
The line should read:
jsn->jpr_root = calloc(1, sizeof(size_t) * njprs * jsn->levels_max);
The text was updated successfully, but these errors were encountered: