]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
libcephsqlite: ceph-mgr crashes when compiled with gcc12
authorGanesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
Mon, 11 Apr 2022 17:15:43 +0000 (10:15 -0700)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 28 Jul 2022 21:47:05 +0000 (17:47 -0400)
commitb9b1e3837c2196fe499e1a034342c8a20cb87c14
treeb6374c1fe2910b79bb11e1a770fad12340901bdc
parentb6e46b8939c67a6cc754abb4d0ece3c8918eccc3
libcephsqlite: ceph-mgr crashes when compiled with gcc12

regex in libcephsqlite, when compiled with GCC12 treats '-' as a range
operator resulting in the following error.
"Invalid start of '[x-x]' range in regular expression"

Fixes: https://tracker.ceph.com/issues/55304
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
(cherry picked from commit ac043a09c5ffb4b434b8644920004b3d5b7f9d8c)
(cherry picked from commit 5a10875d4570356afa3af024f63ac229caaa765b)
src/libcephsqlite.cc