diff options
| author | guenther <> | 2014-04-19 11:46:39 +0000 |
|---|---|---|
| committer | guenther <> | 2014-04-19 11:46:39 +0000 |
| commit | f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0 (patch) | |
| tree | 1c4f9b095801061d57e575e80f245cef8a59a27f /src/lib/libcrypto/asn1/asn1_par.c | |
| parent | 597610ccf04bbca4e88fac7988877d0a06e02211 (diff) | |
| download | openbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.tar.gz openbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.tar.bz2 openbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.zip | |
We'll interpret a (void) cast on snprintf() to mean it's been verified that
truncation is either desirable, not an issue, or is detected and handled later
ok deraadt@
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1_par.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1_par.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_par.c b/src/lib/libcrypto/asn1/asn1_par.c index 064b3dcb22..8085d1e570 100644 --- a/src/lib/libcrypto/asn1/asn1_par.c +++ b/src/lib/libcrypto/asn1/asn1_par.c | |||
| @@ -85,13 +85,13 @@ asn1_print_info(BIO *bp, int tag, int xclass, int constructed, | |||
| 85 | 85 | ||
| 86 | p = str; | 86 | p = str; |
| 87 | if ((xclass & V_ASN1_PRIVATE) == V_ASN1_PRIVATE) | 87 | if ((xclass & V_ASN1_PRIVATE) == V_ASN1_PRIVATE) |
| 88 | (void) snprintf(str, sizeof str, "priv [ %d ] ", tag); | 88 | snprintf(str, sizeof str, "priv [ %d ] ", tag); |
| 89 | else if ((xclass & V_ASN1_CONTEXT_SPECIFIC) == V_ASN1_CONTEXT_SPECIFIC) | 89 | else if ((xclass & V_ASN1_CONTEXT_SPECIFIC) == V_ASN1_CONTEXT_SPECIFIC) |
| 90 | (void) snprintf(str, sizeof str, "cont [ %d ]", tag); | 90 | snprintf(str, sizeof str, "cont [ %d ]", tag); |
| 91 | else if ((xclass & V_ASN1_APPLICATION) == V_ASN1_APPLICATION) | 91 | else if ((xclass & V_ASN1_APPLICATION) == V_ASN1_APPLICATION) |
| 92 | (void) snprintf(str, sizeof str, "appl [ %d ]", tag); | 92 | snprintf(str, sizeof str, "appl [ %d ]", tag); |
| 93 | else if (tag > 30) | 93 | else if (tag > 30) |
| 94 | (void) snprintf(str, sizeof str, "<ASN1 %d>", tag); | 94 | snprintf(str, sizeof str, "<ASN1 %d>", tag); |
| 95 | else | 95 | else |
| 96 | p = ASN1_tag2str(tag); | 96 | p = ASN1_tag2str(tag); |
| 97 | 97 | ||
