Exploit databaseDownload repository ZIP
GH-f5b5f3e255c9647f10455031c760da99
opsxcq/exploit-cve-2016-7434
Sources for CVE-2016-7434
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files81
opsxcq/exploit-cve-2016-7434Revision b2860c5160a6
- ↑..Parent directory
- alpha/
- ia64/
- include/
- mips/
- nls/
- noatomic/
- nothreads/
- powerpc/
- pthreads/
- sparc64/
- tests/
- unix/
- win32/
- x86_32/
- x86_64/
- Atffile
- api
- app_api.c
- assertions.c
- backtrace-emptytbl.c
- backtrace.c
- base32.c
- base64.c
- bitstring.c
- buffer.c
- bufferlist.c
- commandline.c
- entropy.c
- error.c
- event.c
- fsaccess.c
- hash.c
- heap.c
- hex.c
- hmacmd5.c
- hmacsha.c
- httpd.c
- inet_aton.c
- inet_ntop.c
- inet_pton.c
- iterated_hash.c
- lex.c
- lfsr.c
- lib.c
- log.c
- md5.c
- mem.c
- mem_api.c
- mutexblock.c
- netaddr.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
ntp-4.2.8p8/lib/isc/mutexblock.c
C · 1,579 bytes/*
* Copyright (C) 2004, 2005, 2007, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id$ */
/*! \file */
#include <config.h>
#include <isc/mutexblock.h>
#include <isc/util.h>
isc_result_t
isc_mutexblock_init(isc_mutex_t *block, unsigned int count) {
isc_result_t result;
unsigned int i;
for (i = 0; i < count; i++) {
result = isc_mutex_init(&block[i]);
if (result != ISC_R_SUCCESS) {
while (i > 0U) {
i--;
DESTROYLOCK(&block[i]);
}
return (result);
}
}
return (ISC_R_SUCCESS);
}
isc_result_t
isc_mutexblock_destroy(isc_mutex_t *block, unsigned int count) {
isc_result_t result;
unsigned int i;
for (i = 0; i < count; i++) {
result = isc_mutex_destroy(&block[i]);
if (result != ISC_R_SUCCESS)
return (result);
}
return (ISC_R_SUCCESS);
}