Commit 77a06de3 authored by Geoff Simmons's avatar Geoff Simmons

handle buffer sizes safely in handler.c

parent 5b55fee7
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
#include "vas.h" #include "vas.h"
#include "vsb.h" #include "vsb.h"
#include "vdef.h"
#include "varnishevent.h" #include "varnishevent.h"
...@@ -104,7 +105,7 @@ symbol_hack(const char *a0) ...@@ -104,7 +105,7 @@ symbol_hack(const char *a0)
uintptr_t a; uintptr_t a;
struct symbols *s; struct symbols *s;
sprintf(buf, "nm -an %s 2>/dev/null", a0); bprintf(buf, "nm -an %s 2>/dev/null", a0);
fi = popen(buf, "r"); fi = popen(buf, "r");
if (fi == NULL) if (fi == NULL)
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment