Skip to content
Snippets Groups Projects
  1. Feb 01, 2011
  2. Jan 27, 2011
    • Tom Lane's avatar
      Prevent buffer overrun while parsing an integer in a "query_int" value. · 7ccb6dc2
      Tom Lane authored
      contrib/intarray's gettoken() uses a fixed-size buffer to collect an
      integer's digits, and did not guard against overrunning the buffer.
      This is at least a backend crash risk, and in principle might allow
      arbitrary code execution.  The code didn't check for overflow of the
      integer value either, which while not presenting a crash risk was still
      bad.
      
      Thanks to Apple Inc's security team for reporting this issue and supplying
      the fix.
      
      Security: CVE-2010-4015
      7ccb6dc2
  3. Jan 26, 2011
  4. Jan 25, 2011
  5. Jan 24, 2011
  6. Jan 22, 2011
    • Tom Lane's avatar
      More pg_test_fsync fixups. · 37eb2cd4
      Tom Lane authored
      Reduce #includes to minimum actually needed; in particular include
      postgres_fe.h not postgres.h, so as to stop build failures on some
      platforms.
      
      Use get_progname() instead of hardwired program name; improve error
      checking for command line syntax; bring error messages into line with
      style guidelines; include strerror result in die() cases.
      37eb2cd4
    • Tom Lane's avatar
      Suppress unused-variables warning when OPEN_SYNC_FLAG isn't defined. · 3ae28ce8
      Tom Lane authored
      Per buildfarm.
      3ae28ce8
    • Tom Lane's avatar
      More pg_test_fsync cleanup. · cb38ab6d
      Tom Lane authored
      Un-break Windows build (I hope) by making the HAVE_FSYNC_WRITETHROUGH
      code match the backend.  Fix incorrect program help message.  static-ize
      all functions.
      cb38ab6d
    • Tom Lane's avatar
      Clean up pg_test_fsync commit. · bc616703
      Tom Lane authored
      Actually rename the program, rather than just claiming we did.  Hook it
      into the build system.  Get rid of useless dependency on libpq.  Clean up
      #include list and messy whitespace.
      bc616703
  7. Jan 21, 2011
  8. Jan 10, 2011
  9. Jan 09, 2011
    • Tom Lane's avatar
      Update contrib/hstore for new GIN extractQuery API. · ba398969
      Tom Lane authored
      In particular, make hstore @> '' succeed for all hstores, likewise
      hstore ?& '{}'.  Previously the results were inconsistent and could
      depend on whether you were using a GiST index, GIN index, or seqscan.
      ba398969
    • Tom Lane's avatar
      Improve comment. · 327b2576
      Tom Lane authored
      327b2576
    • Tom Lane's avatar
      Use array_contains_nulls instead of ARR_HASNULL on user-supplied arrays. · 30484507
      Tom Lane authored
      This applies the fix for bug #5784 to remaining places where we wish
      to reject nulls in user-supplied arrays.  In all these places, there's
      no reason not to allow a null bitmap to be present, so long as none of
      the current elements are actually null.
      
      I did not change some other places where we are looking at system catalog
      entries or aggregate transition values, as the presence of a null bitmap
      in such an array would be suspicious.
      30484507
    • Tom Lane's avatar
      Fix assorted corner-case bugs in contrib/intarray. · fdf2dbda
      Tom Lane authored
      The array containment operators now behave per mathematical expectation
      for empty arrays (ie, an empty array is contained in anything).
      Both these operators and the query_int operators now work as expected in
      GiST and GIN index searches, rather than having corner cases where the
      index searches gave different answers.
      
      Also, fix unexpected failures where the operators would claim that an array
      contained nulls, when in fact there was no longer any null present (similar
      to bug #5784).  The restriction to not have nulls is still there, as
      removing it would take a lot of added code complexity and probably slow
      things down significantly.
      
      Also, remove the arbitrary restriction to 1-D arrays; unlike the other
      restriction, this was buying us nothing performance-wise.
      
      Assorted cosmetic improvements and marginal performance improvements, too.
      fdf2dbda
  10. Jan 08, 2011
  11. Jan 07, 2011
  12. Jan 06, 2011
  13. Jan 05, 2011
Loading