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 files31
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- Kconfig
- Makefile
- cxd2880.h
- cxd2880_common.c
- cxd2880_common.h
- cxd2880_devio_spi.c
- cxd2880_devio_spi.h
- cxd2880_dtv.h
- cxd2880_dvbt.h
- cxd2880_dvbt2.h
- cxd2880_integ.c
- cxd2880_integ.h
- cxd2880_io.c
- cxd2880_io.h
- cxd2880_spi.h
- cxd2880_spi_device.c
- cxd2880_spi_device.h
- cxd2880_tnrdmd.c
- cxd2880_tnrdmd.h
- cxd2880_tnrdmd_driver_version.h
- cxd2880_tnrdmd_dvbt.c
- cxd2880_tnrdmd_dvbt.h
- cxd2880_tnrdmd_dvbt2.c
- cxd2880_tnrdmd_dvbt2.h
- cxd2880_tnrdmd_dvbt2_mon.c
- cxd2880_tnrdmd_dvbt2_mon.h
- cxd2880_tnrdmd_dvbt_mon.c
- cxd2880_tnrdmd_dvbt_mon.h
- cxd2880_tnrdmd_mon.c
- cxd2880_tnrdmd_mon.h
- cxd2880_top.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/media/dvb-frontends/cxd2880/cxd2880_common.c
C · 493 bytes// SPDX-License-Identifier: GPL-2.0
/*
* cxd2880_common.c
* Sony CXD2880 DVB-T2/T tuner + demodulator driver
* common functions
*
* Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
*/
#include "cxd2880_common.h"
int cxd2880_convert2s_complement(u32 value, u32 bitlen)
{
if (!bitlen || bitlen >= 32)
return (int)value;
if (value & (u32)(1 << (bitlen - 1)))
return (int)(GENMASK(31, bitlen) | value);
else
return (int)(GENMASK(bitlen - 1, 0) & value);
}