Page MenuHomeFreeBSD

D12391.diff
No OneTemporary

D12391.diff

Index: head/lib/libsysdecode/flags.c
===================================================================
--- head/lib/libsysdecode/flags.c
+++ head/lib/libsysdecode/flags.c
@@ -1028,8 +1028,15 @@
sysdecode_cap_rights(FILE *fp, cap_rights_t *rightsp)
{
struct name_table *t;
+ int i;
bool comma;
+ for (i = 0; i < CAPARSIZE(rightsp); i++) {
+ if (CAPIDXBIT(rightsp->cr_rights[i]) != 1 << i) {
+ fprintf(fp, "invalid cap_rights_t");
+ return;
+ }
+ }
comma = false;
for (t = caprights; t->str != NULL; t++) {
if (cap_rights_is_set(rightsp, t->val)) {

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 12, 11:30 PM (15 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15773798
Default Alt Text
D12391.diff (570 B)

Event Timeline