]>
arthur.barton.de Git - bup.git/commit
Take additional precautions with the Python/C conversions in _helpers.c.
bitmatch(): Use Py_ssize_t for byte, to match the values it's compared
against. Make sure the result will fit in the Python destination.
bloom_add(): Use "n" for the len conversion since len is Py_ssize_t.
bloom_contains(): Make sure the Python -> C converted values' ranges
are appropriate before using them.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Mark J Hewitt <mjh@idnet.com>