diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-06-27 14:57:10 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-06-27 14:57:10 +0000 |
| commit | 4e07602d4e4ee2dac318c9e6f8f584cc78104286 (patch) | |
| tree | 8f59c20b1c7899aabe3c4b660281207f0370cc0e /win32 | |
| parent | 7e782b8975f5ed287f0dcd9827c0d9b1a8112f4d (diff) | |
| download | ruby-4e07602d4e4ee2dac318c9e6f8f584cc78104286.tar.gz ruby-4e07602d4e4ee2dac318c9e6f8f584cc78104286.tar.xz ruby-4e07602d4e4ee2dac318c9e6f8f584cc78104286.zip | |
* win32/win32.c (rb_w32_stat): fix buffer overflow. (ruby-bugs:PR#329)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c index 24699be9c..6f0133b3d 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2456,7 +2456,7 @@ int rb_w32_stat(const char *path, struct stat *st) { const char *p; - char *buf1 = ALLOCA_N(char, strlen(path) + 1); + char *buf1 = ALLOCA_N(char, strlen(path) + 2); char *buf2 = ALLOCA_N(char, MAXPATHLEN); char *s; int len; |
