#7050 closed Bugs (fixed)
Invalid memory write bug in lexing_exception
Reported by: | Owned by: | Hartmut Kaiser | |
---|---|---|---|
Milestone: | To Be Determined | Component: | wave |
Version: | Boost 1.50.0 | Severity: | Problem |
Keywords: | Cc: | yogen.saini@… |
Description
In file boost/wave/cpplexer/cpplexer_exceptions.hpp
lexing_exception(char const *what_, error_code code, int line_, int column_, char const *filename_) throw() : cpplexer_exception(line_, column_, filename_), level(severity_level(code)), code(code) { unsigned int off = 0; while (off < sizeof(buffer) && *what_) buffer[off++] = *what_++; buffer[off] = 0; }
If value of off is 511, then Invalid memory write will occur at
buffer[off] = 0;.
Attached patch is the fix for it.
Attachments (1)
Change History (3)
by , 10 years ago
Attachment: | cpplexer_exceptions.hpp_patch added |
---|
comment:1 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 10 years ago
Note:
See TracTickets
for help on using tickets.
Patch file for the reported Bug.