inline void xor_data(unsigned char data[kStateSize], const unsigned char v[kStateSize]) {
for (int i = 0; i < kStateSize; ++i) {
data[i] ^= v[i];
}
}
...
;
unsigned char iv[16];
memcpy(iv, "abcdefgH3awGd4jf", 16);
xor_data(data, iv);//此处debug正常,release 出现sigsegv
后来改成
unsigned char iv[16]= {'a','b','c','d','e','f','g','H','3','a','w','G','d','4','j','f'}
release也正常了。
--
FROM 117.61.245.*