summaryrefslogtreecommitdiff
path: root/src/ipc
diff options
context:
space:
mode:
authorAlexey Izbyshev <izbyshev@ispras.ru>2023-03-10 20:00:31 +0300
committerRich Felker <dalias@aerifal.cx>2023-04-11 09:18:38 -0400
commit6d322159c633050a405b03b927db76b89e402014 (patch)
tree3c8fe56b45f18e2a80fcda63f854ee6fef3b2703 /src/ipc
parent35e9831156efc1b54e1a91917ba0f787d5df3353 (diff)
downloadmusl-6d322159c633050a405b03b927db76b89e402014.tar.gz
getopt: fix null pointer arithmetic ub
When an option that requires an argument is the last character of argv[argc-1], getopt computes argv[argc] + optpos. While optpos is always zero in this case, adding it to null pointer is still undefined.
Diffstat (limited to 'src/ipc')
0 files changed, 0 insertions, 0 deletions