watlings icon indicating copy to clipboard operation
watlings copied to clipboard

Some doubts about the 009 case

Open nonzzz opened this issue 6 months ago • 1 comments

I've been working through the Watlings tutorial (which is super cool btw!) and noticed something weird in section 009 about Data Segments.

When looking at https://github.com/EmNudge/watlings/blob/b9220461f66d4463e94a2d661bfdac4a26b235e4/patch/009_data.patch#L7 and the

https://github.com/EmNudge/watlings/blob/b9220461f66d4463e94a2d661bfdac4a26b235e4/tests/009_data.test.js#L32-L36, I'm getting \x00\x00\x00\x00\x00Woah instead of just Woah, radical!\n in the output.

Are those null bytes at the start supposed to be there? It seems that the length of the string and the pointer of the string are reversed.

Just wondering if this is intentional or if I'm missing something obvious here. Thanks!

nonzzz avatar May 29 '25 07:05 nonzzz

Woah, you're right! The patch file has the numbers reversed - good catch!

EmNudge avatar May 31 '25 03:05 EmNudge