lib/ckfw/capi/ckcapiver.c
author Wan-Teh Chang <wtc@google.com>
Mon, 13 May 2013 16:12:33 -0700
changeset 10774 edfcd816acafb25b4d7d7d491fcc7fd51237f4e2
parent 10685 6c43fe3ab5dd41803bbd6705979f73275d7668f6
child 11492 8ea23862252b009f097807267f43248a820f673e
permissions -rw-r--r--
Bug 869262: AppendAVA() should pass the the minimum of avaValue->len and valueLen to escapeAndQuote() to avoid reading beyond the end of the avaValue->data buffer. r=sleevi.

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Library identity and versioning */

#include "nsscapi.h"

#if defined(DEBUG)
#define _DEBUG_STRING " (debug)"
#else
#define _DEBUG_STRING ""
#endif

/*
 * Version information for the 'ident' and 'what commands
 *
 * NOTE: the first component of the concatenated rcsid string
 * must not end in a '$' to prevent rcs keyword substitution.
 */
const char __nss_ckcapi_rcsid[] = "$Header: NSS Access to Microsoft Certificate Store "
        NSS_CKCAPI_LIBRARY_VERSION _DEBUG_STRING
        "  " __DATE__ " " __TIME__ " $";
const char __nss_ckcapi_sccsid[] = "@(#)NSS Access to Microsoft Certificate Store "
        NSS_CKCAPI_LIBRARY_VERSION _DEBUG_STRING
        "  " __DATE__ " " __TIME__;