Comments (8)
Can you share the registry hive? I've never encountered such issue.
from regipy.
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.
Yes, It would be really helpful.
from regipy.
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.
Are you using a 32bit python version?
I'll try to get a 32bit python installation later today my verify my claim.
from regipy.
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.
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.
I'm closing this issue, as Regipy works as expected in x64.
from regipy.
Related Issues (20)
- Add missing git tags for recents releases HOT 1
- Regipy in Docker container not working (AttributeError: module 'importlib' has no attribute 'util') HOT 6
- Release `2.0.1` seems to have failed to deploy HOT 2
- Dependency Dashboard
- registry-transaction-log generates a corrupt hive HOT 3
- registry-dump missing some (default) values HOT 6
- Do not pin requirements in setup HOT 3
- OverflowError: Python int too large to convert to C ssize_t HOT 2
- Publish wheel on PyPI HOT 1
- Failure to update HOT 1
- Cant't decode value HOT 2
- Publish wheel on PyPI for 2.3.1 HOT 1
- ConstError when parsing reg-file HOT 1
- Relax libfwsi-python==20220123 requirement and other requirements HOT 3
- UserAssist binary value is returned incomplete HOT 1
- Support Wine registry HOT 2
- `regipy` `console_scripts` have too generic names, that can cause clashes HOT 2
- Cannot iterate over subkeys in NTUSER.DAT\Software
- get_network_info() takes from 2 to 3 positional arguments but 4 were given HOT 1
- regipy-cli: Logging: Use STDINFO instead of STDOUT for information, warning and error messages HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from regipy.