You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case was to calculate crc32 checksums of strings that had to be converted to lowercase before calculating the hash. First define an string, in this case null terminated (I choose a while array to avoid errors of data no placed) . Then we embed the string in a container for the sole purpose of using transform. After defining the transform function the possibly upper-cased strings are read from the file. We print one to verify it works. the crc32 checksum is computed to a local variable which is formatted and exported.
So far so good.I am running the same code shown here in an input file that has twp identical sets of strings one located close to he beginning of the file and the other at the end (addresses are on the code above). Even tough we skip reading the preamble data and both sets of pattern should be the same size, the resulting patterns differ greatly in size. In fact, depending on how much memory you have you should limit the number of strings being read or else your computer may hang.
Not only the patterns in the second case consume much more memory but also the size increments grow bigger and bigger as more strings are being read. Both observations suggest that the patterns contain data from the start of the file or some fixed position.
The text was updated successfully, but these errors were encountered:
Update: added the input file which I forgot for some reason.
The test the bug.
load the Input file, Unzip it first and dont worry, it is just libihmhex.dll.a with the symbol table duplicated at its end.
Copy paste the pattern listed above.
Run the pattern and note the memory usage
change the @ values for the commented ones and run it again.
Using 1000 strings I see a huge difference from 100 Mibs for the low address to 2.66 Gibs for the high address. Bigger number of strings give even bigger differences.
My use case was to calculate crc32 checksums of strings that had to be converted to lowercase before calculating the hash. First define an string, in this case null terminated (I choose a while array to avoid errors of data no placed) . Then we embed the string in a container for the sole purpose of using transform. After defining the transform function the possibly upper-cased strings are read from the file. We print one to verify it works. the crc32 checksum is computed to a local variable which is formatted and exported.
Input file: testMemory.zip
So far so good.I am running the same code shown here in an input file that has twp identical sets of strings one located close to he beginning of the file and the other at the end (addresses are on the code above). Even tough we skip reading the preamble data and both sets of pattern should be the same size, the resulting patterns differ greatly in size. In fact, depending on how much memory you have you should limit the number of strings being read or else your computer may hang.
Not only the patterns in the second case consume much more memory but also the size increments grow bigger and bigger as more strings are being read. Both observations suggest that the patterns contain data from the start of the file or some fixed position.
The text was updated successfully, but these errors were encountered: