1. 16 May, 2013 1 commit
    • Alessandro Rubini's avatar
      bugfix: fru_strncpy was off by one, leading to rare memory corruptions · 0d1aca08
      Alessandro Rubini authored
      After correctly allocating the the manufacturer or device name,
      and correctly copying the not-null-terminated string from ipmi-fru,
      I put the termination '\0' at  string[len + 1] .
      
      If you build a recent kernel under slob (which is the default), it
      may fail miserably at unexpected places.  For example, if
      your string is 15 bytes, I allocated 16 but wrote to the 17th.
      slob has 16-byte alloc areas, and so I was corrupting the next area.
      
      This never happened with slab (which I prefer and run) because the smalles
      allocation chunk there is 32 bytes -- I would experience the same
      with a 31-long manufacturer or device name.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      0d1aca08
  2. 15 May, 2013 6 commits
  3. 26 Apr, 2013 1 commit
  4. 17 Apr, 2013 5 commits
  5. 09 Apr, 2013 5 commits
  6. 23 Mar, 2013 1 commit
  7. 20 Mar, 2013 1 commit
  8. 21 Feb, 2013 6 commits
  9. 07 Feb, 2013 3 commits
  10. 24 Jan, 2013 10 commits
  11. 15 Jan, 2013 1 commit