Skip to content
Snippets Groups Projects
  • Rob Swindell's avatar
    2fae58e1
    Don't append the stale static string in fmsgattr_str() · 2fae58e1
    Rob Swindell authored
    When this function was called multiple times (e.g. multiple messages in a pkt),
    it would keep appending to the current (static) string, eventually overflowing
    the buffer and corrupting the stack. Although reported in pktdump, it could
    have also happened with fmsgdump if passed multiple stored message (.msg) files.
    
    Fixes #295 reported by Nelgin
    2fae58e1
    History
    Don't append the stale static string in fmsgattr_str()
    Rob Swindell authored
    When this function was called multiple times (e.g. multiple messages in a pkt),
    it would keep appending to the current (static) string, eventually overflowing
    the buffer and corrupting the stack. Although reported in pktdump, it could
    have also happened with fmsgdump if passed multiple stored message (.msg) files.
    
    Fixes #295 reported by Nelgin