Skip to content

Commit

Permalink
Merge r266331 - [GTK] REGRESSION(r150392) insufficient space allocati…
Browse files Browse the repository at this point in the history
…on results in heap corruption

https://bugs.webkit.org/show_bug.cgi?id=215976

Patch by Jim Mason <jmason@ibinx.com> on 2020-08-30
Reviewed by Carlos Garcia Campos.

* wtf/glib/RunLoopGLib.cpp:
(WTF::RunLoop::TimerBase::TimerBase):
  • Loading branch information
RocketMan authored and carlosgcampos committed Sep 4, 2020
1 parent e7320c8 commit d94788a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Source/WTF/ChangeLog
@@ -1,3 +1,13 @@
2020-08-30 Jim Mason <jmason@ibinx.com>

[GTK] REGRESSION(r150392) insufficient space allocation results in heap corruption
https://bugs.webkit.org/show_bug.cgi?id=215976

Reviewed by Carlos Garcia Campos.

* wtf/glib/RunLoopGLib.cpp:
(WTF::RunLoop::TimerBase::TimerBase):

2020-08-24 Carlos Garcia Campos <cgarcia@igalia.com>

[GTK] Implement rendering frames timeline panel for GTK+ port
Expand Down
2 changes: 1 addition & 1 deletion Source/WTF/wtf/glib/RunLoopGLib.cpp
Expand Up @@ -158,7 +158,7 @@ void RunLoop::notify(RunLoop::Event event)

RunLoop::TimerBase::TimerBase(RunLoop& runLoop)
: m_runLoop(runLoop)
, m_source(adoptGRef(g_source_new(&RunLoop::s_runLoopSourceFunctions, sizeof(GSource))))
, m_source(adoptGRef(g_source_new(&RunLoop::s_runLoopSourceFunctions, sizeof(RunLoopSource))))
{
auto& runLoopSource = *reinterpret_cast<RunLoopSource*>(m_source.get());
runLoopSource.runLoop = m_runLoop.ptr();
Expand Down

0 comments on commit d94788a

Please sign in to comment.