1. 05 5月, 2015 1 次提交
    • R
      Use safer sizeof variant in malloc · b4faea50
      Rich Salz 提交于
      For a local variable:
              TYPE *p;
      Allocations like this are "risky":
              p = OPENSSL_malloc(sizeof(TYPE));
      if the type of p changes, and the malloc call isn't updated, you
      could get memory corruption.  Instead do this:
              p = OPENSSL_malloc(sizeof(*p));
      Also fixed a few memset() calls that I noticed while doing this.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      b4faea50
  2. 01 5月, 2015 2 次提交
  3. 24 3月, 2015 1 次提交
  4. 22 1月, 2015 2 次提交
  5. 31 12月, 2014 1 次提交
  6. 11 6月, 2014 1 次提交
  7. 25 2月, 2014 3 次提交
  8. 21 2月, 2014 2 次提交
  9. 19 2月, 2014 1 次提交
  10. 15 2月, 2014 1 次提交