Skip to content
Snippets Groups Projects
Commit 69e46b9a authored by bohu's avatar bohu
Browse files

gptfdisk: fix stack overflow in parsing cmdline

The getopt_long will return -1 when all command-line
options have been parsed, and the index value will not
be changed in that case.

The caller should check both and handle it properly.

Change-Id: I203dd5bc42bb7ce83e558f25074c7e1a92f250e9
parent 165c596a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment