We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ffmpeg-ht/libavcodec/j2kenc.c
Line 813 in 043e106
This line might lead to overflow when (expn[bandno] + numgbits - 1) < cblk->nonzerobits becomes true because prec->zerobits[pos].val is uint8_t.
(expn[bandno] + numgbits - 1) < cblk->nonzerobits
prec->zerobits[pos].val
uint8_t
I propose to add a line for checking like
if ((expn[bandno] + numgbits - 1) < cblk->nonzerobits) av_log(avvtx, AV_LOG_ERROR, "Number of magnitude bit-planes is too big.\n");
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ffmpeg-ht/libavcodec/j2kenc.c
Line 813 in 043e106
This line might lead to overflow when
(expn[bandno] + numgbits - 1) < cblk->nonzerobits
becomes true becauseprec->zerobits[pos].val
isuint8_t
.I propose to add a line for checking like
The text was updated successfully, but these errors were encountered: