Comment 14 for bug 908856

Revision history for this message
Mike Cook (mikewillcook) wrote :

Er, so, for a quick workaround I stuck a sanity check to reset sz to the necessary format size if it was too low, and then things seem to consistently work for me (sorry, not a python guy)...

--- /usr/share/disper/src/nvidia/minx.py 2012-01-17 14:13:47.000000000 -0700
+++ /usr/share/disper/src/nvidia/minx.py 2012-04-26 17:27:43.909106422 -0600
@@ -124,6 +124,8 @@
             asz = rdict[arg.size]

         sz = asz * fsz
+ if sz < struct.calcsize(structcode):
+ sz = struct.calcsize(structcode)

         if asz == 1:
             rdict[arg.value] = struct.unpack( structcode, data[:sz] )[0]