Skip to content
Snippets Groups Projects
  1. Feb 17, 2008
    • Tom Lane's avatar
      Replace time_t with pg_time_t (same values, but always int64) in on-disk · cd004067
      Tom Lane authored
      data structures and backend internal APIs.  This solves problems we've seen
      recently with inconsistent layout of pg_control between machines that have
      32-bit time_t and those that have already migrated to 64-bit time_t.  Also,
      we can get out from under the problem that Windows' Unix-API emulation is not
      consistent about the width of time_t.
      
      There are a few remaining places where local time_t variables are used to hold
      the current or recent result of time(NULL).  I didn't bother changing these
      since they do not affect any cross-module APIs and surely all platforms will
      have 64-bit time_t before overflow becomes an actual risk.  time_t should
      be avoided for anything visible to extension modules, however.
      cd004067
  2. Nov 15, 2007
  3. Nov 13, 2007
  4. Nov 11, 2007
  5. Sep 29, 2007
  6. Aug 23, 2007
    • Tom Lane's avatar
      Fix combo_decrypt() to throw an error for zero-length input when using a · b918bf86
      Tom Lane authored
      padded encryption scheme.  Formerly it would try to access res[(unsigned) -1],
      which resulted in core dumps on 64-bit machines, and was certainly trouble
      waiting to happen on 32-bit machines (though in at least the known case
      it was harmless because that byte would be overwritten after return).
      Per report from Ken Colson; fix by Marko Kreen.
      b918bf86
  7. Jul 16, 2007
  8. Jun 27, 2007
  9. Apr 06, 2007
  10. Mar 29, 2007
  11. Feb 28, 2007
    • Tom Lane's avatar
      Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len). · 234a02b2
      Tom Lane authored
      Get rid of VARATT_SIZE and VARATT_DATA, which were simply redundant with
      VARSIZE and VARDATA, and as a consequence almost no code was using the
      longer names.  Rename the length fields of struct varlena and various
      derived structures to catch anyplace that was accessing them directly;
      and clean up various places so caught.  In itself this patch doesn't
      change any behavior at all, but it is necessary infrastructure if we hope
      to play any games with the representation of varlena headers.
      Greg Stark and Tom Lane
      234a02b2
  12. Jan 14, 2007
  13. Nov 10, 2006
  14. Oct 04, 2006
  15. Sep 22, 2006
    • Tom Lane's avatar
      Fix bugs in plpgsql and ecpg caused by assuming that isspace() would only · beca984e
      Tom Lane authored
      return true for exactly the characters treated as whitespace by their flex
      scanners.  Per report from Victor Snezhko and subsequent investigation.
      
      Also fix a passel of unsafe usages of <ctype.h> functions, that is, ye olde
      char-vs-unsigned-char issue.  I won't miss <ctype.h> when we are finally
      able to stop using it.
      beca984e
  16. Sep 06, 2006
  17. Sep 05, 2006
  18. Aug 05, 2006
  19. Jul 19, 2006
    • Neil Conway's avatar
      pgcrypto merge cleanup: · c28fbd45
      Neil Conway authored
        - Few README fixes
        - Keep imath Id string, put $PostgreSQL$ separately.
      
      Patch from Marko Kreen.
      c28fbd45
  20. Jul 16, 2006
  21. Jul 15, 2006
  22. Jul 14, 2006
  23. Jul 13, 2006
    • Neil Conway's avatar
      Fix C++-style comment. · d0b54441
      Neil Conway authored
      d0b54441
    • Neil Conway's avatar
      "Annual" pgcrypto update from Marko Kreen: · 1abf76e8
      Neil Conway authored
      Few cleanups and couple of new things:
      
       - add SHA2 algorithm to older OpenSSL
       - add BIGNUM math to have public-key cryptography work on non-OpenSSL
         build.
       - gen_random_bytes() function
      
      The status of SHA2 algoritms and public-key encryption can now be
      changed to 'always available.'
      
      That makes pgcrypto functionally complete and unless there will be new
      editions of AES, SHA2 or OpenPGP standards, there is no major changes
      planned.
      1abf76e8
  24. Jul 11, 2006
  25. Jun 08, 2006
  26. May 31, 2006
  27. May 30, 2006
  28. May 21, 2006
  29. Mar 11, 2006
  30. Mar 08, 2006
  31. Feb 27, 2006
  32. Feb 18, 2006
    • Neil Conway's avatar
      Patch from Marko Kreen: · ce9b75db
      Neil Conway authored
      pgcrypto crypt()/md5 and hmac() leak memory when compiled against
      OpenSSL as openssl.c digest ->reset will do two DigestInit calls
      against a context.  This happened to work with OpenSSL 0.9.6
      but not with 0.9.7+.
      
      Reason for the messy code was that I tried to avoid creating
      wrapper structure to transport algorithm info and tried to use
      OpenSSL context for it.  The fix is to create wrapper structure.
      
      It also uses newer digest API to avoid memory allocations
      on reset with newer OpenSSLs.
      
      Thanks to Daniel Blaisdell for reporting it.
      ce9b75db
  33. Feb 10, 2006
  34. Jan 04, 2006
  35. Nov 22, 2005
Loading