how to write a bugfix commit
Jump to turn (17)
- 1how to write a bugfix commit
- 2what shohuld my commit message be when i make a commit that fixes a bug where we
- 3i'm getting core dumps from checking the size in this method. can you identify a
- 4why should we validate the data and length? what would happen if theyre 0?
- 5oh, so length 0 is a segfault? interesting
- 6show me the part of code we can improve to validate data and length
- 7my core dump is happening when i check the size here regexPatternSetHandle->patt
- 8should my data and length cehcks be sufficient to stop the cores?
- 9heres my schema table RegexPatternSet { regularExpressions:[string] (id: 0); ver
- 10how is len used in my code and how could it cause the core? remember my code is
- 11what could go wrong if we wrap the size() check with a null check but don't vali
- 12sorry so let me clairfy, my cores are explicitly happening when i call the size(
- 13my point is that, if i've only ever gotten cores from calling size and never bef
- 14ok, here's my new thought, i only want to check size() for null heres the code t
- 15ok, here's my new thought, i'm only going to size check for null. don't need to
- 16ok, here's my new thought, i only want to check size() for null heres the code t
- 17show me the size check wrapped with a nullptr check
- User
how to write a bugfix commit
- Assistant
A bugfix commit is a type of commit that is used to fix a specific issue or bug in the code. To write a bugfix commit, follow these steps:
- Identify the bug that needs to be fixed. This may involve reproducing the issue, examining error logs, or reviewing code.
2
- User
what shohuld my commit message be when i make a commit that fixes a bug where we get cores from checking a null field
- Assistant