Skip to content

Font Rendering: Implement robust validation for Unicode array access and buffer list pointers - #174

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/font-buffer-validation
Open

Font Rendering: Implement robust validation for Unicode array access and buffer list pointers#174
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/font-buffer-validation

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-177. The issue was that: Delegation to an invalid AlternateUnicodeFont object during text extent calculation causes a fatal write access violation in Store_GDI_Char.

  • Added validation to ensure UnicodeCharArray is allocated and the index is valid before retrieving character data.
  • Implemented a safety check to ensure BufferList is not empty and the last element is not NULL before accessing the current font buffer.
  • Cached the current font buffer pointer (current_buffer) immediately after Update_Current_Buffer() to prevent potential race conditions.
  • Added robust validation and error handling (including cleanup of allocated data) when inserting new character data into UnicodeCharArray.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 8001435

Not quite right? Click here to continue debugging with Seer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants