Project

General

Profile

Actions

Bug #72473

open

buffer::raw_combined raw::data may be used uninitialized

Added by Edwin Rodriguez 8 months ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
-
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

/usr/lib64/ccache/c++ -DBOOST_ASIO_DISABLE_AWAITABLE_FRAME_RECYCLING -DBOOST_ASIO_DISABLE_THREAD_KEYWORD_EXTENSION -DBOOST_ASIO_HAS_IO_URING -DBOOST_ASIO_NO_TS_EXECUTORS -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__CEPH__ -D__STDC_FORMAT_MACROS -D__linux__ -I/auto/home/rodried/git/ceph/ceph-werror/cmake-build-relwithdebinfo/src/include -I/auto/home/rodried/git/ceph/ceph-werror/src -I/auto/home/rodried/git/ceph/ceph-werror/src/dmclock/support/src -isystem /auto/home/rodried/git/ceph/ceph-werror/cmake-build-relwithdebinfo/boost/include -isystem /auto/home/rodried/git/ceph/ceph-werror/cmake-build-relwithdebinfo/include -isystem /auto/home/rodried/git/ceph/ceph-werror/src/jaegertracing/opentelemetry-cpp/api/include -isystem /auto/home/rodried/git/ceph/ceph-werror/src/jaegertracing/opentelemetry-cpp/exporters/jaeger/include -isystem /auto/home/rodried/git/ceph/ceph-werror/src/jaegertracing/opentelemetry-cpp/ext/include -isystem /auto/home/rodried/git/ceph/ceph-werror/src/jaegertracing/opentelemetry-cpp/sdk/include -isystem /auto/home/rodried/git/ceph/ceph-werror/src/xxHash -isystem /auto/home/rodried/git/ceph/ceph-werror/src/fmt/include -O2 -g -DNDEBUG -std=c++23 -fPIC -fdiagnostics-color=always   -U_FORTIFY_SOURCE -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wall -fno-strict-aliasing -fsigned-char -Wtype-limits -Wignored-qualifiers -Wpointer-arith -Werror=format-security -Winit-self -Wno-unknown-pragmas -Wnon-virtual-dtor -Wno-ignored-qualifiers -Werror -ftemplate-depth-1024 -DBOOST_ALLOW_DEPRECATED_HEADERS -Wpessimizing-move -Wredundant-move -Wstrict-null-sentinel -Woverloaded-virtual -fstack-protector-strong -fdiagnostics-color=auto -MD -MT src/common/CMakeFiles/common_buffer_obj.dir/buffer.cc.o -MF src/common/CMakeFiles/common_buffer_obj.dir/buffer.cc.o.d -o src/common/CMakeFiles/common_buffer_obj.dir/buffer.cc.o -c /auto/home/rodried/git/ceph/ceph-werror/src/common/buffer.cc
In static member function ‘static void ceph::buffer::v15_2_0::raw_combined::operator delete(void*)’,
    inlined from ‘virtual ceph::buffer::v15_2_0::raw_zeros::~raw_zeros()’ at /auto/home/rodried/git/ceph/ceph-werror/src/common/buffer.cc:157:5:
/auto/home/rodried/git/ceph/ceph-werror/src/common/buffer.cc:136:33: error: ‘*(ceph::buffer::v15_2_0::raw_combined*)this.ceph::buffer::v15_2_0::raw_combined::ceph::buffer::v15_2_0::raw.ceph::buffer::v15_2_0::raw::data’ may be used uninitialized [-Werror=maybe-uninitialized]
  136 |       aligned_free((void *)raw->data);
      |                            ~~~~~^~~~
cc1plus: all warnings being treated as errors

No data to display

Actions

Also available in: Atom PDF