Actions
Misc #18924
openlstrlen and lstrcat still in use
Status:
Open
Assignee:
-
Description
In practice, as-used, this is probably benign, but is a Terrible Idea.
There are several places where someone's still using lstrcat and lstrlen in ruby.
lstrcat catches and suppresses access violations. I have been burned by this in the wild as a user of other software, corrupting data and causing mysterious crashes. There's no good reason to use these functions. IIRC, they may even date back to before the standard library was standard (on windows?)?
Swapping them for standard functions like strcpy is not great, but can only break code that was incorrect and memory-corrupting already.
Actions
Like0
Like0