diff options
author | Aaron Ball <nullspoon@oper.io> | 2024-06-12 10:46:37 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2024-06-12 10:46:37 -0600 |
commit | 91471076493f87005431dd81c2bf4d0445495ca4 (patch) | |
tree | dd0c81882e47d5ca6ea9391157364b9a014f1291 /.gitignore | |
parent | 3cc711f5df8151a631090384e4dcf9c244f38093 (diff) | |
download | nullprompt-91471076493f87005431dd81c2bf4d0445495ca4.tar.gz nullprompt-91471076493f87005431dd81c2bf4d0445495ca4.tar.xz |
Fix buffer overflow on edgecases with git repo subpaths
Occasionally, a subpath will have just the right number of characters to
cause a round-up, which causes a buffer overflow in the ellipt function
when copying in the backend half of the string. This was causing
overwrite of the branchname char 0 with `\0`, resulting in the
branchname output being empty in the PS1.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions