Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: add fix for possible getopt crash #1864

Closed
wants to merge 1 commit into from

Conversation

evanlucas
Copy link
Contributor

Done by mutating the actual argument vector before processing.

Previously, with the added getopt option parsing, node -ie would crash. This fixes cases like that.

Done by mutating the actual argument vector before processing.
@Fishrock123
Copy link
Contributor

cc @bnoordhuis

@mscdex mscdex added the c++ Issues and PRs that require attention from people who are familiar with C++. label Jun 1, 2015
// "node -abc --scm git" -> "node -a -b -c --scm git"
// implementation was adapted from
// https://github.com/clibs/commander/blob/master/src/commander.c
static char ** normalize_args(int *argc, char **argv) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style issues: use type* everywhere. Stars lean to the left.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants