Description

When using the StringToBytes() function it returns one less byte due to the -1 at the end of the return. The function takes a string and converts it to bytes but it always returns one less byte than what was put in by the string. This causes the number of bytes returned to be in-accurate.

Steps to Reproduce
  1. Open the Visual Studio solution file for 4.17.2
  2. Navigate to lines 1801 - 1812 in UnrealString.h to find StringToBytes

 

Result: StringToBytes function returns NumBytes - 1

Expected: StringToBytes function returns NumBytes

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-53750 in the post.

0
Login to Vote

Fixed
ComponentCore
Affects Versions4.17.24.18.24.19
Target Fix4.20
Fix Commit3825777
Main Commit3847482
Release Commit4095966
CreatedJan 4, 2018
ResolvedJan 8, 2018
UpdatedMay 31, 2018