• perviouslyiner@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      Probably date formatting, like sprintf_s into a string that’s big enough to hold single digit day and month numbers

    • IphtashuFitz@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      5 months ago

      It was pure c code that was used to print reports, and included the date in a header. Whoever wrote it miscalculated the size of the buffer for the header by one byte. When the date was the longest month & day spelled out plus a two digit day of the month then it would overflow the buffer, resulting in the program crashing.