HomeFreeBSD

vt: avoid overrun when stride is not a multiple of bytes per pixel

Description

vt: avoid overrun when stride is not a multiple of bytes per pixel

The reporter is developing a frame buffer driver for hardware using
3 bytes per pixel, but a stride that's a multiple of 256. Previously
this resulted in writing beyond the end of each stride. On the last
row this attempted to write past the end of the frame buffer, triggering
the assertion in vt_fb_mem_wr1().

PR: 243533
MFC after: 2 weeks
Submitted by: Thomas Skibo

Details

Provenance
emasteAuthored on
Parents
rS359625: Fix up the handling of the "tls" and "tlscert" export options and
Branches
Unknown
Tags
Unknown