Skip to content
  • Michael Catanzaro's avatar
    gdatetime: fix double free in format parser · a893d622
    Michael Catanzaro authored and Philip Withnall's avatar Philip Withnall committed
    If %#Z is followed by %Z then we accidentally free the tmp variable from
    the previous iteration of the loop a second time. Good job to the static
    analysis tool (probably Coverity) that found this.
    
    Fortunately it's unlikely that a realistic application would do this.
    
    I've also added a new test that crashes without the fix
    a893d622