fixes for stuff_string() bounds checking

This commit is contained in:
taylor committed 2006-09-11 06:51:17 +00:00
1 parent 3aede6b739
commit fe80df5c2e
38 files changed
+451 -319

No files matched your search

+3 -3
View File
@@ -648,8 +648,8 @@ PyBytecode python_parse()
sprintf(debug_str, "parse_python(ln) %d", Total_lines_parsed++);
//Stuff it
char buf[PARSE_BUF_SIZE] = {0};
stuff_string(buf, F_RAW, NULL, sizeof(buf)-1);
char buf[PARSE_BUF_SIZE];
stuff_string(buf, F_RAW, sizeof(buf));
//Compile & return it
return PyBytecode(Py_CompileString(buf, debug_str, Py_eval_input));
@@ -683,4 +683,4 @@ PyResult py_session_evaluate(PySession* session, PyBytecode* code)
return PyResult(NULL);
}
#endif
#endif