Skip to content

Commit 10da2c2

Browse files
committed
8340923: The class LogSelection copies uninitialized memory
Reviewed-by: mbaesken, jwaters, stefank
1 parent 8c8f0d8 commit 10da2c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/logging/logSelection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333

3434
const LogSelection LogSelection::Invalid;
3535

36-
LogSelection::LogSelection() : _ntags(0), _wildcard(false), _level(LogLevel::Invalid), _tag_sets_selected(0) {
36+
LogSelection::LogSelection() : _ntags(0), _tags(), _wildcard(false), _level(LogLevel::Invalid), _tag_sets_selected(0) {
3737
}
3838

3939
LogSelection::LogSelection(const LogTagType tags[LogTag::MaxTags], bool wildcard, LogLevelType level)
40-
: _ntags(0), _wildcard(wildcard), _level(level), _tag_sets_selected(0) {
40+
: _ntags(0), _tags(), _wildcard(wildcard), _level(level), _tag_sets_selected(0) {
4141
while (_ntags < LogTag::MaxTags && tags[_ntags] != LogTag::__NO_TAG) {
4242
_tags[_ntags] = tags[_ntags];
4343
_ntags++;

0 commit comments

Comments
 (0)