* [U-Boot] [PATCH] MX28: Fix MXSBOOT segfault if no params specified
@ 2011-12-22 19:55 Marek Vasut
2012-01-03 21:19 ` Marek Vasut
2012-01-04 13:38 ` Stefano Babic
0 siblings, 2 replies; 3+ messages in thread
From: Marek Vasut @ 2011-12-22 19:55 UTC (permalink / raw)
To: u-boot
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
---
tools/mxsboot.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tools/mxsboot.c b/tools/mxsboot.c
index 176753d..8246831 100644
--- a/tools/mxsboot.c
+++ b/tools/mxsboot.c
@@ -606,6 +606,9 @@ int parse_ops(int argc, char **argv)
};
int type;
+ if (argc < 4)
+ return -1;
+
for (i = 1; i < argc; i++) {
if (!strncmp(argv[i], "-w", 2))
type = PARAM_WRITE;
--
1.7.7.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] MX28: Fix MXSBOOT segfault if no params specified
2011-12-22 19:55 [U-Boot] [PATCH] MX28: Fix MXSBOOT segfault if no params specified Marek Vasut
@ 2012-01-03 21:19 ` Marek Vasut
2012-01-04 13:38 ` Stefano Babic
1 sibling, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2012-01-03 21:19 UTC (permalink / raw)
To: u-boot
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> Cc: Wolfgang Denk <wd@denx.de>
> Cc: Stefano Babic <sbabic@denx.de>
> ---
> tools/mxsboot.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/tools/mxsboot.c b/tools/mxsboot.c
> index 176753d..8246831 100644
> --- a/tools/mxsboot.c
> +++ b/tools/mxsboot.c
> @@ -606,6 +606,9 @@ int parse_ops(int argc, char **argv)
> };
> int type;
>
> + if (argc < 4)
> + return -1;
> +
> for (i = 1; i < argc; i++) {
> if (!strncmp(argv[i], "-w", 2))
> type = PARAM_WRITE;
BUMP
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] MX28: Fix MXSBOOT segfault if no params specified
2011-12-22 19:55 [U-Boot] [PATCH] MX28: Fix MXSBOOT segfault if no params specified Marek Vasut
2012-01-03 21:19 ` Marek Vasut
@ 2012-01-04 13:38 ` Stefano Babic
1 sibling, 0 replies; 3+ messages in thread
From: Stefano Babic @ 2012-01-04 13:38 UTC (permalink / raw)
To: u-boot
On 22/12/2011 20:55, Marek Vasut wrote:
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> Cc: Wolfgang Denk <wd@denx.de>
> Cc: Stefano Babic <sbabic@denx.de>
> ---
> tools/mxsboot.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/tools/mxsboot.c b/tools/mxsboot.c
> index 176753d..8246831 100644
Applied to u-boot-imx, thanks.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-04 13:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-22 19:55 [U-Boot] [PATCH] MX28: Fix MXSBOOT segfault if no params specified Marek Vasut
2012-01-03 21:19 ` Marek Vasut
2012-01-04 13:38 ` Stefano Babic
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.