[Git][slirp/libslirp][master] fuzz: comment coherency

Samuel Thibault (@sthibaul) gitlab at gitlab.freedesktop.org
Thu Apr 25 18:09:55 UTC 2024



Samuel Thibault pushed to branch master at slirp / libslirp


Commits:
dcdfd78b by Samuel Thibault at 2024-04-25T20:08:12+02:00
fuzz: comment coherency

- - - - -


2 changed files:

- fuzzing/slirp_fuzz_tcp_data.c
- fuzzing/slirp_fuzz_tcp_header.c


Changes:

=====================================
fuzzing/slirp_fuzz_tcp_data.c
=====================================
@@ -100,10 +100,10 @@ extern size_t LLVMFuzzerCustomMutator(uint8_t *Data, size_t Size,
         memcpy(Data_to_mutate, start_of_tcp, tcp_size);
 
         // Call to libfuzzer's mutation function.
-        // Pass the whole tcp packet, mutate it and then fix checksum value
+        // Pass the whole TCP packet, mutate it and then fix checksum value
         // so the packet isn't rejected.
         // The new size of the data is returned by LLVMFuzzerMutate.
-        // Fixme: allow to change the size of the tcp packet, this will require
+        // Fixme: allow to change the size of the TCP packet, this will require
         //     to fix the size before calculating the new checksum and change
         //     how the Data_ptr is advanced.
         //     Most offsets bellow should be good for when the switch will be


=====================================
fuzzing/slirp_fuzz_tcp_header.c
=====================================
@@ -99,10 +99,10 @@ extern size_t LLVMFuzzerCustomMutator(uint8_t *Data, size_t Size,
         memcpy(Data_to_mutate, start_of_tcp, tcp_size);
 
         // Call to libfuzzer's mutation function.
-        // Pass the whole tcp packet, mutate it and then fix checksum value
+        // Pass the whole TCP packet, mutate it and then fix checksum value
         // so the packet isn't rejected.
         // The new size of the data is returned by LLVMFuzzerMutate.
-        // Fixme: allow to change the size of the tcp packet, this will require
+        // Fixme: allow to change the size of the TCP packet, this will require
         //     to fix the size before calculating the new checksum and change
         //     how the Data_ptr is advanced.
         //     Most offsets bellow should be good for when the switch will be



View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/dcdfd78b0cc72547103157777a6e5a63a0852bc8

-- 
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/dcdfd78b0cc72547103157777a6e5a63a0852bc8
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20240425/cfda57e1/attachment-0001.htm>


More information about the Slirp mailing list