Skip to content

Commit cdb1247

Browse files
fitz/fitz.i: fixed potentially unsafe call of fz_warn().
1 parent 916b091 commit cdb1247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fitz/fitz.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2838,7 +2838,7 @@ if len(pyliste) == 0 or min(pyliste) not in range(len(self)) or max(pyliste) not
28382838

28392839
fz_catch(gctx) {
28402840
Py_CLEAR(rc);
2841-
fz_warn(gctx, fz_caught_message(gctx));
2841+
fz_warn(gctx, "%s", fz_caught_message(gctx));
28422842
Py_RETURN_FALSE;
28432843
}
28442844
if (!rc)

0 commit comments

Comments
 (0)