1. 04 Feb, 2021 1 commit
    • Philip Withnall's avatar
      glib: Use g_memdup2() instead of g_memdup() in obvious places · 0736b7c1
      Philip Withnall authored
      
      
      Convert all the call sites which use `g_memdup()`’s length argument
      trivially (for example, by passing a `sizeof()` or an existing `gsize`
      variable), so that they use `g_memdup2()` instead.
      
      In almost all of these cases the use of `g_memdup()` would not have
      caused problems, but it will soon be deprecated, so best port away from
      it
      
      In particular, this fixes an overflow within `g_bytes_new()`, identified
      as GHSL-2021-045 by GHSL team member Kevin Backhouse.
      Signed-off-by: Philip Withnall's avatarPhilip Withnall <pwithnall@endlessos.org>
      Fixes: GHSL-2021-045
      Helps: #2319
      0736b7c1
  2. 27 Aug, 2019 1 commit
  3. 24 Aug, 2019 1 commit
  4. 29 Jun, 2018 1 commit
  5. 14 Jun, 2018 1 commit
  6. 13 Sep, 2016 1 commit
  7. 29 Jun, 2015 1 commit
  8. 01 May, 2015 1 commit
  9. 15 Oct, 2014 1 commit
    • Allison Karlitskaya's avatar
      GOption: add strict posix mode · ae52ab3d
      Allison Karlitskaya authored
      Add a "posixly correct" mode to GOption to stop parsing arguments as
      soon as the first non-option argument is encountered.
      
      We determine the default value on the basis of duplicating the behaviour
      of the system getopt() implementation (which we directly check the
      behaviour of at runtime).  On GNU systems this allows the user to modify
      our behaviour using POSIXLY_CORRECT.
      
      The user can change the value by g_option_context_set_strict_posix(),
      which might be useful for some usecases of GOptionContext (as mentioned
      in the doc string of this new function).
      
      https://bugzilla.gnome.org/show_bug.cgi?id=723160
      ae52ab3d
  10. 27 Sep, 2014 1 commit
  11. 06 May, 2014 1 commit
  12. 10 Jan, 2014 1 commit
  13. 01 Jan, 2014 1 commit
  14. 13 May, 2013 1 commit
  15. 12 Apr, 2013 1 commit
  16. 19 Dec, 2012 4 commits
  17. 27 Aug, 2012 1 commit
  18. 29 Jun, 2012 1 commit
  19. 11 Jun, 2012 1 commit
  20. 23 Apr, 2012 1 commit
  21. 08 Feb, 2012 1 commit
  22. 27 Dec, 2011 1 commit
  23. 14 Dec, 2011 2 commits
  24. 17 Oct, 2011 1 commit
  25. 31 Mar, 2011 1 commit
  26. 25 Feb, 2011 1 commit
  27. 14 Feb, 2011 1 commit
  28. 18 Aug, 2010 1 commit
  29. 05 Aug, 2010 1 commit
  30. 30 Jul, 2010 2 commits
  31. 21 Dec, 2009 2 commits
  32. 30 Nov, 2009 1 commit
    • Matthias Clasen's avatar
      Disable a broken test · 12939c54
      Matthias Clasen authored
      One of the option context tests relied on the ability to
      call g_set_pgrname() more than once. Thats no longer possible
      (without incurring a warning that wrecks the test).
      12939c54
  33. 28 Nov, 2008 1 commit
  34. 21 Jul, 2008 1 commit