Skip to content

Commit 111f147

Browse files
qiaohaijiaoliujinye-sys
authored andcommitted
libhelix-aac: add -fno-sanitize=undefined to avoid runtime error
libhelix-aac/assembly.h:480:52: runtime error: left shift of 589488976 by 2 places cannot be represented in type 'int' #0 0x6b3045a in CLZ libhelix-aac/assembly.h:480 #1 0x6b44b8a in ScaleNoiseVector libhelix-aac/pns.c:179 #2 0x6b46d06 in raac_PNS libhelix-aac/pns.c:342 #3 0x6b2a965 in AACDecode libhelix-aac/aacdec.c:493 #4 0x5bf5852 in aac_decode_frame ffmpeg/libavcodec/libhelix-aac.c:107 #5 0x5badbec in decode_simple_internal ffmpeg/libavcodec/decode.c:307 #6 0x5badbec in decode_simple_receive_frame ffmpeg/libavcodec/decode.c:515 #7 0x5badbec in decode_receive_frame_internal ffmpeg/libavcodec/decode.c:536 #8 0x5bb3075 in avcodec_send_packet ffmpeg/libavcodec/decode.c:604 #9 0x5e512c8 in movie_async_read_frame ffmpeg/libavfilter/src_movie_async.c:716 #10 0x5e512c8 in movie_async_proc_dat ffmpeg/libavfilter/src_movie_async.c:812 #11 0x5e512c8 in movie_async_thread ffmpeg/libavfilter/src_movie_async.c:924 #12 0x3811b89 in pthread_startup pthread/pthread_create.c:59 #13 0x6741663 in pthread_start pthread/pthread_create.c:139 #14 0x344f3d8 in pre_start sim/sim_initialstate.c:52 Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
1 parent 4141653 commit 111f147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libhelix-aac/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ ASRCS += libhelix-aac/sbrqmfsk.s
5555
AFLAGS += -Wa,-mimplicit-it=thumb
5656
endif
5757

58-
CFLAGS += -DUSE_DEFAULT_STDLIB
58+
CFLAGS += -DUSE_DEFAULT_STDLIB -fno-sanitize=undefined
5959

6060
include $(APPDIR)/Application.mk

0 commit comments

Comments
 (0)