Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
// whilst this may seem 'hopeful' it turns out this is safe
$1 = (uint8_t*) PyByteArray_AsString($input);
$2 = PyByteArray_Size($input);
+ } else {
+ PyErr_SetString(PyExc_ValueError, "bytearray expected");
+ return NULL;
}
}
// whilst this may seem 'hopeful' it turns out this is safe
$1 = (uint8_t*) PyByteArray_AsString($input);
$2 = PyByteArray_Size($input);
+ } else {
+ PyErr_SetString(PyExc_ValueError, "bytearray expected");
+ return NULL;
}
}