package/tpm2-totp: fix error due to variable used uninitialized
authorCarlos Santos <unixmania@gmail.com>
Sun, 26 May 2019 23:24:33 +0000 (20:24 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 27 May 2019 08:54:05 +0000 (10:54 +0200)
commit4e58679c7b66956a71b9795065443ce918c3da23
treee78c6cba7e74c6f731a7113d6c5c95a277e4ddeb
parent1ab26a82641399d390bab7f7407fa7646949d0a2
package/tpm2-totp: fix error due to variable used uninitialized

Some inline declarations of strtok_r (specifically in Sourcery CodeBench
Lite 2016.11-19) contain code where an '__s' local variable can be used
uninitialized.

When GCC expands that declaration in tpm2-totp, __s becomes an alias to
a variable which fact is not initialized, but this is not relevant since
the execution path leading to the uninitialized use is never followed.

Anyway, apply a patch already submitted upstream to fix the compilation
error.

Upstream bug report:
  https://github.com/tpm2-software/tpm2-totp/issues/32

Fixes:
  http://autobuild.buildroot.net/results/5693a35e4d6bc76a1f46fe0e217abc49f7188aad/

Signed-off-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/tpm2-totp/0002-src-fix-compilation-failure-due-to-variable-may-be-u.patch [new file with mode: 0644]