Skip to contentSkip to conversation

%u in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'.

DISCUSSION Toralf Förster 2 participants 2 messages Jul 30, 2014 – Jul 31, 2014 SELinux security module

lore
Share & tools
lore
#0 lore raw

/me wonders if this issue (found by cppcheck) :

        ret = -EINVAL;
        if (sscanf(page, "%u", &new_value) != 1)<--- %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'.
                goto out;

is already in one's trivial patch queue ?

Signature · 1 line
Toralf
maintainer
#1 lore raw
Quoted 8 lines · Toralf Förster

/me wonders if this issue (found by cppcheck) :

        ret = -EINVAL;
        if (sscanf(page, "%u", &new_value) != 1)<--- %u in format string

(no. 1) requires 'unsigned int *' but the argument type is 'int *'. goto out;

is already in one's trivial patch queue ?

Is this in sel_write_avc_cache_threshold()? If so, no, we don't currently have a patch queued for this, it would be great if you wanted to submit a patch to turn new_value into an unsigned int.

Signature · 2 lines
paul moore
www.paul-moore.com