Skip to content
  • Philip Withnall's avatar
    gdatetime: Widen a variable before multiplication · b0be67cc
    Philip Withnall authored
    
    
    Otherwise it could possibly overflow on 32-bit machines if `year` is
    high enough, although I don’t think that’s possible because of limits
    applied on it by callers. This should shut Coverity up though.
    
    The limits applied by callers could be circumvented by calling (say)
    `g_date_time_add_years()` multiple times. That’s a bug, but not one I’m
    going to fix today.
    
    Coverity CID: #1159479
    Signed-off-by: default avatarPhilip Withnall <withnall@endlessm.com>
    b0be67cc