xvinfo: Changes to 'master'

Alan Coopersmith alanc at kemper.freedesktop.org
Fri Oct 18 22:22:19 PDT 2013


 xvinfo.c |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit ca5ed1edbb7a71ea166868b80dd02a210c2a8f05
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Fri Oct 18 22:17:03 2013 -0700

    Make ImageEncodings unsigned
    
    Starts at 0 and increments to count encodings - should never go negative.
    
    Fixes clang warnings:
    
    xvinfo.c:184:31: warning: implicit conversion changes signedness: 'int' to
          'unsigned int' [-Wsign-conversion]
                    if (nencode - ImageEncodings) {
                                ~ ^~~~~~~~~~~~~~
    
    xvinfo.c:186:39: warning: implicit conversion changes signedness: 'int' to
          'unsigned int' [-Wsign-conversion]
                                nencode - ImageEncodings);
                                        ~ ^~~~~~~~~~~~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 8a4d6f5bd95f5ad7608a7871bc6822935e4a191b
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Fri Oct 18 22:12:12 2013 -0700

    Convert sprintf call to use snprintf
    
    Should be impossible to overflow with previous sprintf code, but
    still safer to avoid bugs if something changes in the future.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>



More information about the xorg-commit mailing list