Slide 19
Slide 19 text
Static Taint Analysis for JavaScript Programs / 25
String Abstract Domain (2)
■ In TAJS, (p) points to all properties of object (obj).
■ In TAJS
taint
, (p) is represented by gn1.
19
function lookup (obj, str, p) {
while (p.length < N)
p = str + p ;
return obj[p];
}
lookup(obj, ”g”, ”1”);