Page MenuHomeFreeBSD

tty: properly check character position when handling IUTF8 backspaces
ClosedPublic

Authored by bnovkov on Nov 13 2023, 4:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 12:23 PM
Unknown Object (File)
Tue, Apr 23, 3:12 PM
Unknown Object (File)
Sun, Apr 14, 5:33 PM
Unknown Object (File)
Thu, Apr 11, 12:21 PM
Unknown Object (File)
Mon, Apr 8, 2:07 PM
Unknown Object (File)
Sun, Apr 7, 10:23 PM
Unknown Object (File)
Mar 9 2024, 3:59 PM
Unknown Object (File)
Mar 4 2024, 11:53 PM
Subscribers

Details

Summary

This patch fixes PR 275009.

The tty_rubchar code handling backspaces for UTF8 characters didn't properly check whether the beginning of the current line was reached.
This resulted in a kernel panic in ttyinq_unputchar when prodded with certain malformed UTF8 sequences.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Nov 13 2023, 5:53 PM

Upload diff with full context.

This revision now requires review to proceed.Nov 13 2023, 5:56 PM
This revision is now accepted and ready to land.Nov 13 2023, 5:58 PM