Преглед изворни кода

HPCC-25121 Fix odr sanitizer error - duplicate aesErrorText definition

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith пре 4 година
родитељ
комит
2289623f2c
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      system/jlib/jencrypt.cpp
  2. 1 1
      system/security/zcrypt/aes.cpp

+ 1 - 1
system/jlib/jencrypt.cpp

@@ -1743,7 +1743,7 @@ void Rijndael::decrypt(const UINT8 a[16], UINT8 b[16])
 // JLIB stuff starts here -- ADF
 //-----------------------------------------------------------------------------
 
-const char *aesErrorText[] = 
+static const char *aesErrorText[] = 
 {
     "Success",
     "Unsupported Mode",

+ 1 - 1
system/security/zcrypt/aes.cpp

@@ -1737,7 +1737,7 @@ void Rijndael::decrypt(const UINT8 a[16], UINT8 b[16])
 // JLIB stuff starts here -- ADF
 //-----------------------------------------------------------------------------
 
-const char *aesErrorText[] = 
+static const char *aesErrorText[] = 
 {
     "Success",
     "Unsupported Mode",