The problem that I'm facing even while using the debugger is I can't seem to possibly find where I'm going wrong. Please can someone identify where I might be going wrong/ or is my understood logic regarding padding/scaling incorrect just to set me on the right track. Here is a code snippet of mine which might help: https://gist.github.com/anonymous/5958408d9a645c36b9b8258c4b97937b

1 Answer 1


There's one major problem: After creating the header structs bof and boi, you don't populate them. A couple of fields are calculated, but the bulk of the fields are just garbage data. Structures can be copied easily enough by a simple a=b; statement.

There may be other issues, but this will get you going again. Be sure to make use of the peek and xxd tools too.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .