Skip to content

Fixes#8

Merged
JaviLendi merged 2 commits into
masterfrom
Fixes
May 10, 2026
Merged

Fixes#8
JaviLendi merged 2 commits into
masterfrom
Fixes

Conversation

@JaviLendi
Copy link
Copy Markdown
Owner

No description provided.

JaviLendi and others added 2 commits May 10, 2026 17:17
…converted to larger type

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Replace unsafe char->WCHAR casts with str::CastToWCHAR and fix ToUtf8Temp usage (EbookDoc, EngineImages, StrconvUtil). Add bounds and overflow checks for allocations and early returns to prevent integer/size_t overflows and invalid allocations (Screenshot, SumatraDialogs). Fix format specifiers and pointer formatting in logging (SearchAndDDE, SumatraPDF). Use the original view mode string when building DDE commands to avoid unnecessary wide-string conversion (SumatraStartup). Adjust TGA serialization to use size_t casts for safe size calculations and allocation (TgaReader). These changes address potential UB, allocation overflows and improve robustness.
Copilot AI review requested due to automatic review settings May 10, 2026 17:22
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@JaviLendi JaviLendi merged commit 8eecbc2 into master May 10, 2026
7 of 8 checks passed
@JaviLendi JaviLendi deleted the Fixes branch May 15, 2026 17:40
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.

2 participants