Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] Bug in randpkt

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Brice <bricecotte@xxxxxxxxx>
Date: Tue, 28 Jun 2005 15:42:37 +0200
Hello,

There is a bug in the for loop that generates a random payload in
randpkt : the loop should stop when j reaches len_this_pkt, not
len_random.

Here is a (very simple !) patch to fix it.

Sincerely yours,

Brice

Attachment: randpkt-random-len-bug.patch
Description: Binary data