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
[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.
0x000055555556f454 in set_curterm_sp (sp=0x7fffffffa730, termp=0x7fffffffa660) at ../ncurses/./tinfo/lib_cur_term.c:108
108 PC = (char) ((pad_char != NULL) ? pad_char[0] : 0);
#0 0x000055555556f454 in set_curterm_sp (sp=0x7fffffffa730, termp=0x7fffffffa660) at ../ncurses/./tinfo/lib_cur_term.c:108
#1 0x000055555556f4ba in set_curterm (termp=0x7fffffffa660) at ../ncurses/./tinfo/lib_cur_term.c:125
#2 0x000055555557a93a in _nc_resolve_uses2 (fullresolve=true, literal=false) at ../ncurses/./tinfo/comp_parse.c:613
#3 0x0000555555560a2a in main (argc=6, argv=0x7fffffffdef8) at ../progs/tic.c:971
```
Thank you.