In TEdit::GetLine, the string null-terminator is written beyond the given buffer, if the line length equals or exceeds the buffer size. Note that EM_GETLINE in this case fills the whole buffer, and the count returned equals the buffer size.
Discussion: Preparing updates for OWLNext 7.0, 6.44 and 6.36
News: 2024/05/owlnext-7014-64424-6369-updates
Wiki: OWLNext_Stable_Releases
This issue has now been fixed on the trunk [r7106], and the fix has been merged into 7.0 and 6.44 [r7107], as well as 6.36 [r7108]. Resolution: If the buffer is too small, the string is now truncated and false is returned (as per function documentation).
Related
Commit: [r7106]
Commit: [r7107]
Commit: [r7108]
Last edit: Vidar Hasfjord 2024-09-17