projects
/
capablanca.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
757862e
)
Fix buffer overrun during loadding opening names
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Mon, 14 Dec 2015 12:37:22 +0000
(13:37 +0100)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Mon, 14 Dec 2015 12:37:22 +0000
(13:37 +0100)
One line in the long999.idx file was excessively long, and caused an overrun.
Limit increased to 99 characters now.
lasker-2.2.3/src/eco.c
patch
|
blob
|
history
diff --git
a/lasker-2.2.3/src/eco.c
b/lasker-2.2.3/src/eco.c
index
5f98267
..
2533142
100644
(file)
--- a/
lasker-2.2.3/src/eco.c
+++ b/
lasker-2.2.3/src/eco.c
@@
-32,7
+32,7
@@
typedef struct {
} NIC_entry;
typedef struct {
- char LONG[
80];
+ char LONG[
100]; // [HGM] used to be 80, which gave a buffer overrun on a 95-char long line in long9999.idx
char FENpos[74];
} LONG_entry;