Project

General

Profile

Actions

Misc #18924

open

lstrlen and lstrcat still in use

Added by test35965@gmail.com (Alexander Riccio) over 2 years ago. Updated over 1 year ago.

Status:
Open
Assignee:
-
[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.

Actions #1

Updated by jeremyevans0 (Jeremy Evans) over 1 year ago

  • Tracker changed from Bug to Misc
  • Backport deleted (2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN)
Actions

Also available in: Atom PDF

Like0
Like0