Skip to content

Conversation

@jayrm
Copy link
Member

@jayrm jayrm commented May 20, 2019

  • When using concatenate and assign operator &= on fixed length wstring buffer, the null terminator can be overwritten causing a buffer overrun on a subsequent operation.
  • fixed using fb_wstr_copy() which explicitly writes the null terminator
  • tests added

fixes #145

- When using concatenate and assign operator &= on fixed length wstring buffer, the null terminator can be overwritten causing a buffer overrun on a subsequent operation.
- fixed using fb_wstr_copy() which explicitly writes the null terminator
- tests added
@jayrm jayrm merged commit 799e8d4 into freebasic:master May 20, 2019
@jayrm jayrm deleted the wstring-buffer-overrun branch May 20, 2019 14:13
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.

wstring concat and assign buffer overrun

1 participant