Skip to content

Fix multiple potential vulnerabilities and bugs#1168

Merged
rouault merged 8 commits intouclouvain:masterfrom
YangY-Xiao:fix_dev
Dec 7, 2018
Merged

Fix multiple potential vulnerabilities and bugs#1168
rouault merged 8 commits intouclouvain:masterfrom
YangY-Xiao:fix_dev

Conversation

@YangY-Xiao
Copy link
Copy Markdown

Fix multiple potential vulnerabilities and bugs

Signed-off-by: Young_X <YangX92@hotmail.com>
Signed-off-by: Young_X <YangX92@hotmail.com>
Comment thread src/bin/jpwl/convert.c
cmap_index = get_ushort(*(unsigned short*)(&tga[3]));
cmap_index = get_tga_ushort(*(unsigned short*)(&tga[3]));
cmap_len = get_ushort(*(unsigned short*)(&tga[5]));
cmap_len = get_tga_ushort(*(unsigned short*)(&tga[5]));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect this doesn't compile... Line 135 should be removed as it is effectively overrideen by line 136. Similar instances below

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have fixed that by make a new pr.

@rouault rouault changed the title Fix multiple potential vulnerabilities and bugs Do not merge: Fix multiple potential vulnerabilities and bugs Nov 27, 2018
Signed-off-by: Young_X <YangX92@hotmail.com>
… function

opj_get_encoding_parameters

Signed-off-by: Young_X <YangX92@hotmail.com>
… to avoid potential int overflow

Signed-off-by: Young_X <YangX92@hotmail.com>
and fixes unaligned load

Signed-off-by: Young Xiao <YangX92@hotmail.com>
@YangY-Xiao
Copy link
Copy Markdown
Author

Ping

Copy link
Copy Markdown
Collaborator

@rouault rouault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this commit is OK.But when looking a bit the context, the cast to OPJ_INT32 and the type of the p_tx0, etc argument is suspicious. They shoud likely be OPJ_UINT32 and in the opj_pi_update_encode_poc_and_final() and opj_pi_update_encode_not_poc() functions as well

@rouault rouault changed the title Do not merge: Fix multiple potential vulnerabilities and bugs Fix multiple potential vulnerabilities and bugs Dec 7, 2018
@rouault rouault merged commit e7640f5 into uclouvain:master Dec 7, 2018
@ret2libc
Copy link
Copy Markdown

@Young-X I had to revert that commit in e1740e7 since it didn't compile. I'm disappointed you submit commits that don't even compile...

@rouault it seems commit e1740e7 was supposed to fix CVE-2018-20846, which is about out-of-bound accesses in pi_next_lrcp, pi_next_rlcp, pi_next_rpcl, pi_next_pcrl, pi_next_rpcl, and pi_next_cprl . With that commit reverted, is there a patch for that CVE? Thanks.

@rouault
Copy link
Copy Markdown
Collaborator

rouault commented Jul 17, 2019

is there a patch for that CVE?

no

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.

4 participants