Ticket #835 (closed Bug report: fixed)

Opened 9 years ago

Last modified 9 years ago

[PATCH] segfaults debug.c

Reported by: etienne.champetier@… Owned by: JV
Priority: blocker Milestone:
Component: Gateway Version: Gateway SVN
Keywords: segfault Cc:


Hi the patch attached corrects, i think, many apparently unrelated segfault problems. (at least http://dev.wifidog.org/ticket/832)

In debug.c, you have to use va_start and va_end each time you read the va_list, else the behavior is undefined (segfault).

In my case (ubuntu server 12.04) if the debug message was printed via vfprintf and vsyslog i had a segfault


patchsegfault.diff Download (1.1 KB) - added by etienne.champetier@… 9 years ago.
patch debug.c

Change History

Changed 9 years ago by etienne.champetier@…

patch debug.c

Changed 9 years ago by anonymous

Segfault ok segfault seg fault fault set seg seg fault

Changed 9 years ago by benoitg

  • status changed from new to closed
  • resolution set to fixed

Commited in r1463

Note: See TracTickets for help on using tickets.