artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fcd291
)
Add check for BIO_indent return value
author
inoguchi
<inoguchi@openbsd.org>
Thu, 20 Jan 2022 10:49:56 +0000
(10:49 +0000)
committer
inoguchi
<inoguchi@openbsd.org>
Thu, 20 Jan 2022 10:49:56 +0000
(10:49 +0000)
CID 24869
ok jsing@ millert@ tb@
lib/libcrypto/asn1/asn1_par.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/asn1/asn1_par.c
b/lib/libcrypto/asn1/asn1_par.c
index
e9fe520
..
2d1c7b2
100644
(file)
--- a/
lib/libcrypto/asn1/asn1_par.c
+++ b/
lib/libcrypto/asn1/asn1_par.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: asn1_par.c,v 1.3
2 2022/01/14 23:55:4
6 inoguchi Exp $ */
+/* $OpenBSD: asn1_par.c,v 1.3
3 2022/01/20 10:49:5
6 inoguchi Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@
-80,7
+80,8
@@
asn1_print_info(BIO *bp, int tag, int xclass, int constructed,
p="prim: ";
if (BIO_write(bp, p, 6) < 6)
goto err;
- BIO_indent(bp, indent, 128);
+ if (!BIO_indent(bp, indent, 128))
+ goto err;
p = str;
if ((xclass & V_ASN1_PRIVATE) == V_ASN1_PRIVATE)