Opened 5 years ago

Last modified 5 years ago

#13073 new Bugs

boost tokenizer_functions explicit char_separator() ctor does not initialize m_output_done

Reported by: jim.king@… Owned by: jsiek
Milestone: To Be Determined Component: tokenizer
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

This was identified in a Coverity scan. I checked the development tip in GitHub (https://github.com/boostorg/tokenizer/blob/develop/include/boost/token_functions.hpp) and I did not see a fix for this issue.

explicit char_separator()

: m_use_ispunct(true),

m_use_isspace(true),

CID 25905 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)2. uninit_member: Non-static class member m_output_done is not initialized in this constructor nor in any functions that it calls.

m_empty_tokens(drop_empty_tokens) { }

Change History (1)

comment:1 by damian.meden@…, 5 years ago

Hey, got the same issue, please https://github.com/dmeden/tokenizer/commit/7775794a2d8ad3cb7e532548702c6edd26712a38 I'll be making a pull request soon.

Dam

Note: See TracTickets for help on using tickets.