[FFmpeg-trac] #9945(avcodec:new): undefined behavior at libavcodec/jpeg2000dwt.c:84:18

FFmpeg trac at avcodec.org
Tue Sep 27 11:53:35 EEST 2022


#9945: undefined behavior at libavcodec/jpeg2000dwt.c:84:18
-------------------------------------+-------------------------------------
             Reporter:  Johannes     |                    Owner:  (none)
  Kauffmann                          |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  j2k ubsan    |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Balling):

 I will just live it here: https://groups.google.com/a/isocpp.org/g/std-
 proposals/c/UorPkl3Lx1U

 This whole undefined in standard, but gcc does not agree for 2's
 complement is kinda crazy.

 Do not we require 2's complement... But on the other hand those are always
 fixed by mkver.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9945#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list