2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-03 08:05:21 +00:00

3898. [bug] To small a buffer in tohexstr() calls in test code.

[RT #36598]
This commit is contained in:
Mark Andrews
2014-07-22 11:26:28 +10:00
parent ac5ed74860
commit 6a6838f973
3 changed files with 7 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
3898. [bug] To small a buffer in tohexstr() calls in test code.
[RT #36598]
3897. [bug] RPZ summary information was not properly being updated 3897. [bug] RPZ summary information was not properly being updated
after a AXFR resulting in changes sometimes being after a AXFR resulting in changes sometimes being
ignored. [RT #35885] ignored. [RT #35885]

View File

@@ -54,7 +54,7 @@
unsigned char digest[ISC_GOST_DIGESTLENGTH]; unsigned char digest[ISC_GOST_DIGESTLENGTH];
unsigned char buffer[1024]; unsigned char buffer[1024];
const char *s; const char *s;
char str[ISC_GOST_DIGESTLENGTH]; char str[2 * ISC_GOST_DIGESTLENGTH + 1];
int i = 0; int i = 0;
isc_result_t isc_result_t
@@ -65,7 +65,7 @@ tohexstr(unsigned char *d, unsigned int len, char *out);
* Postcondition: A String representation of the given hexadecimal number is * Postcondition: A String representation of the given hexadecimal number is
* placed into the array *out * placed into the array *out
* *
* 'out' MUST point to an array of at least len / 2 + 1 * 'out' MUST point to an array of at least len * 2 + 1
* *
* Return values: ISC_R_SUCCESS if the operation is sucessful * Return values: ISC_R_SUCCESS if the operation is sucessful
*/ */

View File

@@ -40,7 +40,7 @@
unsigned char digest[ISC_SHA512_DIGESTLENGTH]; unsigned char digest[ISC_SHA512_DIGESTLENGTH];
unsigned char buffer[1024]; unsigned char buffer[1024];
const char *s; const char *s;
char str[ISC_SHA512_DIGESTLENGTH]; char str[2 * ISC_SHA512_DIGESTLENGTH + 1];
unsigned char key[20]; unsigned char key[20];
int i = 0; int i = 0;
@@ -52,7 +52,7 @@ tohexstr(unsigned char *d, unsigned int len, char *out);
* Postcondition: A String representation of the given hexadecimal number is * Postcondition: A String representation of the given hexadecimal number is
* placed into the array *out * placed into the array *out
* *
* 'out' MUST point to an array of at least len / 2 + 1 * 'out' MUST point to an array of at least len * 2 + 1
* *
* Return values: ISC_R_SUCCESS if the operation is sucessful * Return values: ISC_R_SUCCESS if the operation is sucessful
*/ */