mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
JS: Fix offsets in regexes parsed from strings with escapes
This commit is contained in:
@@ -221,8 +221,8 @@ exprContainers(#20075,#20001)
|
||||
literals("?","'\ud800'",#20075)
|
||||
#20076=*
|
||||
regexpterm(#20076,14,#20075,0,"?")
|
||||
#20077=@"loc,{#10000},2,2,2,2"
|
||||
locations_default(#20077,#10000,2,2,2,2)
|
||||
#20077=@"loc,{#10000},2,2,2,7"
|
||||
locations_default(#20077,#10000,2,2,2,7)
|
||||
hasLocation(#20076,#20077)
|
||||
regexpConstValue(#20076,"?")
|
||||
#20078=*
|
||||
@@ -237,8 +237,8 @@ exprContainers(#20079,#20001)
|
||||
literals("foo?","'foo\ud800'",#20079)
|
||||
#20080=*
|
||||
regexpterm(#20080,14,#20079,0,"foo?")
|
||||
#20081=@"loc,{#10000},3,2,3,5"
|
||||
locations_default(#20081,#10000,3,2,3,5)
|
||||
#20081=@"loc,{#10000},3,2,3,10"
|
||||
locations_default(#20081,#10000,3,2,3,10)
|
||||
hasLocation(#20080,#20081)
|
||||
regexpConstValue(#20080,"foo?")
|
||||
#20082=*
|
||||
@@ -253,8 +253,8 @@ exprContainers(#20083,#20001)
|
||||
literals("?bar","'\ud800bar'",#20083)
|
||||
#20084=*
|
||||
regexpterm(#20084,14,#20083,0,"?bar")
|
||||
#20085=@"loc,{#10000},4,2,4,5"
|
||||
locations_default(#20085,#10000,4,2,4,5)
|
||||
#20085=@"loc,{#10000},4,2,4,10"
|
||||
locations_default(#20085,#10000,4,2,4,10)
|
||||
hasLocation(#20084,#20085)
|
||||
regexpConstValue(#20084,"?bar")
|
||||
#20086=*
|
||||
@@ -269,8 +269,8 @@ exprContainers(#20087,#20001)
|
||||
literals("foo?bar","'foo\ud800bar'",#20087)
|
||||
#20088=*
|
||||
regexpterm(#20088,14,#20087,0,"foo?bar")
|
||||
#20089=@"loc,{#10000},5,2,5,8"
|
||||
locations_default(#20089,#10000,5,2,5,8)
|
||||
#20089=@"loc,{#10000},5,2,5,13"
|
||||
locations_default(#20089,#10000,5,2,5,13)
|
||||
hasLocation(#20088,#20089)
|
||||
regexpConstValue(#20088,"foo?bar")
|
||||
#20090=*
|
||||
@@ -388,8 +388,8 @@ exprContainers(#20121,#20001)
|
||||
literals("??","'\udc00\ud800'",#20121)
|
||||
#20122=*
|
||||
regexpterm(#20122,14,#20121,0,"??")
|
||||
#20123=@"loc,{#10000},11,2,11,3"
|
||||
locations_default(#20123,#10000,11,2,11,3)
|
||||
#20123=@"loc,{#10000},11,2,11,13"
|
||||
locations_default(#20123,#10000,11,2,11,13)
|
||||
hasLocation(#20122,#20123)
|
||||
regexpConstValue(#20122,"??")
|
||||
#20124=*
|
||||
@@ -404,8 +404,8 @@ exprContainers(#20125,#20001)
|
||||
literals("𝌆","'\uD834\uDF06'",#20125)
|
||||
#20126=*
|
||||
regexpterm(#20126,14,#20125,0,"𝌆")
|
||||
#20127=@"loc,{#10000},13,2,13,3"
|
||||
locations_default(#20127,#10000,13,2,13,3)
|
||||
#20127=@"loc,{#10000},13,2,13,13"
|
||||
locations_default(#20127,#10000,13,2,13,13)
|
||||
hasLocation(#20126,#20127)
|
||||
regexpConstValue(#20126,"𝌆")
|
||||
#20128=*
|
||||
|
||||
Reference in New Issue
Block a user