SMCWrapper icon indicating copy to clipboard operation
SMCWrapper copied to clipboard

Typo that causes access violation

Open DanielLewisRandall opened this issue 7 years ago • 0 comments

Was "withSize:dataType" which makes it access memory outside of bounds.

I fixed by changing the it to "withSize:val.dataSize".

 [self stringRepresentationForBytes:val.bytes
         withSize:val.dataSize
        ofType:val.dataType
         inBuffer:&cStr[0]];

DanielLewisRandall avatar Feb 26 '18 20:02 DanielLewisRandall