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
F106141925: D42564.diff
Thu, Dec 26, 2:23 AM
Unknown Object (File)
Wed, Dec 11, 8:55 AM
Unknown Object (File)
Nov 21 2024, 2:49 AM
Unknown Object (File)
Nov 21 2024, 2:37 AM
Unknown Object (File)
Nov 19 2024, 10:36 PM
Unknown Object (File)
Nov 17 2024, 11:46 AM
Unknown Object (File)
Nov 17 2024, 11:44 AM
Unknown Object (File)
Nov 17 2024, 11:40 AM
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 Skipped
Unit
Tests Skipped

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