NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/55441: mktemp(3) does not accept an arbitrary number of 'X's



>Number:         55441
>Category:       lib
>Synopsis:       mktemp(3) does not accept an arbitrary number of 'X's
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 01 03:50:00 +0000 2020
>Originator:     jruohonen%iki.fi@localhost
>Release:        NetBSD 9.99.68
>Organization:
>Environment:
System: NetBSD kafka 9.99.68 NetBSD 9.99.68 (CUSTOM) #0: Tue Jun 23 11:22:56 EEST 2020 jruoho@kafka:/tmp/obj/sys/arch/amd64/compile/CUSTOM amd64
Architecture: x86_64
Machine: amd64
>Description:
The mktemp(3) manual page says: 

"Although the NetBSD mplementation of the functions will accept any number
of trailing â??Xâ??s [...]".

However, this claim seems to be untrue. Note that the whole mktemp(3) family
of functions is affected.

>How-To-Repeat:
Try mktemp(3) with a template containing, e.g., PATH_MAX of 'X's.
>Fix:
Either fix the implementation or the documentation.



Home | Main Index | Thread Index | Old Index