You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using python wrapper for libuuu to execute FB: getvar version but the response is corrupted. It looks like either the buffer is overridden or there is some issue with handling null byte terminated string.
@UUUNotifyCallback
def _default_notify_callback(struct: UUUNotifyStruct, data) -> int: # type: ignore
"""A default callback function that stores the response in a class variable.
:param struct: A UUUNotifyStruct object
:param data: A pointer to data, here it is not used
"""
# pylint: disable=unused-argument
LibUUU._state.update(struct)
if struct.type == UUUNotifyType.NOTIFY_CMD_INFO:
LibUUU._response.value += bytes(struct.response.str)
I'm using python wrapper for libuuu to execute
FB: getvar version
but the response is corrupted. It looks like either the buffer is overridden or there is some issue with handling null byte terminated string.Sample python program:
will output:
The text was updated successfully, but these errors were encountered: