Skip to content

Commit

Permalink
[1.8>master] [MERGE #4403 @tcare] Fix TVS bug in UriHelper
Browse files Browse the repository at this point in the history
Merge pull request #4403 from tcare:prefasturi

Fixes OS: 14980718

We already have a pragma, but the current one will only work for the following line, and not between the two directives as intended. Change to disable.
  • Loading branch information
tcare committed Dec 12, 2017
2 parents 1459176 + 6df4708 commit e52f3a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Runtime/Library/UriHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ namespace Js
uint32 utfLen = ToUTF8(uVal, bUTF8);
for( uint32 j = 0; j < utfLen; j++ )
{
#pragma prefast(suppress: 26014, "buffer length was calculated earlier");
#pragma prefast(disable: 26014, "buffer length was calculated earlier");
BYTE val = bUTF8[j];
*outCurrent++ = _u('%');
*outCurrent++ = hexStream[(val >> 4)];
Expand Down

0 comments on commit e52f3a5

Please sign in to comment.