fix rowspan/colspan integer overflow in wxHtmlTableCell::AddCell (PR #26554)

7 views
Skip to first unread message

Javid Khan

unread,
Jun 2, 2026, 7:50:48 AM (yesterday) Jun 2
to wx-...@googlegroups.com, Subscribed

AddCell() reads COLSPAN and ROWSPAN from the markup into ints with no upper bound, then uses r + rowspan and c + colspan to grow the cell table and to index ypos[] in Layout(). A value near INT_MAX, e.g. in the second row, overflows the addition so the r + rowspan > m_NumRows growth check is bypassed and Layout() writes past the end of ypos[]. Clamp colspan and rowspan to the limits from the HTML spec (1000 and 65534).


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26554

Commit Summary

  • 9601e08 fix rowspan/colspan integer overflow in wxHtmlTableCell::AddCell

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26554@github.com>

VZ

unread,
Jun 2, 2026, 8:54:14 AM (yesterday) Jun 2
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26554)

Thanks for fixing this!


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26554/c4602573972@github.com>

VZ

unread,
Jun 2, 2026, 8:55:39 AM (yesterday) Jun 2
to wx-...@googlegroups.com, Subscribed

Closed #26554 via 4309276.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26554/issue_event/26237632377@github.com>

Reply all
Reply to author
Forward
0 new messages