Giter Club home page Giter Club logo

Comments (8)

tincho9 avatar tincho9 commented on July 24, 2024

Can you share the registry hive? I've never encountered such issue.

from regipy.

c0rs avatar c0rs commented on July 24, 2024

Hi! I have the same bug at the same place:

Traceback (most recent call last):
  File "..\regipy\registry.py", line 504, in get_values
    return [x for x in self.iter_values(as_json=as_json)]
  File "..\regipy\registry.py", line 504, in <listcomp>
    return [x for x in self.iter_values(as_json=as_json)]
  File "..\regipy\registry.py", line 416, in iter_values
    value = self.read_value(vk, substream)
  File "..\regipy\registry.py", line 365, in read_value
    data = stream.read(vk.data_size)
OverflowError: cannot fit 'int' into an index-sized integer

The bug occurs when I try to read REG_BINARY value. Do you still need a hive as example?

from regipy.

tincho9 avatar tincho9 commented on July 24, 2024

Yes, It would be really helpful.

from regipy.

c0rs avatar c0rs commented on July 24, 2024

Here hive, code to reproduce bug (at least on my win7) and traceback
usb_bluetooth.zip

from regipy.registry import RegistryHive
USB_HIVE = 'usb_bluetooth.hive'
RKEY_USB_TIME = '\\000650268328\\Properties\\{83da6326-97a6-4088-9453-a1923f573b29}\\00000064\\00000000'
reg_usb = RegistryHive(USB_HIVE)
v = reg_usb.get_key(RKEY_USB_TIME).get_value('Data')
print(v)
Traceback (most recent call last):
  File "bug_reprod.py", line 5, in <module>
    v = reg_usb.get_key(RKEY_USB_TIME).get_value('Data')
  File "..\regipy\registry.py", line 495, in get_value
    for value in self.iter_values(as_json=as_json):
  File "..\regipy\registry.py", line 416, in iter_values
    value = self.read_value(vk, substream)
  File "..\regipy\registry.py", line 365, in read_value
    data = stream.read(vk.data_size)
OverflowError: cannot fit 'int' into an index-sized integer

from regipy.

tincho9 avatar tincho9 commented on July 24, 2024

Are you using a 32bit python version?
image
I'll try to get a 32bit python installation later today my verify my claim.

from regipy.

c0rs avatar c0rs commented on July 24, 2024

Yes, 32bit. I also checked this code on python 64 and everything is fine for that. It looks like the bug exists only for 32-bit python. Can you fix it for 32-python?

from regipy.

tincho9 avatar tincho9 commented on July 24, 2024

I'm not sure I have a way to fix that in which you will not get incomplete data... I'm not comfortable with that.

from regipy.

tincho9 avatar tincho9 commented on July 24, 2024

I'm closing this issue, as Regipy works as expected in x64.

from regipy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.