* error.c (report_bug): use buf and snprintf to avoid consuming stack.
[ruby-dev:45272] [Bug #6058] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2646c69479
commit
d068ac8e0c
@ -1,3 +1,8 @@
|
||||
Sun Feb 26 05:35:43 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* error.c (report_bug): use buf and snprintf to avoid consuming stack.
|
||||
[ruby-dev:45272] [Bug #6058]
|
||||
|
||||
Sat Feb 25 17:41:19 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/dbm/extconf.rb (headers): try ambiguous headers at last.
|
||||
|
7
error.c
7
error.c
@ -260,8 +260,11 @@ report_bug(const char *file, int line, const char *fmt, va_list args)
|
||||
(ssize_t)fwrite(buf, 1, len, (out = stdout)) == (ssize_t)len) {
|
||||
|
||||
fputs("[BUG] ", out);
|
||||
vfprintf(out, fmt, args);
|
||||
fprintf(out, "\n%s\n\n", ruby_description);
|
||||
vsnprintf(buf, 256, fmt, args);
|
||||
fputs(buf, out);
|
||||
snprintf(buf, 256, "\n%s\n\n", ruby_description);
|
||||
fputs(buf, out);
|
||||
|
||||
|
||||
rb_vm_bugreport();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user