|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [XEN] Fix array ngative accesses in figle
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID e87e5d216c0b0243342487256e820aa5b5950d89
# Parent 65b33e64b6421fbc8bcb266ecd65278953b75cb1
[XEN] Fix array ngative accesses in figlet tool.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
xen/tools/figlet/figlet.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff -r 65b33e64b642 -r e87e5d216c0b xen/tools/figlet/figlet.c
--- a/xen/tools/figlet/figlet.c Thu Sep 14 16:01:46 2006 +0100
+++ b/xen/tools/figlet/figlet.c Fri Sep 15 10:59:18 2006 +0100
@@ -1448,8 +1448,9 @@ inchr c;
}
else {
for (k=0;k<smushamount;k++) {
- outputline[row][outlinelen-smushamount+k] =
- smushem(outputline[row][outlinelen-smushamount+k],currchar[row][k]);
+ if (outlinelen-smushamount+k >= 0)
+ outputline[row][outlinelen-smushamount+k] =
+
smushem(outputline[row][outlinelen-smushamount+k],currchar[row][k]);
}
strcat(outputline[row],currchar[row]+smushamount);
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [XEN] Fix array ngative accesses in figlet tool.,
Xen patchbot-unstable <=
|
|
|
|
|