]> git.ipfire.org Git - thirdparty/glibc.git/commit
hurd report-wait: Fix stpcpy usage
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 23 Nov 2020 00:31:41 +0000 (00:31 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 23 Nov 2020 00:31:41 +0000 (00:31 +0000)
commit76ea70c613cee23a1846b9605e6433c1fa8baea7
tree6349d53cee3cf6febcbf9bb26c5878e201d643f5
parentdba88fb3ed3e70d2ad797f447a2a894b0891a5d7
hurd report-wait: Fix stpcpy usage

We shall not overflow the size of the description parameter. This makes
describe_number and describe_port behave like strpcpy (except for not filling
all the end of buffer with zeroes) and _S_msg_report_wait use series of
stpncpy-like call. If we were to overflow, we can now detect it and
return ENOMEM.
hurd/report-wait.c