summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortedu <>2014-04-17 02:50:32 +0000
committertedu <>2014-04-17 02:50:32 +0000
commit7819cc1d1d0c28fa641239e19dfce513be4e0610 (patch)
tree26eec6a42e48b080c9d14092b44703c9ee3080a6
parent9a1c8100cb8cb117eddb7af93d839f1158fba375 (diff)
downloadopenbsd-7819cc1d1d0c28fa641239e19dfce513be4e0610.tar.gz
openbsd-7819cc1d1d0c28fa641239e19dfce513be4e0610.tar.bz2
openbsd-7819cc1d1d0c28fa641239e19dfce513be4e0610.zip
tag some functions with bounded. idea and ok djm
-rw-r--r--src/lib/libcrypto/bio/bio.h9
-rw-r--r--src/lib/libssl/src/crypto/bio/bio.h9
2 files changed, 12 insertions, 6 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h
index b64fd44b12..ee0afb1553 100644
--- a/src/lib/libcrypto/bio/bio.h
+++ b/src/lib/libcrypto/bio/bio.h
@@ -629,9 +629,12 @@ BIO * BIO_new(BIO_METHOD *type);
629int BIO_set(BIO *a, BIO_METHOD *type); 629int BIO_set(BIO *a, BIO_METHOD *type);
630int BIO_free(BIO *a); 630int BIO_free(BIO *a);
631void BIO_vfree(BIO *a); 631void BIO_vfree(BIO *a);
632int BIO_read(BIO *b, void *data, int len); 632int BIO_read(BIO *b, void *data, int len)
633int BIO_gets(BIO *bp, char *buf, int size); 633 __attribute__((__bounded__(__buffer__,2,3)));
634int BIO_write(BIO *b, const void *data, int len); 634int BIO_gets(BIO *bp, char *buf, int size)
635 __attribute__((__bounded__ (__string__,2,3)));
636int BIO_write(BIO *b, const void *data, int len)
637 __attribute__((__bounded__(__buffer__,2,3)));
635int BIO_puts(BIO *bp, const char *buf); 638int BIO_puts(BIO *bp, const char *buf);
636int BIO_indent(BIO *b, int indent, int max); 639int BIO_indent(BIO *b, int indent, int max);
637long BIO_ctrl(BIO *bp, int cmd, long larg, void *parg); 640long BIO_ctrl(BIO *bp, int cmd, long larg, void *parg);
diff --git a/src/lib/libssl/src/crypto/bio/bio.h b/src/lib/libssl/src/crypto/bio/bio.h
index b64fd44b12..ee0afb1553 100644
--- a/src/lib/libssl/src/crypto/bio/bio.h
+++ b/src/lib/libssl/src/crypto/bio/bio.h
@@ -629,9 +629,12 @@ BIO * BIO_new(BIO_METHOD *type);
629int BIO_set(BIO *a, BIO_METHOD *type); 629int BIO_set(BIO *a, BIO_METHOD *type);
630int BIO_free(BIO *a); 630int BIO_free(BIO *a);
631void BIO_vfree(BIO *a); 631void BIO_vfree(BIO *a);
632int BIO_read(BIO *b, void *data, int len); 632int BIO_read(BIO *b, void *data, int len)
633int BIO_gets(BIO *bp, char *buf, int size); 633 __attribute__((__bounded__(__buffer__,2,3)));
634int BIO_write(BIO *b, const void *data, int len); 634int BIO_gets(BIO *bp, char *buf, int size)
635 __attribute__((__bounded__ (__string__,2,3)));
636int BIO_write(BIO *b, const void *data, int len)
637 __attribute__((__bounded__(__buffer__,2,3)));
635int BIO_puts(BIO *bp, const char *buf); 638int BIO_puts(BIO *bp, const char *buf);
636int BIO_indent(BIO *b, int indent, int max); 639int BIO_indent(BIO *b, int indent, int max);
637long BIO_ctrl(BIO *bp, int cmd, long larg, void *parg); 640long BIO_ctrl(BIO *bp, int cmd, long larg, void *parg);