Marian Buschsieweke
|
87e8ab0ecb
|
pkg/tflite-micro: fix compilation with GCC >= 12.x
Compare names without over-reading in `micro_allocation_info.cc`.
This fixes:
/home/maribu/Repos/software/RIOT/build/pkg/tflite-micro/tensorflow/lite/micro/micro_allocation_info.cc: In member function 'TfLiteStatus tflite::AllocationInfoBuilder::GetOfflinePlannedOffsets(const int32_t**)':
/home/maribu/Repos/software/RIOT/build/pkg/tflite-micro/tensorflow/lite/micro/micro_allocation_info.cc:294:18: error: 'int strncmp(const char*, const char*, size_t)' specified bound 23 exceeds source size 0 [-Werror=stringop-overread]
294 | if (strncmp(metadata->name()->c_str(), kOfflineMemAllocMetadata,
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
295 | strlen(kOfflineMemAllocMetadata)) == 0) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2022-11-11 09:01:02 +01:00 |
|