Skip to content

Commit 3b5488c

Browse files
authored
Merge pull request #1540 from h-mayorquin/fix_blackrock_overflow
Fix integer overflow in blackrock
2 parents 40b07ed + fd3af8e commit 3b5488c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

neo/rawio/blackrockrawio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,8 @@ def __read_nsx_dataheader_variant_c(
986986
index = 0
987987

988988
if offset is None:
989-
offset = self.__nsx_basic_header[nsx_nb]["bytes_in_headers"]
989+
# This is read as an uint32 numpy scalar from the header so we transform it to python int
990+
offset = int(self.__nsx_basic_header[nsx_nb]["bytes_in_headers"])
990991

991992
ptp_dt = [
992993
("reserved", "uint8"),

0 commit comments

Comments
 (0)