Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix segv if only --reset option given #215

Merged
merged 1 commit into from

2 participants

@petiepooo

We didn't recheck that there are enough parameters after shifting the --reset option off the list.

@petiepooo petiepooo Fix segv if only --reset option given
We didn't recheck that there are enough parameters after shifting the --reset option off the list.
9b1c004
@texane texane merged commit 985cb48 into texane:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 10, 2014
  1. @petiepooo

    Fix segv if only --reset option given

    petiepooo authored
    We didn't recheck that there are enough parameters after shifting the --reset option off the list.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  flash/main.c
View
2  flash/main.c
@@ -48,6 +48,8 @@ static int get_opts(struct opts* o, int ac, char** av)
{
o->reset = 0;
}
+
+ if (ac < 1) return -1;
/* stlinkv2 */
o->devname = NULL;
Something went wrong with that request. Please try again.