Bug 159395 - [boot] Incorrect implementation of strncmp in boot code
Summary: [boot] Incorrect implementation of strncmp in boot code
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 8.2-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-02 21:40 UTC by Andrey Russev
Modified: 2019-01-07 18:32 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Russev 2011-08-02 21:40:09 UTC
Implementation of strncmp function in sys/boot/common/util.c differs
from libc version. You have to use strncmp(str1, str2, len - 1) instead
of strncmp(str1, str2, len) to archieve similar effect. For example,
strncmp(str1, str2, 0) returns zero if libc version is used and
difference of first characters if util.c version is used.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:56 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Warner Losh freebsd_committer freebsd_triage 2019-01-07 18:32:15 UTC
We've eliminated this code with the great move to stand + rewrite.
Closing bug as OBE.