Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files47
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- sched/
- unaligned/
- atomic.h
- bitmap.h
- bitops.h
- bits.h
- bug.h
- compiler-gcc.h
- compiler.h
- coresight-pmu.h
- debug_locks.h
- delay.h
- err.h
- export.h
- filter.h
- ftrace.h
- gfp.h
- hardirq.h
- hash.h
- hashtable.h
- interrupt.h
- irqflags.h
- jhash.h
- kallsyms.h
- kern_levels.h
- kernel.h
- linkage.h
- list.h
- lockdep.h
- log2.h
- module.h
- mutex.h
- nmi.h
- overflow.h
- poison.h
- proc_fs.h
- rbtree.h
- rbtree_augmented.h
- rcu.h
- refcount.h
- seq_file.h
- spinlock.h
- stacktrace.h
- string.h
- stringify.h
- time64.h
- types.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tools/include/linux/string.h
Text · 830 bytes/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _TOOLS_LINUX_STRING_H_
#define _TOOLS_LINUX_STRING_H_
#include <linux/types.h> /* for size_t */
#include <string.h>
void *memdup(const void *src, size_t len);
int strtobool(const char *s, bool *res);
/*
* glibc based builds needs the extern while uClibc doesn't.
* However uClibc headers also define __GLIBC__ hence the hack below
*/
#if defined(__GLIBC__) && !defined(__UCLIBC__)
extern size_t strlcpy(char *dest, const char *src, size_t size);
#endif
char *str_error_r(int errnum, char *buf, size_t buflen);
/**
* strstarts - does @str start with @prefix?
* @str: string to examine
* @prefix: prefix to look for.
*/
static inline bool strstarts(const char *str, const char *prefix)
{
return strncmp(str, prefix, strlen(prefix)) == 0;
}
#endif /* _LINUX_STRING_H_ */