Skip to content

Commit eb32cbe

Browse files
committed
Python: codecs.open
1 parent bdc4808 commit eb32cbe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/ql/lib/semmle/python/frameworks/Stdlib.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,6 +1492,9 @@ module StdlibPrivate {
14921492
or
14931493
// io.open is a special case, since it is an alias for the builtin `open`
14941494
result = API::moduleImport("io").getMember("open")
1495+
or
1496+
// similarly, coecs.open calls the builtin `open`: https://github.com/python/cpython/blob/3.12/Lib/codecs.py#L918
1497+
result = API::moduleImport("codecs").getMember("open")
14951498
}
14961499

14971500
/**

0 commit comments

Comments
 (0)