summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-16 07:18:23 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-16 07:18:23 +0000
commit95bd0ad8c00e4b46e604be5592c0b00cd23f2ba2 (patch)
tree4bc23c6b027b8a501beccd61494cc87267605ad9 /ruby.c
parentb5e0d76b58928da5dee0fdbf1b806f566abafb03 (diff)
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 7fca55f2d5..10df06542e 100644
--- a/ruby.c
+++ b/ruby.c
@@ -149,7 +149,7 @@ rubylib_mangle(s, l)
newp++; /* Skip whitespace. */
}
newl = strlen(newp);
- if (newl == 0 || oldl == 0) {
+ if (newl == 0 || oldl == 0 || newl > STATIC_FILE_LENGTH) {
Fatal("malformed RUBYLIB_PREFIX");
}
strcpy(ret, newp);