Control: found -1 2.8.4-2
Control: retitle -1 maildrop: reformime: null pointer dereference in 
extract_section()

Minimal reproducer:

  $ reformime -x -s moo < /dev/null
  Segmentation fault

GDB says it's a null pointer dereference:

Program received signal SIGSEGV, Segmentation fault.
extract_section (top_rfcp=0x0, mimesection=0x565749b8 "moo", extract_filename=0x0, 
argc=0, argv=0xffffd584, extract_func=0x565587d0 <extract_file>) at reformime.c:656
656                     if (top_rfcp->firstpart)
(gdb) print top_rfcp
$1 = (struct rfc2045 *) 0x0
(gdb) bt
#0  extract_section (top_rfcp=0x0, mimesection=0x565749b8 "moo", 
extract_filename=0x0, argc=0, argv=0xffffd584, extract_func=0x565587d0 <extract_file>) at 
reformime.c:656
#1  0x56556ee5 in main2 (argv=<optimized out>, argc=<optimized out>, 
mimecharset=<optimized out>) at reformime.c:1181
#2  main (argc=<optimized out>, argv=<optimized out>) at reformime.c:1226

--
Jakub Wilk

Reply via email to