This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new bbd37149e4 avcodec/pngdec: avoid implementation-defined right-shift
behavior
bbd37149e4 is described below
commit bbd37149e4b1bd9730a70f06b72d1c1f9b95bc0f
Author: Leo Izen <[email protected]>
AuthorDate: Sat Oct 17 12:49:36 2026 -0400
Commit: Leo Izen <[email protected]>
CommitDate: Mon Oct 19 17:46:05 2026 -0400
avcodec/pngdec: avoid implementation-defined right-shift behavior
Right shifting a negative-signed integer has implementation-defined
behavior with regard to sign-extending or zero-extending. Taking the
result and a bitwise-and mask makes this work regardless of that
behavior.
Signed-off-by: Leo Izen <[email protected]>
---
libavcodec/pngdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index f20cef76d9..58c688e51f 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -520,7 +520,7 @@ static char *iso88591_to_utf8(const char *in, size_t
size_in)
return NULL;
for (i = 0; i < size_in; i++) {
if (in[i] & 0x80) {
- *(q++) = 0xC0 | (in[i] >> 6);
+ *(q++) = 0xC0 | ((in[i] >> 6) & 0x3);
*(q++) = 0x80 | (in[i] & 0x3F);
} else {
*(q++) = in[i];
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]