1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Merge pull request #6998 from aditya-deshpande-arm/fix-example-programs-usage

Fix incorrect dispatch to USAGE in example programs, which causes uninitialized memory to be used
This commit is contained in:
Dave Rodgman
2023-02-06 09:53:50 +00:00
committed by GitHub
16 changed files with 19 additions and 15 deletions

View File

@@ -329,7 +329,7 @@ int main(int argc, char *argv[])
memset(buf, 0, sizeof(buf));
memset(serial, 0, sizeof(serial));
if (argc == 0) {
if (argc < 2) {
usage:
mbedtls_printf(USAGE);
goto exit;