Python: simplejson load/dump only works with lib installed

Which I had done locally. Problem is the same about not having PostUpdateNode
when points-to is not able to resolve the call, so I'm happy to just make CI
happy right now, and hopefully we'll get a fix to the underlying problem soon 😊
This commit is contained in:
Rasmus Wriedt Larsen
2021-05-10 16:21:29 +02:00
parent c2a6b811fc
commit 1b0d5053e7

View File

@@ -21,8 +21,8 @@ def test():
tainted_filelike.seek(0)
ensure_tainted(
tainted_filelike, # $ tainted
simplejson.load(tainted_filelike), # $ tainted decodeOutput=Attribute() decodeFormat=JSON decodeInput=tainted_filelike
tainted_filelike, # $ MISSING: tainted
simplejson.load(tainted_filelike), # $ decodeOutput=Attribute() decodeFormat=JSON decodeInput=tainted_filelike MISSING: tainted
)
# load/dump with file-like using keyword-args
@@ -31,8 +31,8 @@ def test():
tainted_filelike.seek(0)
ensure_tainted(
tainted_filelike, # $ tainted
simplejson.load(fp=tainted_filelike), # $ tainted decodeOutput=Attribute() decodeFormat=JSON decodeInput=tainted_filelike
tainted_filelike, # $ MISSING: tainted
simplejson.load(fp=tainted_filelike), # $ decodeOutput=Attribute() decodeFormat=JSON decodeInput=tainted_filelike MISSING: tainted
)
# To make things runable