projects
/
profile
/
ivi
/
eet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78c7ab3
)
check for overflow of of buflen
author
tsauerbeck
<tsauerbeck>
Thu, 26 May 2005 10:58:22 +0000
(10:58 +0000)
committer
tsauerbeck
<tsauerbeck@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 26 May 2005 10:58:22 +0000
(10:58 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/eet@14954
7cbeb6ba
-43b4-40fd-8cce-
4c39aea84d33
src/lib/eet_lib.c
patch
|
blob
|
history
diff --git
a/src/lib/eet_lib.c
b/src/lib/eet_lib.c
index
1e79de7
..
eebd4dd
100644
(file)
--- a/
src/lib/eet_lib.c
+++ b/
src/lib/eet_lib.c
@@
-883,7
+883,7
@@
eet_write(Eet_File *ef, char *name, void *data, int size, int compress)
}
/* record compressed chunk size */
data_size = (int)buflen;
- if (data_size >= size)
+ if (data_size
< 0 || data_size
>= size)
{
compress = 0;
data_size = size;