Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144348829
D40017.id121780.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
488 B
Referenced Files
None
Subscribers
None
D40017.id121780.diff
View Options
diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c
--- a/sbin/md5/md5.c
+++ b/sbin/md5/md5.c
@@ -686,7 +686,7 @@
switch (input_mode) {
case input_binary:
case input_text:
- if (tee && fwrite(block, 1, len, stdout) != (size_t)len)
+ if (tee && fwrite(block, 1, len, stdout) != len)
err(1, "stdout");
alg->Update(&context, block, len);
break;
@@ -734,7 +734,7 @@
break;
}
}
- if (len < 0) {
+ if (ferror(f)) {
alg->End(&context, buf);
return (NULL);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 8, 11:43 PM (18 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28512239
Default Alt Text
D40017.id121780.diff (488 B)
Attached To
Mode
D40017: md5: Fix input error check.
Attached
Detach File
Event Timeline
Log In to Comment