<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 13px;" lang="x-western">Fix psplash segmentation fault
<br>
<br>
This fixes the segmentation fault when calling:
<br>
psplash -a
<br>
<br>
The -a option requires a rotation angle to be given
<br>
and if it is missing then the user is shown the correct usage.
<br>
<br>
Signed-off-by: Aws Ismail <a class="moz-txt-link-rfc2396E"
href="mailto:aws.ismail@windriver.com"><aws.ismail@windriver.com></a>
<br>
<br>
diff --git
a/meta/recipes-core/psplash/files/psplash-fix-angle-argv-segfault.patch
b/meta/recipes-core/psplash/files/psplash-fix-angle-argv-s
<br>
new file mode 100644
<br>
index 0000000..797fe48
<br>
--- /dev/null
<br>
+++
b/meta/recipes-core/psplash/files/psplash-fix-angle-argv-segfault.patch
<br>
@@ -0,0 +1,27 @@
<br>
+Fix psplash segmentation fault
<br>
+
<br>
+This fixes the segmentation fault when calling:
<br>
+psplash -a
<br>
+
<br>
+The -a option requires a rotation angle to be given
<br>
+and if it is missing then the user is shown the correct usage.
<br>
+
<br>
+From: git://git.yoctoproject.org/psplash
<br>
+
<br>
+Upstream-Status: Submitted
<br>
+
<br>
+Signed-off-by: Aws Ismail <a class="moz-txt-link-rfc2396E"
href="mailto:aws.ismail@windriver.com"><aws.ismail@windriver.com></a>
<br>
+
<br>
+diff --git a/psplash.c b/psplash.c
<br>
+index 0158628..09cf0d0 100644
<br>
+--- a/psplash.c
<br>
++++ b/psplash.c
<br>
+@@ -219,7 +219,7 @@ main (int argc, char** argv)
<br>
+
<br>
+ if (!strcmp(argv[i],"-a") || !strcmp(argv[i],"--angle"))
<br>
+ {
<br>
+- if (++i > argc) goto fail;
<br>
++ if (++i >= argc) goto fail;
<br>
+ angle = atoi(argv[i]);
<br>
+ continue;
<br>
+ }
<br>
diff --git a/meta/recipes-core/psplash/psplash_git.bb
b/meta/recipes-core/psplash/psplash_git.bb
<br>
index 0d88a60..06f8a9c 100644
<br>
--- a/meta/recipes-core/psplash/psplash_git.bb
<br>
+++ b/meta/recipes-core/psplash/psplash_git.bb
<br>
@@ -11,6 +11,7 @@ PR = "r2"
<br>
<br>
SRC_URI = "git://git.yoctoproject.org/${BPN};protocol=git \
<br>
<a class="moz-txt-link-freetext"
href="file://psplash-init">file://psplash-init</a> \
<br>
+ <a class="moz-txt-link-freetext"
href="file://psplash-fix-angle-argv-segfault.patch">file://psplash-fix-angle-argv-segfault.patch</a>
\
<br>
${SPLASH_IMAGES}"
<br>
<br>
SPLASH_IMAGES = <a class="moz-txt-link-rfc2396E"
href="file://psplash-poky-img.h;outsuffix=default">"file://psplash-poky-img.h;outsuffix=default"</a>
<br>
<br>
</div>
</body>
</html>