This is Robert Sebastian Herlim.
We are currently working on a new fuzz testing feature, and we found crashes in tic.
For ease of maintenance, I'll send the crash one-by-one by email.
[Step to Reproduce]
We configured ncurses with `CXXFLAGS="-g -O0" ./configure`, and run tic using
- ./tic -t <attached_file> -G -C -a -RBSD -RSVr1 -RHP -c -v5
[Environment]
- OS: Ubuntu 18.04.4 LTS
- Compiler: gcc 7.5.0
- ncurses version: 6.2 (
https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.2.tar.gz)
[Additional Context]
I also attached the stack trace of the crash.
```
Program received signal SIGSEGV, Segmentation fault.
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
62 ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
#0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
#1 0x0000555555571f14 in tparam_internal (use_TPARM_ARG=1, string=0x5555557a79d0 "\\s\\337\\177%1p1%.li", ap=0x7fffffffa1f0) at ../ncurses/./tinfo/lib_tparm.c:611
#2 0x0000555555572796 in tparm (string=0x5555557a79d0 "\\s\\337\\177%1p1%.li") at ../ncurses/./tinfo/lib_tparm.c:854
#3 0x0000555555565471 in check_1_infotocap (name=0x555555594206 "pfkey", value=0x5555557a79d0 "\\s\\337\\177%1p1%.li", count=1) at ../progs/tic.c:2189
#4 0x0000555555565d08 in check_infotocap (tp=0x5555557a83c0, i=115, value=0x5555557a8330 " \337\177%1%p1%cli") at ../progs/tic.c:2367
#5 0x00005555555671d9 in check_termtype (tp=0x5555557a83c0, literal=false) at ../progs/tic.c:2915
#6 0x000055555557a956 in _nc_resolve_uses2 (fullresolve=true, literal=false) at ../ncurses/./tinfo/comp_parse.c:615
#7 0x0000555555560a2a in main (argc=11, argv=0x7fffffffdeb8) at ../progs/tic.c:971
```
Thank you.