Skip to content

Commit

Permalink
Fix cfi-icall violations (#279)
Browse files Browse the repository at this point in the history
Using the 'constant' attribute causes a cfi-icall violation since the
function pointer uses only 'char *'.

Signed-off-by:	Shawn Webb <[email protected]>
  • Loading branch information
lattera committed Sep 18, 2022
1 parent 254a767 commit c69d0b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmdbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,7 @@ read_cmdhist(action, uparam, skip_search, skip_shell)
addhist_init(uparam, ml, string)
void *uparam;
struct mlist *ml;
char constant *string;
char *string;
{
if (ml != NULL)
cmd_addhist(ml, string, 0);
Expand Down Expand Up @@ -1648,7 +1648,7 @@ struct save_ctx
copy_hist(uparam, ml, string)
void *uparam;
struct mlist *ml;
char constant *string;
char *string;
{
struct save_ctx *ctx = (struct save_ctx *) uparam;

Expand Down

0 comments on commit c69d0b5

Please sign in to comment.