projects
/
ruby-vorbistagger.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1395b81
)
Reject filenames that are longer than PATH_MAX.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Thu, 17 Aug 2006 16:07:29 +0000
(18:07 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Wed, 23 Aug 2006 17:39:15 +0000
(19:39 +0200)
ext/vcedit.c
patch
|
blob
|
history
diff --git
a/ext/vcedit.c
b/ext/vcedit.c
index dfad95caf8a807bb5dee614e2590cfa567eaa726..393ca9d14c0033034ecf56592b1bd1c86285c94d 100644
(file)
--- a/
ext/vcedit.c
+++ b/
ext/vcedit.c
@@
-85,6
+85,8
@@
vcedit_state_new (const char *filename)
size_t len;
len = strlen (filename);
+ if (len > PATH_MAX)
+ return NULL;
state = malloc (sizeof (vcedit_state) + len + 1);
if (!state)