Project

General

Profile

Actions

Bug #18924

open

lstrlen and lstrcat still in use

Added by test35965@gmail.com (Alexander Riccio) 21 days ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:109236]

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.

No data to display

Actions

Also available in: Atom PDF