Make more functions friendly to Address Sanitizer

This commit is contained in:
Justine Tunney 2021-02-02 03:45:31 -08:00
parent 3ab76b2312
commit cbfd4ccd1e
70 changed files with 1267 additions and 291 deletions

View file

@ -80,11 +80,12 @@ prpppppppppppppoooooooonnnnnnnnnnnnnnnooooooooppppppppppppptp\
pppppppppppppppppppoooooooooooooooooooooooppppppppppppppppppp";
TEST(gyarados, testIdentityDifference) {
static unsigned char A[1][32][62];
static unsigned char B[1][32][62];
static unsigned char A[1][32][61];
static unsigned char B[1][32][61];
ASSERT_EQ(sizeof(A), strlen(kDieWelle));
memcpy(A, kDieWelle, sizeof(A));
EzGyarados(1, 32, 61, B, 1, 32, 61, A, 0, 1, 32, 61, 32, 61, 1, 1, 0, 0);
AbsoluteDifference(32, 62, B[0], 32, 62, B[0], 32, 62, A[0]);
AbsoluteDifference(32, 61, B[0], 32, 61, B[0], 32, 61, A[0]);
EXPECT_STREQ(u"\n\
                                                             \n\
                                                             \n\