Guillaume GARDET
f0ef77ff1d
- Build and package libarmnnTfLiteParser - Fix libarmnnQuantizer build with: * armnn-fix_quantizer_link.patch - Add _constraints to avoid OOM errors - Update to 19.05: - Changelog: https://github.com/ARM-software/armnn/releases/tag/v19.05 - Remove upstreamed patch: * armnn-fix_stb_include.patch - Rebase patch: * armnn-generate-versioned-library.patch - Update patch: * armnn-remove_broken_std_move.patch - Fix build on Tumbleweed with: * armnn-fix_build_with_gcc9.patch - Fix build on Tumbleweed with: * armnn-remove_broken_std_move.patch OBS-URL: https://build.opensuse.org/request/show/707891 OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/armnn?expand=0&rev=4
16 lines
579 B
Diff
16 lines
579 B
Diff
diff --git a/src/armnn/LayerSupport.cpp b/src/armnn/LayerSupport.cpp
|
|
--- a/src/armnn/LayerSupport.cpp
|
|
+++ b/src/armnn/LayerSupport.cpp
|
|
@@ -26,10 +26,7 @@ void CopyErrorMessage(char* truncatedString, const char* fullString, size_t maxL
|
|
{
|
|
if(truncatedString != nullptr)
|
|
{
|
|
- size_t copyLength = std::min(maxLength, strlen(fullString));
|
|
- std::strncpy(truncatedString, fullString, copyLength);
|
|
- // Ensure null-terminated string.
|
|
- truncatedString[copyLength] = '\0';
|
|
+ std::snprintf(truncatedString, maxLength, fullString);
|
|
}
|
|
}
|
|
|