checkpolicy: dereference rangehead after checking it was not NULL
PATCH 1/1 checkpolicy: dereference rangehead after checking it was not NULL
Signed-off-by Nicolas Iooss <[email protected]>
--- checkpolicy/policy_define.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
checkpolicy/policy_define.c +1 -1
@@ -1924,11 +1924,11 @@ int avrule_ioctl_ranges(struct av_ioctl_range_list **rangelist)/* read in ranges to include and omit */ if (avrule_read_ioctls (&rangehead))return -1 ; - omit = rangehead->omit;if (rangehead ==NULL ) {yyerror ("error processing ioctl commands" );return -1 ; } + omit = rangehead->omit;/* sort and merge the input ioctls */ if (avrule_sort_ioctls (&rangehead))return -1 ;
Signature · 1 line
2.12.0
James Carter
AppliedQuoted 1 line · Nicolas Iooss
Signed-off-by Nicolas Iooss <[email protected]>
Applied.
Thanks,
Jim
Quoted 22 lines
--- checkpolicy/policy_define.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)checkpolicy/policy_define.c +1
-1@@ -1924,11 +1924,11 @@ int avrule_ioctl_ranges(struct av_ioctl_range_list **rangelist)/* read in ranges to include and omit */ if (avrule_read_ioctls (&rangehead))return -1 ; - omit = rangehead->omit;if (rangehead ==NULL ) {yyerror ("error processing ioctl commands" );return -1 ; } + omit = rangehead->omit;/* sort and merge the input ioctls */ if (avrule_sort_ioctls (&rangehead))return -1 ;
Signature · 2 lines
James Carter <[email protected]> National Security Agency