Issue 569 in webp: nullptr-after-nonzero-offset

31 views
Skip to first unread message

qq134… via monorail

unread,
May 5, 2022, 10:15:40 PMMay 5
to webp-d...@webmproject.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 569 by qq134...@outlook.com: nullptr-after-nonzero-offset
https://bugs.chromium.org/p/webp/issues/detail?id=569

What steps will reproduce the problem?
1.I call WebPEncodeRGB this API to try to encode an image
WebPEncodeRGB(input,width,height,1,1.0,output)
2.
3.

What is the expected output? What do you see instead?
nothing its crash .

What version of the product are you using? On what operating system?
main branch ,the version is v1.2.2, on ubuntu.

Please provide any additional information below.
call stack
#0 Import /home/ubuntu/ASOM/libwebp/src/enc/picture_csp_enc.c:747:30
#1 WebPPictureImportRGB /home/ubuntu/ASOM/libwebp/src/enc/picture_csp_enc.c:835:16
#2 Encode /home/ubuntu/ASOM/libwebp/src/enc/picture_enc.c:255:8
#3 WebPEncodeRGB /home/ubuntu/ASOM/libwebp/src/enc/picture_enc.c:272:1

Attachments:
case 12 bytes

--
You received this message because:
1. The project was configured to send all issue notifications to this address

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

vrab… via monorail

unread,
May 6, 2022, 4:08:32 AMMay 6
to webp-d...@webmproject.org

Comment #1 on issue 569 by vra...@google.com: nullptr-after-nonzero-offset
https://bugs.chromium.org/p/webp/issues/detail?id=569#c1

Issue 570 has been merged into this issue.

vrab… via monorail

unread,
May 6, 2022, 4:08:41 AMMay 6
to webp-d...@webmproject.org

Comment #2 on issue 569 by vra...@google.com: nullptr-after-nonzero-offset
https://bugs.chromium.org/p/webp/issues/detail?id=569#c2

Issue 571 has been merged into this issue.

vrab… via monorail

unread,
May 6, 2022, 4:09:45 AMMay 6
to webp-d...@webmproject.org

Comment #3 on issue 569 by vra...@google.com: nullptr-after-nonzero-offset
https://bugs.chromium.org/p/webp/issues/detail?id=569#c3

The stride argument is how many bytes it takes to go from one row to the next. It should at least be 3*width in RGB or 4*width in RGBA. Not 1 as you set it.

Git Watcher via monorail

unread,
May 10, 2022, 8:11:09 PMMay 10
to webp-d...@webmproject.org

Comment #4 on issue 569 by Git Watcher: nullptr-after-nonzero-offset
https://bugs.chromium.org/p/webp/issues/detail?id=569#c4

The following revision refers to this bug:
https://chromium.googlesource.com/webm/libwebp/+/6c45cef7ff27d84330d2034b014716f75d76302e

commit 6c45cef7ff27d84330d2034b014716f75d76302e
Author: Vincent Rabaud <vra...@google.com>
Date: Tue May 10 08:18:46 2022

Make sure the stride has a minimum value in the importer.

Bug: webp:569
Change-Id: Ia48d064dbb10e7179ae3da04ca8d769d1c447276

[modify] https://crrev.com/6c45cef7ff27d84330d2034b014716f75d76302e/src/enc/picture_csp_enc.c

jz… via monorail

unread,
Jun 16, 2022, 2:23:35 PMJun 16
to webp-d...@webmproject.org
Updates:
Labels: v1.2.3
Owner: vra...@google.com
Status: Fixed

Comment #5 on issue 569 by jz...@google.com: nullptr-after-nonzero-offset
https://bugs.chromium.org/p/webp/issues/detail?id=569#c5

(No comment was entered for this change.)
Reply all
Reply to author
Forward
0 new messages