OLD | NEW |
(Empty) | |
| 1 Index: lib/certdb/alg1485.c |
| 2 =================================================================== |
| 3 --- lib/certdb/alg1485.c (revision 199075) |
| 4 +++ lib/certdb/alg1485.c (working copy) |
| 5 @@ -1036,8 +1036,10 @@ |
| 6 } else { |
| 7 /* must truncate the escaped and quoted value */ |
| 8 char bigTmpBuf[TMPBUF_LEN * 3 + 3]; |
| 9 + PORT_Assert(valueLen < sizeof tmpBuf); |
| 10 rv = escapeAndQuote(bigTmpBuf, sizeof bigTmpBuf, |
| 11 - (char *)avaValue->data, valueLen, &mode); |
| 12 + (char *)avaValue->data, |
| 13 + PR_MIN(avaValue->len, valueLen), &mode); |
| 14 |
| 15 bigTmpBuf[valueLen--] = '\0'; /* hard stop here */ |
| 16 /* See if we're in the middle of a multi-byte UTF8 character */ |
OLD | NEW |