Hi @Alegato thanks for getting back to me!
I followed your steps but when I get to make wp77xx
I get a bunch of format-truncations
errors:
usr/bin/gcc -Wall -Werror -o /home/jbroderick/Documents/CouncilRock/RS100/legato_workspace/legato-19.01.0/bin/mkPatch
mkPatch.c /home/jbroderick/Documents/CouncilRock/RS100/legato_workspace/legato-19.01.0/framework/liblegato/crc.c
-I/home/jbroderick/Documents/CouncilRock/RS100/legato_workspace/legato-19.01.0/framework/include
-I/home/jbroderick/Documents/CouncilRock/RS100/legato_workspace/legato-19.01.0/3rdParty/include
mkPatch.c: In function ‘main’:
mkPatch.c:1419:55: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size between 4045 and 4063 [-Werror=format-truncation=]
“cat patch.%u.cwe.hdr patch.%u.cwe >%s/patch-%s.cwe”,
^~
pid, pid, CurrentWorkDir, targetPtr );
~~~~~~~~~~~~~~
mkPatch.c:1418:9: note: ‘snprintf’ output 45 or more bytes (assuming 4140) into a destination of size 4096
snprintf( CmdBuf, sizeof(CmdBuf),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
“cat patch.%u.cwe.hdr patch.%u.cwe >%s/patch-%s.cwe”,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pid, pid, CurrentWorkDir, targetPtr );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1154:60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
snprintf(OrigName, sizeof(OrigName), “%s/%s”, CurrentWorkDir, OrigPtr);
^
mkPatch.c:1154:17: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
snprintf(OrigName, sizeof(OrigName), “%s/%s”, CurrentWorkDir, OrigPtr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1177:60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
snprintf(DestName, sizeof(DestName), “%s/%s”, CurrentWorkDir, DestPtr);
^
mkPatch.c:1177:17: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
snprintf(DestName, sizeof(DestName), “%s/%s”, CurrentWorkDir, DestPtr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1230:60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
snprintf(OrigName, sizeof(OrigName), “%s/%s”, CurrentWorkDir, OrigPtr);
^
mkPatch.c:1230:17: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
snprintf(OrigName, sizeof(OrigName), “%s/%s”, CurrentWorkDir, OrigPtr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1260:60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
snprintf(DestName, sizeof(DestName), “%s/%s”, CurrentWorkDir, DestPtr);
^
mkPatch.c:1260:17: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
snprintf(DestName, sizeof(DestName), “%s/%s”, CurrentWorkDir, DestPtr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1396:60: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size between 4048 and 4066 [-Werror=format-truncation=]
“cat patch.%u.hdr patch.%u.bin >>%s/patch-%s.cwe”,
^~
pid, pid, CurrentWorkDir, productPtr );
~~~~~~~~~~~~~~
mkPatch.c:1395:17: note: ‘snprintf’ output 42 or more bytes (assuming 4137) into a destination of size 4096
snprintf( CmdBuf, sizeof(CmdBuf),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
“cat patch.%u.hdr patch.%u.bin >>%s/patch-%s.cwe”,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pid, pid, CurrentWorkDir, productPtr );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:20:16: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4089 [-Werror=format-truncation=]
#define BSDIFF “bsdiff”
^~~~~~~~
mkPatch.c:1305:27: note: in expansion of macro ‘BSDIFF’
BSDIFF " %s %s patched.%u.bin.%d",
^~~~~~
mkPatch.c:1305:36: note: format string is defined here
BSDIFF " %s %s patched.%u.bin.%d",
^~
mkPatch.c:20:16: note: using the range [0, 4294967295] for directive argument
#define BSDIFF “bsdiff”
^~~~~~~~
mkPatch.c:1305:27: note: in expansion of macro ‘BSDIFF’
BSDIFF " %s %s patched.%u.bin.%d",
^~~~~~
mkPatch.c:1304:17: note: ‘snprintf’ output between 25 and 8234 bytes into a destination of size 4096
snprintf( CmdBuf, sizeof(CmdBuf),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BSDIFF " %s %s patched.%u.bin.%d",
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OrigName, tmpName, pid, patchNum );
Thanks!
Jack