Bläddra i källkod

HPCC-25121 Fix odr sanitizer error - duplicate aesErrorText definition

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith 4 år sedan
förälder
incheckning
2289623f2c
2 ändrade filer med 2 tillägg och 2 borttagningar
  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",