Skip to content

Add string and byte array mutations#2

Merged
Xenomega merged 3 commits intomasterfrom
generator-improvements
Feb 26, 2022
Merged

Add string and byte array mutations#2
Xenomega merged 3 commits intomasterfrom
generator-improvements

Conversation

@smichaels-tob
Copy link
Copy Markdown
Contributor

This PR adds mutations for strings and byte arrays. The possible mutations for both are as follows:

  • Replace a char/byte at a random index with a random char/byte (in the case of strings, only printable ASCII characters 32-126 are used for random chars)
  • Remove a char/byte at a random index
  • Append or prepend a random char/byte

I also refactored some parts of tx_generator_mutation.go as part of this PR.

@Xenomega Xenomega merged commit e18bb3a into master Feb 26, 2022
@Xenomega Xenomega deleted the generator-improvements branch February 26, 2022 23:33
damilolaedwards pushed a commit that referenced this pull request Nov 16, 2023
* add string and byte mutations
* add bit flipping and random insertion
* added bias value to generate random values instead of mutating sometimes
anishnaik added a commit that referenced this pull request Oct 23, 2025
anishnaik added a commit that referenced this pull request Oct 28, 2025
* attempt #2

* fix ABI resolution issue and use in mutations issue

* revert changes related to mutating test result sequences

* improve logging when initialization is complete

* minor tweaks

* cleaning up some comments

* fix div by zero

* everything broke!

* fix some bugs

* remove initialize sequences function

* clean up and add notification system

* final cleanup

* fix bug

* fix race condition

* only monitor for corpus initialization if corpus has elements

* idk what i'm doing

* bump version in dockerfile

* no idea what i'm doing!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants