patchlwIP - A Lightweight TCP/IP stack - Patches: patch #10327, test/fuzz: Add script to convert...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #10327: test/fuzz: Add script to convert between different formats

Submitter:  J. Neuschäfer <jne>
Submitted:  Fri 07 Apr 2023 12:44:16 PM UTC
   
 
Category:  None Priority:  3 - Low
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Planned Release:  None

Fri 14 Apr 2023 06:13:08 PM UTC, comment #5: 

OK, maybe I'll finally have to face reality and accept python scripts. Origininally coming from a windows background (and lwIP is often used on windows by embedded developers), python wasn't too well supported, but that should have changed by now, so let's go that way.

Simon Goldschmidt <goldsimon>
Group administrator
Tue 11 Apr 2023 09:03:48 PM UTC, comment #4: 

As a side-note before I forget about it:  I noticed in the meantime that my handling of format 3 (for lwip_fuzz3) is incorrect. I should fix that before (and if) my patch is merged.

J. Neuschäfer <jne>
Tue 11 Apr 2023 08:59:17 AM UTC, comment #3: 

A bit off topic, but I was also a bit hesitant to post my complete rewrite of makefsdata in Python, as it would be the first script in that language in LwIP.

The Perl implementation is incomplete, and Perl has always been a bit of a mystery to me, and the C implementation is hard to extend. My Python script is comparable in length to the Perl one, but comparable in features to the C one.

So, Simon, should we publish tools for LwIP even if they are in Python?

Jan Breuer <jan_breuer>
Sat 08 Apr 2023 03:33:36 PM UTC, comment #2: 

This script would not be needed for any normal operations. It is only useful when dealing with inputs produced by fuzzing, and thus will not impact any regular users of lwIP by pulling in Python as a dependency.

It is more useful than the existing output_to_pcap.sh, because it also deals with multi-packet fuzzing inputs, and because it can reconstruct inputs from a text-based representation (this is useful for trying to minimize an input using delta[1], for example).

I chose python because I am familiar with it, because I was able to implement my idea in it quickly, and because it isn't a totally obscure language.

[1]: https://web.archive.org/web/20200701152100/http://delta.tigris.org/

J. Neuschäfer <jne>
Fri 07 Apr 2023 08:29:38 PM UTC, comment #1: 

Let's say I'm a bit hesistant here: this would be the first python script in our sources...
Why exactly do we need this? As as python script?

Simon Goldschmidt <goldsimon>
Group administrator
Fri 07 Apr 2023 12:44:16 PM UTC, original submission:  

This script, convert.py, can convert between the different formats used by the fuzzers, as well as PCAP and a line-based text representation.


J. Neuschäfer <jne>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jan_breuer (Posted a comment)
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by jne (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-04-07 jne Attached File- Added 0001-test-fuzz-Add-script-to-convert-between-different-fo.patch, #54576

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code