summaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorAndy Clayton <q3aiml@gmail.com>2020-03-24 23:32:52 -0500
committerMartin Michlmayr <tbm@cyrius.com>2020-03-26 06:52:33 +0800
commit8e67a3f09cb4be58ad69f36a20b5de145a1d79f4 (patch)
treef89d674e4b00597e8c164802b884bf38d3edd804 /test/unit
parent27387dabed935c0b9185e7a4d11c36d672213f4a (diff)
downloadfork-ledger-8e67a3f09cb4be58ad69f36a20b5de145a1d79f4.tar.gz
fork-ledger-8e67a3f09cb4be58ad69f36a20b5de145a1d79f4.tar.bz2
fork-ledger-8e67a3f09cb4be58ad69f36a20b5de145a1d79f4.zip
fix python3 command (argv) wchar_t conversion
Ensure strings passed to Py_Main have a terminating null character by including the extra character allocated for terminating null in the size passed to mbstowcs. Fix argv index so all arguments are not copied to argv[0]. Fixes potential buffer overflow due to passing argv[0] as destination with argv[i + 1] src and size to mbstowcs.
Diffstat (limited to 'test/unit')
0 files changed, 0 insertions, 0 deletions