summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strdup.c
diff options
context:
space:
mode:
authortb <>2025-05-24 19:45:34 +0000
committertb <>2025-05-24 19:45:34 +0000
commit8f9b910dab9bb415ae6b6c130c5e1d7bf9045d92 (patch)
treefd557221697d0d1fff3dfb2f69a8c613557093d7 /src/lib/libc/string/strdup.c
parentfca273f703deb8e39e842b4028f0797813f40bbf (diff)
downloadopenbsd-8f9b910dab9bb415ae6b6c130c5e1d7bf9045d92.tar.gz
openbsd-8f9b910dab9bb415ae6b6c130c5e1d7bf9045d92.tar.bz2
openbsd-8f9b910dab9bb415ae6b6c130c5e1d7bf9045d92.zip
Create bm->buf from the start to avoid arithmetic on NULL
This is a different way of avoiding the pointer arithmetic on NULL and avoids test breakage in pyca/cryptography. This is also a gross hack that penalizes existing callers of BIO_s_mem(), but this is rarely called in a hot loop and if so that will most likely be a test. ok kenjiro joshua jsing
Diffstat (limited to 'src/lib/libc/string/strdup.c')
0 files changed, 0 insertions, 0 deletions