Skip to content

Commit

Permalink
ee(1): fix potential format overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
q66 committed Aug 14, 2024
1 parent c61ab24 commit 3747243
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions patches/src.freebsd.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8746,6 +8746,15 @@
if (!isatty(0)) {
--- src.orig/ee/ee.c
+++ src.freebsd/ee/ee.c
@@ -929,7 +929,7 @@
{
int i1, i2;
char *string;
- char string2[8];
+ char string2[16];

if (character == TAB)
{
@@ -2461,6 +2461,7 @@
void
edit_abort(int arg)
Expand Down
2 changes: 1 addition & 1 deletion src.freebsd/ee/ee.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ out_char(WINDOW *window, int character, int column)
{
int i1, i2;
char *string;
char string2[8];
char string2[16];

if (character == TAB)
{
Expand Down

0 comments on commit 3747243

Please sign in to comment.