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

jsn->jpr_root is allocated using the wrong type #6

Closed
jordanl opened this issue Dec 16, 2013 · 1 comment
Closed

jsn->jpr_root is allocated using the wrong type #6

jordanl opened this issue Dec 16, 2013 · 1 comment

Comments

@jordanl
Copy link

jordanl commented Dec 16, 2013

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);

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
@mnunberg
Copy link
Owner

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 mnunberg closed this as completed 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
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

No branches or pull requests

2 participants