Bug #149

bug in Kernel.Upper/Lower

Added by J. Templ almost 2 years ago. Updated almost 2 years ago.

Status:ClosedStart date:03/09/2017
Priority:NormalDue date:
Assignee:J. Templ% Done:

100%

Category:-
Target version:1.7.1
Forum topic:f=49&t=598

Description

Calling Kernel.Upper/Lower can crash the system because the argument
is not passed correctly as a single character to WinApi.CharUpperW/CharLowerW.
Instead it may be treated as a zero-terminated character string
and converted in place, which overwrites memory at an arbitrary location.
In order to fix this, the character must be zero extended to a 32-bit value
before passing it to WinApi.

Associated revisions

Revision c7b29b39
Added by J. Templ almost 2 years ago

fixed a bug in Kernel.Upper/Lower. Refs: #149.
Single character arguments must be zero-extended to 32-bit.

Signed-off-by: Josef Templ <>

Revision d7084769
Added by R. Campbell almost 2 years ago

Merge pull request #156 from BlackBoxCenter/issue-#149

fixed a bug in Kernel.Upper/Lower. Refs: #149.

History

#1 Updated by R. Campbell almost 2 years ago

  • Status changed from New to Closed

#2 Updated by I. Denisov almost 2 years ago

  • % Done changed from 0 to 100
  • Forum topic set to f=49&t=598

Also available in: Atom PDF