aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2020-06-14 19:55:49 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2020-06-14 19:55:49 -0700
commit4ed23c8f8557db0ed8578a090a0c483cd993c076 (patch)
tree7a37edd999db8c4bd64374d3a81123bb0df10372 /travis/test
parent00335e43ef59194152aa0e81e253e7ccdba29ff2 (diff)
downloadnasm-4ed23c8f8557db0ed8578a090a0c483cd993c076.tar.gz
nasm-4ed23c8f8557db0ed8578a090a0c483cd993c076.tar.xz
nasm-4ed23c8f8557db0ed8578a090a0c483cd993c076.zip
preproc.c: make extra sure we always have a null-terminated token
tok_set_text() and tok_set_text_free() take a length argument, which could at least theoretically mean that we don't have a null-terminated string. Directly enforce a null-terminated string in all cases. In the future this means that it is legal to intentionally use these functions to tokenize a substring. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'travis/test')
0 files changed, 0 insertions, 0 deletions