[FFmpeg-devel] [PATCH 3/3] avcodec/x86/lossless_videoencdsp: Fix warning: signed dword value exceeds bounds

Michael Niedermayer michael at niedermayer.cc
Sun Oct 1 01:17:06 EEST 2017


On Sat, Sep 30, 2017 at 08:50:57AM -0400, Ronald S. Bultje wrote:
> Hi,
> 
> On Fri, Sep 29, 2017 at 6:58 PM, Michael Niedermayer <michael at niedermayer.cc
> > wrote:
> 
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >  libavcodec/x86/lossless_videoencdsp.asm | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/libavcodec/x86/lossless_videoencdsp.asm
> > b/libavcodec/x86/lossless_videoencdsp.asm
> > index a9c7a0a73c..89f20dc4e2 100644
> > --- a/libavcodec/x86/lossless_videoencdsp.asm
> > +++ b/libavcodec/x86/lossless_videoencdsp.asm
> > @@ -45,7 +45,7 @@ cglobal diff_bytes, 4,5,2, dst, src1, src2, w
> >  ; labels to jump to if w < regsize and w < 0
> >  %macro DIFF_BYTES_LOOP_PREP 2
> >      mov                i, wq
> > -    and                i, -2 * regsize
> > +    and                i, -(2 * regsize)
> >          js            %2
> >          jz            %1
> >      add             dstq, i
> > --
> > 2.14.2
> 
> 
> OK.
> 
> (Is this a particular version of an assembler and maybe something that
> should be reported upstream?)

this report from 2011 sounds similar:
https://bugzilla.nasm.us/show_bug.cgi?id=3311133
the issue is still open


NASM version 2.10.09 compiled on Dec 29 2013
and
NASM version 2.11.08
are both affected


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Frequently ignored answer#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171001/e3db17b4/attachment.sig>


More information about the ffmpeg-devel mailing list