Summary: | Unneeded (?) assertion in ttyinq_line_iterate() from sys/kern/tty_inq.c | ||
---|---|---|---|
Product: | Base System | Reporter: | Jan Kokemüller <jan.kokemueller> |
Component: | kern | Assignee: | Mark Johnston <markj> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | markj |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Jan Kokemüller
2016-12-18 10:00:28 UTC
(In reply to Jan Kokemüller from comment #0) 5.5 years later, this is exactly right. The assertion is legitimately false if we are at the very end of the buffer. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=d769609620931a62ebacbd4f1f5fd048c7e3d7c0 commit d769609620931a62ebacbd4f1f5fd048c7e3d7c0 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-04-12 21:30:04 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-04-12 21:30:04 +0000 tty: Remove an incorrect assertion from ttyinq_line_iterate() We may legitimately have tib == NULL if we're at the very end of the queue. PR: 215373 Reported by: pho MFC after: 1 week Sponsored by: The FreeBSD Foundation sys/kern/tty_inq.c | 1 - 1 file changed, 1 deletion(-) A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=60c952d4724974b877b2ec02784e22b74dab8809 commit 60c952d4724974b877b2ec02784e22b74dab8809 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-04-12 21:30:04 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-04-18 16:19:57 +0000 tty: Remove an incorrect assertion from ttyinq_line_iterate() We may legitimately have tib == NULL if we're at the very end of the queue. PR: 215373 Reported by: pho Sponsored by: The FreeBSD Foundation (cherry picked from commit d769609620931a62ebacbd4f1f5fd048c7e3d7c0) sys/kern/tty_inq.c | 1 - 1 file changed, 1 deletion(-) |