]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushCompiler: Fix __replacement_assert
authorBrad Hubbard <bhubbard@redhat.com>
Thu, 11 Apr 2019 05:00:25 +0000 (15:00 +1000)
committerNeha Ojha <nojha@redhat.com>
Tue, 16 Apr 2019 19:25:34 +0000 (12:25 -0700)
commit3a037a76edcf94db3ec41aafa1b8f595a997c0c4
tree7c42819eaf03143f395531a797cd75d59e301da1
parentd33c5479053916803afd708eeb27238e3fc2d0ec
crush/CrushCompiler: Fix __replacement_assert

When compiled with _GLIBCXX_ASSERTIONS we see an assert due to UB of
passing the address of an empty vector. Use vector's data member
function instead of address of array syntax.

Fixes: http://tracker.ceph.com/issues/39174
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit a950ac230ec900c53fa74f46c18f86a459c80831)
src/crush/CrushCompiler.cc