Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109358840
D44987.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
400 B
Referenced Files
None
Subscribers
None
D44987.diff
View Options
diff --git a/libexec/rtld-elf/rtld_printf.c b/libexec/rtld-elf/rtld_printf.c
--- a/libexec/rtld-elf/rtld_printf.c
+++ b/libexec/rtld-elf/rtld_printf.c
@@ -81,11 +81,10 @@
}
break;
case PRINT_METHOD_WRITE:
- if (info->remain > 0) {
- *info->str++ = ch;
- info->remain--;
- } else
+ if (info->remain == 0)
printf_out(info);
+ *info->str++ = ch;
+ info->remain--;
break;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 5, 12:55 AM (21 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16464011
Default Alt Text
D44987.diff (400 B)
Attached To
Mode
D44987: rtld snprintf: do not erronously skip a char at the buffer boundary
Attached
Detach File
Event Timeline
Log In to Comment