aztec-2.0 icon indicating copy to clipboard operation
aztec-2.0 copied to clipboard

Investigate weird CI gcc build error

Open lucasxia01 opened this issue 1 year ago • 0 comments

This only happens on the CI gcc build:

#10 50.53     inlined from 'proof_system::honk::BaseTranscript::Fr proof_system::honk::BaseTranscript::get_next_challenge_buffer()' at /usr/src/barretenberg/cpp/src/barretenberg/transcript/transcript.hpp:125:31:
#10 50.53 /usr/include/c++/12.2.1/bits/stl_algobase.h:431:30: error: 'void* __builtin_memmove(void*, const void*, long unsigned int)' offset 0 is out of the bounds [0, 0] [-Werror=array-bounds]
#10 50.53   431 |             __builtin_memmove(__result, __first, sizeof(_Tp) * _Num);
#10 50.53       |             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

where line 125 here is: full_buffer.insert(full_buffer.end(), current_round_data.begin(), current_round_data.end());

Currently replaced with std::copy(current_round_data.begin(), current_round_data.end(), std::back_inserter(full_buffer));.

lucasxia01 avatar Jan 18 '24 21:01 lucasxia01