Przeglądaj źródła

HPCC-25121 Fix odr sanitizer error - duplicate aesErrorText definition

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith 4 lat temu
rodzic
commit
2289623f2c
2 zmienionych plików z 2 dodań i 2 usunięć
  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",