summaryrefslogtreecommitdiff
path: root/libvirt-override.c
diff options
context:
space:
mode:
authorrenlei4 <ren.lei4@zte.com.cn>2021-03-01 16:20:36 +0800
committerrenlei4 <ren.lei4@zte.com.cn>2021-03-01 16:51:40 +0800
commitfd069ac85c8cf1593587dc9287a3d5eb6bd4bdb9 (patch)
tree494edca1dee120099ba83f9ca9e1d9766c9380f7 /libvirt-override.c
parent75c053e49ef5c7fbd748863e9507f46737bb5bcd (diff)
downloadlibvirt-python-fd069ac85c8cf1593587dc9287a3d5eb6bd4bdb9.tar.gz
Fix wrong type for BlockThreshold Callbackv7.1.0
type of threshold and excess are unsigned long long, but PyObject_CallMethod incorrectly set it to int. if threshold or excess greater than 0x7FFFFFFF(max int), those variables will overflow. Signed-off-by: Ren Lei <ren.lei4@zte.com.cn>
Diffstat (limited to 'libvirt-override.c')
-rw-r--r--libvirt-override.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index 1f55864..3c55e7e 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -7232,7 +7232,7 @@ libvirt_virConnectDomainEventBlockThresholdCallback(virConnectPtr conn ATTRIBUTE
/* Call the Callback Dispatcher */
pyobj_ret = PyObject_CallMethod(pyobj_conn,
(char*)"_dispatchDomainEventBlockThresholdCallback",
- (char*)"OssiiO",
+ (char*)"OssLLO",
pyobj_dom, dev, path, threshold, excess,
pyobj_cbData);