Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RealTime分支--地址消毒段错误问题 #50

Open
RUNCARZY opened this issue Jul 6, 2023 · 0 comments
Open

RealTime分支--地址消毒段错误问题 #50

RUNCARZY opened this issue Jul 6, 2023 · 0 comments

Comments

@RUNCARZY
Copy link

RUNCARZY commented Jul 6, 2023

操作系统: linux
编译命令:

export C_FLAGS="-fsanitize=leak -fno-stack-protector -no-omit-frame-pointer -saditize=address -fsanitize-recover=address"
mkdir build && cd build
cmake .. -DCOMPILE_10BIT=1
make -j

基本编码命令:
./uAVS3_gop -f ../bin/encoder_ra.cfg -p InputFile=in.yuv -p OutputFile=out.avs3 -p SourceWidth=7680 -p SourceHeight=4320 -p SampleBitDepth=10 -p CodingBitDepth=10

问题描述:使用asan地址消毒器对RealTime分支进行测试,当存在以下输入场景时,产生段错误,asan地址消毒器接收到SEGV信号

  1. 输入CQP场景边界参数"-p RateControl=0 -p QP=0",会引起对数组tab_QP_SCALE_CR的越界访问
  2. 输入未注册参数如"-p unknow=1",会引起对tab_cfg_map的越界访问
  3. 输入不存在的配置文件,如"-f unknow.cfg",会引起对空文件对象的访问
  4. 输入yuv像素值超过10bit最大值,会导致计算过程中出现段错误
  5. 输入"-p threads-gop=-1",导致初始化过程中出现段错误
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant