ports/lang/python313/files/patch-Modules___blake2_blake2s__impl.c
Charlie Li e0cbe08148
lang/python313: fix blake2s_impl regen mismatch
The only difference between "stock" and regenerated blake2s_impl.c
is where a variable is declared in py_blake2s_new_impl(). Patch the
stock file to the regenerated version so the regeneration script
does not get called.

Reported by: fluffy, jan[at]glaubitz[dot]org
PR: 274671
2025-11-04 09:43:25 -05:00

15 lines
433 B
C

--- Modules/_blake2/blake2s_impl.c.orig 2025-10-14 13:52:31 UTC
+++ Modules/_blake2/blake2s_impl.c
@@ -103,10 +103,10 @@ py_blake2s_new_impl(PyTypeObject *type, PyObject *data
{
BLAKE2sObject *self = NULL;
PyObject *data;
+ Py_buffer buf;
if (_Py_hashlib_data_argument(&data, data_obj, string) < 0) {
return NULL;
}
- Py_buffer buf;
self = new_BLAKE2sObject(type);
if (self == NULL) {