Skip to content

Commit

Permalink
Merge pull request #1642 from NinelK/NinelK-patch-int-overflow
Browse files Browse the repository at this point in the history
Fix int overflow in blackrock
  • Loading branch information
zm711 authored Feb 11, 2025
2 parents 467b946 + d3f5b3c commit 2cbe578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo/rawio/blackrockrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ def __read_nsx_dataheader_variant_b(
# use of `int` avoids overflow problem
data_size = int(dh["nb_data_points"]) * int(self.__nsx_basic_header[nsx_nb]["channel_count"]) * 2
# define new offset (to possible next data block)
offset = data_header[index]["offset_to_data_block"] + data_size
offset = int(data_header[index]["offset_to_data_block"]) + data_size

index += 1

Expand Down

0 comments on commit 2cbe578

Please sign in to comment.