security labels can contain any printable ASCII
This commit is contained in:
parent
dfd72b363c
commit
2e78a17eda
4
NEWS
4
NEWS
@ -1,3 +1,7 @@
|
||||
procps-3.2.4 --> procps-3.2.5
|
||||
|
||||
ps: security labels can contain any printable ASCII
|
||||
|
||||
procps-3.2.3 --> procps-3.2.4
|
||||
|
||||
support 64-bit MIPS with n32 binary
|
||||
|
@ -1096,10 +1096,10 @@ static int pr_context(char *restrict const outbuf, const proc_t *restrict const
|
||||
if(unlikely(num_read<=0)) goto fail;
|
||||
outbuf[num_read] = '\0';
|
||||
|
||||
len = strspn(outbuf, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:_0123456789/^");
|
||||
if(!len) goto fail;
|
||||
len = 0;
|
||||
while(outbuf[len]>' ' && outbuf[len]<='~') len++;
|
||||
outbuf[len] = '\0';
|
||||
return len;
|
||||
if(len) return len;
|
||||
|
||||
fail:
|
||||
outbuf[0] = '-';
|
||||
|
Loading…
Reference in New Issue
Block a user