Skip to content

Fix BMP RLE decoding #4746

@DorpsGek

Description

@DorpsGek

monoid opened the ticket and wrote:

This patch fixes errors in the decoding of RLE-compressed BMP format images. The write pointer of the decoder can be positioned anywhere in address space using a series of end-of-line and delta RLE instructions, and then arbitrary data written, leading to i.e. heap/stack modification.

A sample exploit, leading to arbitrary code execution on OpenTTD 1.1.2 on a WinXP SP2 test machine is available upon request.

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/4746

Metadata

Metadata

Assignees

No one assigned

    Labels

    flysprayThis issue is imported from FlySpray (https://bugs.openttd.org/)patch from FlySprayThis issue is in fact a Patch, but imported from FlySrpay

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions