vanish87 / nvidia-widgets

Automatically exported from code.google.com/p/nvidia-widgets
0 stars 0 forks source link

LineEdit widget, memory corruption #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(excuse my fuzzy memory, i should have reported earlier, and that code is a
tad too baroque for what it does)

In doLineEdit at line 757 and 768, memmoves are incorrectly guarded and if
m_focusCaretPos > textLength bad karma ensues.

Original issue reported on code.google.com by tbptbp@gmail.com on 14 Jan 2009 at 1:46

GoogleCodeExporter commented 9 years ago
Sam, this one is for you.

http://code.google.com/p/nvidia-widgets/source/browse/trunk/src/nvwidgets/nvWidg
ets.cpp#757

http://code.google.com/p/nvidia-widgets/source/browse/trunk/src/nvwidgets/nvWidg
ets.cpp#768

Original comment by cast...@gmail.com on 14 Jan 2009 at 1:57

GoogleCodeExporter commented 9 years ago
I've applied the patch you provided. This is not fixed in revision 13:

http://code.google.com/p/nvidia-widgets/source/detail?r=13

Original comment by cast...@gmail.com on 20 Jan 2009 at 2:37