Skip to content

Commit

Permalink
Merge pull request #1540 from h-mayorquin/fix_blackrock_overflow
Browse files Browse the repository at this point in the history
Fix integer overflow in blackrock
  • Loading branch information
zm711 authored Aug 29, 2024
2 parents 40b07ed + fd3af8e commit 3b5488c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neo/rawio/blackrockrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,8 @@ def __read_nsx_dataheader_variant_c(
index = 0

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

ptp_dt = [
("reserved", "uint8"),
Expand Down

0 comments on commit 3b5488c

Please sign in to comment.