Staging
v0.5.1
https://github.com/python/cpython
Revision f2492bb6aae061aea47e21fc7e56b7ab9bfdf543 authored by Victor Stinner on 25 September 2017, 00:58:32 UTC, committed by larryhastings on 25 September 2017, 00:58:32 UTC
* bpo-30947, bpo-31170: Update expat from 2.2.1 to 2.2.4

* Upgrade libexpat embedded copy from version 2.2.1 to 2.2.3 to get security
  fixes.

* Update libexpat from 2.2.3 to 2.2.4. Fix copying of partial
  characters for UTF-8 input (libexpat bug 115):
  https://github.com/libexpat/libexpat/issues/115

* Define XML_POOR_ENTROPY when compiling expat
1 parent 70c630a
Raw File
Tip revision: f2492bb6aae061aea47e21fc7e56b7ab9bfdf543 authored by Victor Stinner on 25 September 2017, 00:58:32 UTC
[3.5][Security] bpo-30947, bpo-31170: Update expat from 2.2.1 to 2.2.4 (#3354)
Tip revision: f2492bb
sigcheck.c

/* Sigcheck is similar to intrcheck() but sets an exception when an
   interrupt occurs.  It can't be in the intrcheck.c file since that
   file (and the whole directory it is in) doesn't know about objects
   or exceptions.  It can't be in errors.c because it can be
   overridden (at link time) by a more powerful version implemented in
   signalmodule.c. */

#include "Python.h"

/* ARGSUSED */
int
PyErr_CheckSignals(void)
{
	if (!PyOS_InterruptOccurred())
		return 0;
	PyErr_SetNone(PyExc_KeyboardInterrupt);
	return -1;
}
back to top