Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e96e610
)
ecere/gui/EditBox: Fixed another out of bound memory read
author
Jerome St-Louis
<jerome@ecere.com>
Thu, 10 Apr 2014 06:26:24 +0000
(
02:26
-0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Thu, 10 Apr 2014 06:27:56 +0000
(
02:27
-0400)
ecere/src/gui/controls/EditBox.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/controls/EditBox.ec
b/ecere/src/gui/controls/EditBox.ec
index
783332f
..
fdce0e9
100644
(file)
--- a/
ecere/src/gui/controls/EditBox.ec
+++ b/
ecere/src/gui/controls/EditBox.ec
@@
-3884,7
+3884,7
@@
private:
break;
}
}
- while(--c)
+ while(--c
>= 0
)
{
byte ch = line.buffer[c];
if(UTF8_IS_FIRST(ch)) break;