$NetBSD: patch-bb,v 1.2 2015/04/20 13:38:23 rodent Exp $ Bounds checking. --- lib-src/portsmf/strparse.h.orig 2015-03-02 01:07:05.000000000 +0000 +++ lib-src/portsmf/strparse.h @@ -10,7 +10,7 @@ public: } void skip_space(); char peek(); - void get_nonspace_quoted(std::string &field); + void get_nonspace_quoted(std::string &field, int flen); // get the remaining characters, skipping initial spaces and final return void get_remainder(std::string &field); };