question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected output size

See original GitHub issue

Not sure what I’m doing wrong, but the output of mutated is exactly 32 times as large as I expected.

Sample: https://github.com/Manouchehri/loremelf

ubuntu@964c0cbfef64:/pfp/ $ git clone https://github.com/Manouchehri/loremelf
ubuntu@964c0cbfef64:/pfp/ $ cd loremelf/
ubuntu@964c0cbfef64:/pfp/loremelf$ python2 coder.py
ubuntu@964c0cbfef64:/pfp/loremelf$ ls -l *put*/
input/:
total 68
-rwxr-xr-x 1 dave dave 68464 May  3 00:29 date

output/:
total 1424
-rw-rw-r-- 1 dave dave 1454740 May  3 13:06 bin.0.elf
...
for mutation in pfp.fuzz.mutate(dom, IntegersOnly, num=1, at_once=1):
	mutated = mutation._pfp__build()
	filename_out = "output/bin." + str(counter) + ".elf"
	with open(filename_out, 'wb') as file:
		file.write(bytes(mutated))
		file.close()
...

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
d0c-s4vagecommented, Dec 31, 2019

I’ve let this stew for a while - I’m liking the approaches I outlined in #82. This definitely needs to be addressed.

1reaction
d0c-s4vagecommented, Sep 30, 2019

This is on hold until I figure out if proposed change 1 (Parsed fields have a parse order or index) and 2 (Unified Skipped/Unparsed Data Tracking) as described in https://github.com/d0c-s4vage/pfp/issues/82 are the best approaches.

For now, I am liking that approach, but they won’t be small changes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keras unexpected output size - Stack Overflow
I'm trying to run predictions on a set of inputs. My model is: model = keras.Sequential([ keras.Input(shape=(120, 3)), layers.
Read more >
Unexpected output size for Maxpool · Issue #21935 - GitHub
The output of Maxpool has an unexpected size for some corner cases. Repro: Maxpool1d(kernel_size=3, stride=2, padding=0, dilation=2)
Read more >
Unexpected output from "sizeof" - Keil forum - Support forums - Arm ...
I tried using sizeof command to find out the size of the an int variable by printf("%d\n", sizeof(int)); I was expecting an output...
Read more >
Why am I getting unexpected output dimensions or errors ...
I face same problem here....Invalid setting for input port dimensions of 'Demux1'. The dimensions are being set to 4. This is not valid...
Read more >
11.3 Error Messages or Unexpected Output - Oracle Help Center
Description: Oracle ORAchk and Oracle EXAchk create temporary files and directories at runtime, as well as output files for data collection. If you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found