func_before stringlengths 10 482k | func_after stringlengths 14 484k | cve_id stringlengths 13 28 ⌀ | cwe_id stringclasses 776
values | cve_description stringlengths 30 3.31k ⌀ | commit_link stringlengths 48 164 ⌀ | commit_message stringlengths 1 30.3k ⌀ | file_name stringlengths 4 244 ⌀ | extension stringclasses 20
values | datetime stringdate 1999-11-10 02:42:49 2024-01-29 16:00:57 ⌀ |
|---|---|---|---|---|---|---|---|---|---|
function renderRestrictedPipeline(node) {
var gui = '';
gui += '<h3 title="' + node.name + '" class="restricted">' + node.name + '</h3>';
if (node.message) {
gui += '<div class="message restricted"><span>' + node.message + '</span></div>';
}
gui += '<div class="action... | function renderRestrictedPipeline(node) {
var gui = '';
gui += '<h3 title="' + node.name + '" class="restricted">' + node.name + '</h3>';
if (node.message) {
gui += '<div class="message restricted"><span>' + _.escape(node.message) + '</span></div>';
}
gui += '<div cla... | CVE-2023-28629 | CWE-79 | GoCD is an open source continuous delivery server. GoCD versions before 23.1.0 are vulnerable to a stored XSS vulnerability, where pipeline configuration with a malicious pipeline label configuration can affect browser display of pipeline runs generated from that configuration. An attacker that has permissions to confi... | https://github.com/gocd/gocd/commit/c6aa644973b034305bbe9ea34b010dcf5b5790ce | Encode VSM node attributes for HTML | server/src/main/webapp/WEB-INF/rails/app/assets/javascripts/vsm_renderer.js | js | 2022-12-03T10:11:45Z |
static Image *ReadMATImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
Image *image, *image2=NULL,
*rotated_image;
register Quantum *q;
unsigned int status;
MATHeader MATLAB_HDR;
size_t size;
size_t CellType;
QuantumInfo *quantum_info;
ImageInfo *clone_info;
int i;
ssize_t ldblk;
... | static Image *ReadMATImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
Image *image, *image2=NULL,
*rotated_image;
register Quantum *q;
unsigned int status;
MATHeader MATLAB_HDR;
size_t size;
size_t CellType;
QuantumInfo *quantum_info;
ImageInfo *clone_info;
int i;
ssize_t ldblk;
... | CVE-2016-10070 | CWE-125 | Heap-based buffer overflow in the CalcMinMax function in coders/mat.c in ImageMagick before 6.9.4-0 allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted mat file. | https://github.com/ImageMagick/ImageMagick/commit/a6240a163cb787909703d9fc649cf861f60ddd7c | https://github.com/ImageMagick/ImageMagick/issues/131 | mat.c | c | 2016-02-20T14:51:04Z |
static void put_crypt_info(struct fscrypt_info *ci)
{
if (!ci)
return;
key_put(ci->ci_keyring_key);
crypto_free_skcipher(ci->ci_ctfm);
kmem_cache_free(fscrypt_info_cachep, ci);
} | static void put_crypt_info(struct fscrypt_info *ci)
{
if (!ci)
return;
crypto_free_skcipher(ci->ci_ctfm);
kmem_cache_free(fscrypt_info_cachep, ci);
} | null | CWE-416, CWE-476 | null | https://github.com/torvalds/linux/commit/1b53cf9815bb4744958d41f3795d5d5a1d365e2d | fscrypt: remove broken support for detecting keyring key revocation
Filesystem encryption ostensibly supported revoking a keyring key that
had been used to "unlock" encrypted files, causing those files to become
"locked" again. This was, however, buggy for several reasons, the most
severe of which was that when key r... | null | null | 2017-02-21T23:07:11Z |
@Override
public void run() {
this.threadNum.incrementAndGet();
String stmt = null;
DumpFileWriter writer = this.context.getWriter();
while (!Thread.currentThread().isInterrupted()) {
try {
//thread pool shrink
boolean shrink = shrinkThread... | @Override
public void run() {
this.threadNum.incrementAndGet();
String stmt = null;
DumpFileWriter writer = this.context.getWriter();
while (!Thread.currentThread().isInterrupted()) {
try {
//thread pool shrink
boolean shrink = shrinkThread... | null | null | null | https://github.com/actiontech/dble/commit/90013e4d4809141de9281cc1efa1b3e645f1be48 | fix: exception handling & dos newline(\r) handling (#2979)
* fix: Exception handling
Queue default value modification
* fix: dos newline handling
for druid does not support the processing of \r | src/main/java/com/actiontech/dble/services/manager/dump/DumpFileExecutor.java | java | 2021-12-03T03:36:29Z |
static void qemu_kvm_eat_signal(CPUState *env, int timeout)
{
struct timespec ts;
int r, e;
siginfo_t siginfo;
sigset_t waitset;
ts.tv_sec = timeout / 1000;
ts.tv_nsec = (timeout % 1000) * 1000000;
sigemptyset(&waitset);
sigaddset(&waitset, SIG_IPI);
qemu_mutex_unlock(&qemu_global_mu... | static void qemu_kvm_eat_signal(CPUState *env, int timeout)
{
struct timespec ts;
int r, e;
siginfo_t siginfo;
sigset_t waitset;
sigset_t chkset;
ts.tv_sec = timeout / 1000;
ts.tv_nsec = (timeout % 1000) * 1000000;
sigemptyset(&waitset);
sigaddset(&waitset, SIG_IPI);
sigaddset(&w... | null | null | null | qemu/commit/c0532a76b407af4b276dc5a62d8178db59857ea6 | MCE: Relay UCR MCE to guest
Port qemu-kvm's
commit 4b62fff1101a7ad77553147717a8bd3bf79df7ef
Author: Huang Ying <ying.huang@intel.com>
Date: Mon Sep 21 10:43:25 2009 +0800
MCE: Relay UCR MCE to guest
UCR (uncorrected recovery) MCE is supported in recent Intel CPUs,
where some hardware error such as som... | ./qemu/cpus.c | c | 2010-10-11T18:31:21Z |
private List<byte[]> parseArray(ByteBuf buffer)
throws RedisCommandParserException {
byte currentChar;
int arrayLength = parseCurrentNumber(buffer);
if (arrayLength == Integer.MIN_VALUE || !parseRN(buffer)) {
return null;
}
if (arrayLength < 0 || arrayLength > 1000000000) {
throw n... | private List<byte[]> parseArray(ByteBuf buffer)
throws RedisCommandParserException {
byte currentChar;
int arrayLength = parseCurrentNumber(buffer);
if (arrayLength < 0 || !parseRN(buffer)) {
return null;
}
if (arrayLength > UNAUTHENTICATED_MAX_ARRAY_SIZE
&& securityService.isEn... | null | null | null | https://github.com/apache/geode/commit/4398bec6eac70ee7bfa3b296655a8326543fc3b7 | GEODE-9676: Limit array and string sizes for unauthenticated Radish connections (#6994)
- This applies the same fix as introduced by CVE-2021-32675 for Redis.
When security is enabled, unuauthenticated requests limit the size of arrays
and bulk strings to 10 and 16384 respectively. Once connections are authenticat... | geode-for-redis/src/main/java/org/apache/geode/redis/internal/netty/ByteToCommandDecoder.java | java | 2021-10-19T15:29:54Z |
static void mm_stop_timer(struct qemu_alarm_timer *t)
{
timeKillEvent(mm_timer);
timeEndPeriod(mm_period);
} | static void mm_stop_timer(struct qemu_alarm_timer *t)
{
timeKillEvent(mm_timer);
timeEndPeriod(mm_tc.wPeriodMin);
} | null | null | null | qemu/commit/40f08e87f613273f9dcc8df7d6a0f574b7d28d05 | qemu-timer: Fix limits for w32 mmtimer
timeSetEvent only accepts delays in the range which is returned by
timeGetDevCaps.
The lower limit is typically 1 (= 1 ms), so the constant value of 1
in the old code usually worked.
The upper limit can be as low as 10000 ms, so the latest changes in
QEMU's timer handling which... | ./qemu/qemu-timer.c | c | 2012-04-27T05:34:40Z |
parse_object(JsonLexContext *lex, JsonSemAction *sem)
{
/*
* an object is a possibly empty sequence of object fields, separated by
* commas and surrounded by curly braces.
*/
json_struct_action ostart = sem->object_start;
json_struct_action oend = sem->object_end;
JsonTokenType tok;
if (ostart != ... | parse_object(JsonLexContext *lex, JsonSemAction *sem)
{
/*
* an object is a possibly empty sequence of object fields, separated by
* commas and surrounded by curly braces.
*/
json_struct_action ostart = sem->object_start;
json_struct_action oend = sem->object_end;
JsonTokenType tok;
check_stack_dep... | CVE-2015-5289 | CWE-119 | Multiple stack-based buffer overflows in json parsing in PostgreSQL before 9.3.x before 9.3.10 and 9.4.x before 9.4.5 allow attackers to cause a denial of service (server crash) via unspecified vectors, which are not properly handled in (1) json or (2) jsonb values. | https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=08fa47c4850cea32c3116665975bca219fbf2fe6 | null | null | c | null |
zzip_mem_disk_findmatch(ZZIP_MEM_DISK* dir,
char* filespec, ZZIP_DISK_ENTRY* after,
zzip_fnmatch_fn_t compare, int flags) {
return zzip_disk_findmatch(dir->disk, filespec, after, compare, flags); } | zzip_mem_disk_findmatch(ZZIP_MEM_DISK* dir,
char* filespec, ZZIP_MEM_ENTRY* after,
zzip_fnmatch_fn_t compare, int flags)
{
ZZIP_MEM_ENTRY* entry = (! after ? dir->list : after->zz_next);
if (! compare) compare = (zzip_fnmatch_fn_t) _zzip_fnmatch;
for (; entry ; entry = entry->zz_... | CVE-2018-7725 | CWE-119 | An issue was discovered in ZZIPlib 0.13.68. An invalid memory address dereference was discovered in zzip_disk_fread in mmapped.c. The vulnerability causes an application crash, which leads to denial of service. | https://github.com/gdraheim/zziplib/commit/596d9dfce2624e849417d4301e8d67935608aa5e | memdisk
(.) | null | null | 2005-05-16T02:11:01Z |
def get_request_kwargs(cls, form, url=None, **kwargs):
"""Extract input data from the form."""
method = str(form.get("method", "get"))
action = form.get("action")
url = urllib.parse.urljoin(url, action)
if url is None: # This happens when both `action` and `url` are None.
... | def get_request_kwargs(cls, form, url=None, **kwargs):
"""Extract input data from the form."""
method = str(form.get("method", "get"))
action = form.get("action")
url = urllib.parse.urljoin(url, action)
if url is None: # This happens when both `action` and `url` are None.
... | null | null | null | https://github.com/MechanicalSoup/MechanicalSoup/commit/d57c4a269bba3b9a0c5bfa20292955b849006d9e | Merge pull request from GHSA-x456-3ccm-m6j4
* Add suggested mitigation against malicious HTML form file input. Test cases and docs not updated.
* Make tests pass. Add test specifically for this vulnerability. Fix the `Form.new_control()` method so that it correctly sets the input value if the value is a file object.
... | mechanicalsoup/browser.py | py | 2023-07-04T18:47:44Z |
static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc,
unsigned int *rsize)
{
if (*rsize >= 17 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n");
rdesc[11] = rdesc[16] = 0xff;
rdesc[12] = rdesc[17] = 0x03;
}
return rdesc;
} | static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc,
unsigned int *rsize)
{
if (*rsize >= 18 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n");
rdesc[11] = rdesc[16] = 0xff;
rdesc[12] = rdesc[17] = 0x03;
}
return rdesc;
} | CVE-2014-3184 | CWE-119 | The report_fixup functions in the HID subsystem in the Linux kernel before 3.16.2 might allow physically proximate attackers to cause a denial of service (out-of-bounds write) via a crafted device that provides a small report descriptor, related to (1) drivers/hid/hid-cherry.c, (2) drivers/hid/hid-kye.c, (3) drivers/hi... | https://github.com/torvalds/linux/commit/4ab25786c87eb20857bbb715c3ae34ec8fd6a214 | HID: fix a couple of off-by-ones
There are a few very theoretical off-by-one bugs in report descriptor size
checking when performing a pre-parsing fixup. Fix those.
Cc: stable@vger.kernel.org
Reported-by: Ben Hawkes <hawkes@google.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jir... | hid-petalynx.c | c | 2014-08-21T14:57:48Z |
ath10k_usb_alloc_urb_from_pipe(struct ath10k_usb_pipe *pipe)
{
struct ath10k_urb_context *urb_context = NULL;
unsigned long flags;
spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags);
if (!list_empty(&pipe->urb_list_head)) {
urb_context = list_first_entry(&pipe->urb_list_head,
struct ath10k_urb_context,... | ath10k_usb_alloc_urb_from_pipe(struct ath10k_usb_pipe *pipe)
{
struct ath10k_urb_context *urb_context = NULL;
unsigned long flags;
/* bail if this pipe is not initialized */
if (!pipe->ar_usb)
return NULL;
spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags);
if (!list_empty(&pipe->urb_list_head)) {
urb_context... | CVE-2019-15099 | CWE-476 | drivers/net/wireless/ath/ath10k/usb.c in the Linux kernel through 5.2.8 has a NULL pointer dereference via an incomplete address in an endpoint descriptor. | https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bfd6e6e6c5d2ee43a3d9902b36e01fc7527ebb27 | ath10k: Fix a NULL-ptr-deref bug in ath10k_usb_alloc_urb_from_pipe
The `ar_usb` field of `ath10k_usb_pipe_usb_pipe` objects
are initialized to point to the containing `ath10k_usb` object
according to endpoint descriptors read from the device side, as shown
below in `ath10k_usb_setup_pipe_resources`:
for (i = 0; i < i... | null | null | null |
@Nullable
private JavaType type(@Nullable com.sun.tools.javac.code.Type type, List<Symbol> stack) {
//Word of caution, during attribution, we will likely encounter symbols that have been parsed but are not
//on the parser's classpath. Calling a method on the symbol that calls complete() will result ... | @Nullable
private JavaType type(@Nullable com.sun.tools.javac.code.Type type, List<Symbol> stack) {
//Word of caution, during attribution, we will likely encounter symbols that have been parsed but are not
//on the parser's classpath. Calling a method on the symbol that calls complete() will result ... | null | null | null | https://github.com/openrewrite/rewrite/commit/209756779cdeb06b60eecf1b4f1528c4936917df | Fixing a stackoverflow in type resolution (#555) | rewrite-java-11/src/main/java/org/openrewrite/java/Java11ParserVisitor.java | java | 2021-05-18T21:47:59Z |
PHP_FUNCTION(tempnam)
{
char *dir, *prefix;
int dir_len, prefix_len;
size_t p_len;
char *opened_path;
char *p;
int fd;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &dir, &dir_len, &prefix, &prefix_len) == FAILURE) {
return;
}
if (PG(safe_mode) &&(!php_checkuid(dir, NULL, CHECKUID_CHECK_FILE_A... | PHP_FUNCTION(tempnam)
{
char *dir, *prefix;
int dir_len, prefix_len;
size_t p_len;
char *opened_path;
char *p;
int fd;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &dir, &dir_len, &prefix, &prefix_len) == FAILURE) {
return;
}
if (strlen(dir) != dir_len) {
RETURN_FALSE;
}
if (strlen(prefi... | null | null | null | null | - fix #39863, do not accept paths with NULL in them. See http://news.php.net/php.internals/50191, trunk will have the patch later (adding a macro and/or changing (some) APIs. Patch by Rasmus | null | null | null |
function inviteEndpoints(app) {
if (!app) return;
app.get("/invite/:code", async (request, response) => {
try {
const { code } = request.params;
const invite = await Invite.get(`code = '${code}'`);
if (!invite) {
response.status(200).json({ invite: null, error: "Invite not found." });... | function inviteEndpoints(app) {
if (!app) return;
app.get("/invite/:code", async (request, response) => {
try {
const { code } = request.params;
const invite = await Invite.get(`code = ${escape(code)}`);
if (!invite) {
response.status(200).json({ invite: null, error: "Invite not found... | CVE-2023-4898 | NVD-CWE-Other,CWE-305 | Authentication Bypass by Primary Weakness in GitHub repository mintplex-labs/anything-llm prior to 0.0.1. | https://github.com/mintplex-labs/anything-llm/commit/dc3dfbf31495fe316b21ee184b9317b38101d30e | patch SQL injection opportunities [LOW RISK] (#234) | server/endpoints/invite.js | js | 2023-09-11T23:27:04Z |
static uint64_t strongarm_gpio_read(void *opaque, hwaddr offset,
unsigned size)
{
StrongARMGPIOInfo *s = opaque;
switch (offset) {
case GPDR:
return s->dir;
case GPSR:
DPRINTF("%s: Read from a write-only register 0x" TARGET_FMT_plx "\n"... | static uint64_t strongarm_gpio_read(void *opaque, hwaddr offset,
unsigned size)
{
StrongARMGPIOInfo *s = opaque;
switch (offset) {
case GPDR:
return s->dir;
case GPSR:
qemu_log_mask(LOG_GUEST_ERROR,
"strongarm GPIO... | null | null | null | qemu/commit/92335a0d4021a3b44ccc88c9fc6c0fd2113f1882 | hw/arm/strongarm: Fix handling of GPSR/GPCR reads
The StrongARM GPIO GPSR and GPCR registers are write-only, with reads being
undefined behaviour. Instead of having GPCR return 31337 and GPSR return
the value last written, make both log the guest error and return 0.
Signed-off-by: Peter Maydell <peter.maydell@linaro.... | ./qemu/hw/arm/strongarm.c | c | 2014-06-29T17:38:39Z |
public static void authorizeModifyOp(ConditionalOperation task, Callback<ConditionalOperation> callback) throws Exception {
final XyzHubActionMatrix tokenRights = task.getJwt().getXyzHubMatrix();
final XyzHubActionMatrix requestRights = new XyzHubActionMatrix();
final Entry<Space> entry = task.modifyOp.ent... | public static void authorizeModifyOp(ConditionalOperation task, Callback<ConditionalOperation> callback) throws Exception {
final XyzHubActionMatrix tokenRights = task.getJwt().getXyzHubMatrix();
final XyzHubActionMatrix requestRights = new XyzHubActionMatrix();
final Entry<Space> entry = task.modifyOp.ent... | null | null | null | https://github.com/heremaps/xyz-hub/commit/f07fb710a108b205292613095e64763aa73ab78a | Fix connector authorization validating unmodified listeners & processors
Signed-off-by: Lucas Ceni <lucas.ceni@here.com> | xyz-hub-service/src/main/java/com/here/xyz/hub/auth/SpaceAuthorization.java | java | 2021-03-31T14:47:38Z |
main(int argc, char **argv)
{
const char *safepath = "/bin:/sbin:/usr/bin:/usr/sbin:"
"/usr/local/bin:/usr/local/sbin";
const char *confpath = NULL;
char *shargv[] = { NULL, NULL };
char *sh;
const char *p;
const char *cmd;
char cmdline[LINE_MAX];
struct passwd mypwstore, targpwstore;
struct passwd *mypw,... | main(int argc, char **argv)
{
const char *safepath = "/bin:/sbin:/usr/bin:/usr/sbin:"
"/usr/local/bin:/usr/local/sbin";
const char *confpath = NULL;
char *shargv[] = { NULL, NULL };
char *sh;
const char *p;
const char *cmd;
char cmdline[LINE_MAX];
struct passwd mypwstore, targpwstore;
struct passwd *mypw,... | CVE-2019-25016 | CWE-200 | In OpenDoas from 6.6 to 6.8 the users PATH variable was incorrectly inherited by authenticated executions if the authenticating rule allowed the user to execute any command. Rules that only allowed to authenticated user to execute specific commands were not affected by this issue. | https://github.com/Duncaen/OpenDoas/commit/d5acd52e2a15c36a8e06f9103d35622933aa422d | correctly reset path for rules without specific command
This is a fixup for commit 01c658f8c45cb92a343be5f32aa6da70b2032168
where the behaviour was changed to not inherit the PATH variable
by default. | doas.c | c | 2021-01-28T16:58:34Z |
static void qemu_cleanup_net_client(NetClientState *nc)
{
QTAILQ_REMOVE(&net_clients, nc, next);
nc->info->cleanup(nc);
} | static void qemu_cleanup_net_client(NetClientState *nc)
{
QTAILQ_REMOVE(&net_clients, nc, next);
if (nc->info->cleanup) {
nc->info->cleanup(nc);
}
} | null | null | null | qemu/commit/cc2a90432d9cb7546a2c4360ad7200a2fb3af31a | net: Avoid NULL function pointer dereference on cleanup
The pSeries machine and some other devices don't supply a cleanup
callback. Revert part of 1ceef9f27359cbe92ef124bf74de6f792e71f6fb that
started calling it unconditionally.
Cc: Jason Wang <jasowang@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Mes... | ./qemu/net/net.c | c | 2013-02-12T22:16:06Z |
static int bdrv_qed_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVQEDState *s = bs->opaque;
QEDHeader le_header;
int64_t file_size;
int ret;
s->bs = bs;
QSIMPLEQ_INIT(&s->allocating_write_reqs);
ret = bdrv_pread(bs->file, 0, &le_header, si... | static int bdrv_qed_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVQEDState *s = bs->opaque;
QEDHeader le_header;
int64_t file_size;
int ret;
s->bs = bs;
QSIMPLEQ_INIT(&s->allocating_write_reqs);
ret = bdrv_pread(bs->file, 0, &le_header, si... | null | null | null | qemu/commit/0adfa1ed655904d5bf17fe047635a563f0229789 | qed: check for header size overflow
Header size is denoted in clusters. The maximum cluster size is 64 MB
but there is no limit on header size. Check for uint32_t overflow in
case the header size field has a whacky value.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1421065893-18875-2-git-send-e... | ./qemu/block/qed.c | c | 2015-01-12T12:31:32Z |
static int adjust_insn_aux_data(struct bpf_verifier_env *env, u32 prog_len,
u32 off, u32 cnt)
{
struct bpf_insn_aux_data *new_data, *old_data = env->insn_aux_data;
if (cnt == 1)
return 0;
new_data = vzalloc(sizeof(struct bpf_insn_aux_data) * prog_len);
if (!new_data)
return -ENOMEM;
memcpy(new_data... | static int adjust_insn_aux_data(struct bpf_verifier_env *env, u32 prog_len,
u32 off, u32 cnt)
{
struct bpf_insn_aux_data *new_data, *old_data = env->insn_aux_data;
int i;
if (cnt == 1)
return 0;
new_data = vzalloc(sizeof(struct bpf_insn_aux_data) * prog_len);
if (!new_data)
return -ENOMEM;
memcpy(... | CVE-2017-17862 | CWE-20 | kernel/bpf/verifier.c in the Linux kernel through 4.14.8 ignores unreachable code, even though it would still be processed by JIT compilers. This behavior, also considered an improper branch-pruning logic issue, could possibly be used by local users for denial of service. | https://github.com/torvalds/linux/commit/c131187db2d3fa2f8bf32fdf4e9a4ef805168467 | bpf: fix branch pruning logic
when the verifier detects that register contains a runtime constant
and it's compared with another constant it will prune exploration
of the branch that is guaranteed not to be taken at runtime.
This is all correct, but malicious program may be constructed
in such a way that it always has... | kernel/bpf/verifier.c | c | 2017-11-23T00:42:05Z |
static int send_acknowledge(struct nci_spi *nspi, u8 acknowledge)
{
struct sk_buff *skb;
unsigned char *hdr;
u16 crc;
int ret;
skb = nci_skb_alloc(nspi->ndev, 0, GFP_KERNEL);
/* add the NCI SPI header to the start of the buffer */
hdr = skb_push(skb, NCI_SPI_HDR_LEN);
hdr[0] = NCI_SPI_DIRECT_WRITE;
hdr[1] = ... | static int send_acknowledge(struct nci_spi *nspi, u8 acknowledge)
{
struct sk_buff *skb;
unsigned char *hdr;
u16 crc;
int ret;
skb = nci_skb_alloc(nspi->ndev, 0, GFP_KERNEL);
if (!skb)
return -ENOMEM;
/* add the NCI SPI header to the start of the buffer */
hdr = skb_push(skb, NCI_SPI_HDR_LEN);
hdr[0] = NCI... | null | null | null | https://github.com/torvalds/linux/commit/7937609cd387246aed994e81aa4fa951358fba41 | nfc: nci: fix possible NULL pointer dereference in send_acknowledge()
Handle memory allocation failure from nci_skb_alloc() (calling
alloc_skb()) to avoid possible NULL pointer dereference.
Reported-by: 黄思聪 <huangsicong@iie.ac.cn>
Fixes: 391d8a2da787 ("NFC: Add NCI over SPI receive")
Cc: <stable@vger.kernel.org>
Sign... | net/nfc/nci/spi.c | c | 2023-10-13T18:41:29Z |
void ff_mpeg4_encode_mb(MpegEncContext *s, int16_t block[6][64],
int motion_x, int motion_y)
{
int cbpc, cbpy, pred_x, pred_y;
PutBitContext *const pb2 = s->data_partitioning ? &s->pb2 : &s->pb;
PutBitContext *const tex_pb = s->data_partitioning && s->pict_type != AV_PICTURE_TYPE_... | void ff_mpeg4_encode_mb(MpegEncContext *s, int16_t block[6][64],
int motion_x, int motion_y)
{
int cbpc, cbpy, pred_x, pred_y;
PutBitContext *const pb2 = s->data_partitioning ? &s->pb2 : &s->pb;
PutBitContext *const tex_pb = s->data_partitioning && s->pict_type != AV_PICTURE_TYPE_... | null | null | null | FFmpeg/commit/f6774f905fb3cfdc319523ac640be30b14c1bc55 | mpegvideo: operate with pointers to AVFrames instead of whole structs
The most interesting parts are initialization in ff_MPV_common_init() and
uninitialization in ff_MPV_common_end().
ff_mpeg_unref_picture and ff_thread_release_buffer have additional NULL
checks for Picture.f, because these functions can be called o... | ./ffmpeg/libavcodec/mpeg4videoenc.c | c | 2014-03-31T17:46:29Z |
@SuppressWarnings("deprecation")
@Override
public void onReceive(Context context, Intent intent) {
if(U.isExternalAccessDisabled(context)) return;
if (lastbundle.equals(intent.getBundleExtra(com.twofortyfouram.locale.api.Intent.EXTRA_BUNDLE))) {
return;
}
updateValue... | @SuppressWarnings("deprecation")
@Override
public void onReceive(Context context, Intent intent) {
if(U.isExternalAccessDisabled(context)) return;
if(lastbundle != null && lastbundle.equals(intent.getBundleExtra(com.twofortyfouram.locale.api.Intent.EXTRA_BUNDLE))) {
// bundle hasn't... | null | null | null | https://github.com/farmerbb/SecondScreen/commit/e6fdecf9818607347dcc6f7d9a1478fb3c05f885 | SecondScreen 2.9.2 (release 1)
* Bump version code for 2.9.2 release | app/src/main/java/com/farmerbb/secondscreen/receiver/TaskerConditionReceiver.java | java | 2021-05-24T05:17:38Z |
def render(self, request):
"""
Send www-authenticate headers to the client
"""
def ensureBytes(s):
return s.encode("ascii") if isinstance(s, str) else s
def generateWWWAuthenticate(scheme, challenge):
lst = []
for k, v in challenge.items():
... | def render(self, request):
"""
Send www-authenticate headers to the client
"""
def ensureBytes(s):
return s.encode("ascii") if isinstance(s, str) else s
def generateWWWAuthenticate(scheme, challenge):
lst = []
for k, v in challenge.items():
... | null | null | null | https://github.com/twisted/twisted/commit/f2f5e81c03f14e253e85fe457e646130780db40b | Merge pull request from GHSA-vg46-2rrj-3647
#11716 Fix NameVirtualHost HTML injection and deprecate t.w.r.ErrorPage in favor of t.w.pages | src/twisted/web/_auth/wrapper.py | py | 2022-10-26T18:52:32Z |
function GETPOST($paramname,$check='',$method=0)
{
if (empty($method)) $out = isset($_GET[$paramname])?$_GET[$paramname]:(isset($_POST[$paramname])?$_POST[$paramname]:'');
elseif ($method==1) $out = isset($_GET[$paramname])?$_GET[$paramname]:'';
elseif ($method==2) $out = isset($_POST[$paramname])?$_POST[$paramname]... | function GETPOST($paramname,$check='',$method=0)
{
if (empty($method)) $out = isset($_GET[$paramname])?$_GET[$paramname]:(isset($_POST[$paramname])?$_POST[$paramname]:'');
elseif ($method==1) $out = isset($_GET[$paramname])?$_GET[$paramname]:'';
elseif ($method==2) $out = isset($_POST[$paramname])?$_POST[$paramname]... | CVE-2012-1226 | CWE-22 | Multiple directory traversal vulnerabilities in Dolibarr CMS 3.2.0 Alpha allow remote attackers to read arbitrary files and possibly execute arbitrary code via a .. (dot dot) in the (1) file parameter to document.php or (2) backtopage parameter in a create action to comm/action/fiche.php. | https://github.com/Dolibarr/dolibarr/commit/5381986e50dd6055f2b3b63281eaacffa0449da2 | Fix: Multiple directory traversal vulnerabilities with backtopage | functions.lib.php | php | 2012-02-21T13:31:00Z |
rsvg_state_clone (RsvgState * dst, const RsvgState * src)
{
gint i;
RsvgState *parent = dst->parent;
rsvg_state_finalize (dst);
*dst = *src;
dst->parent = parent;
dst->font_family = g_strdup (src->font_family);
dst->lang = g_strdup (src->lang);
rsvg_paint_server_ref (dst->fill);
rs... | rsvg_state_clone (RsvgState * dst, const RsvgState * src)
{
gint i;
RsvgState *parent = dst->parent;
rsvg_state_finalize (dst);
*dst = *src;
dst->parent = parent;
dst->mask = g_strdup (src->mask);
dst->font_family = g_strdup (src->font_family);
dst->lang = g_strdup (src->lang);
rsv... | CVE-2016-4348 | CWE-20 | The _rsvg_css_normalize_font_size function in librsvg 2.40.2 allows context-dependent attackers to cause a denial of service (stack consumption and application crash) via circular definitions in an SVG document. | https://git.gnome.org/browse/librsvg/commit/?id=d1c9191949747f6dcfd207831d15dd4ba00e31f2 | state: Store mask as reference
Instead of immediately looking up the mask, store the reference and look
it up on use. | null | null | 2015-10-07T03:31:08Z |
@Override
public PendingIntent getAuthentificationNotificationContentIntent(Context context, DownloadRequest request) {
final Intent activityIntent = new Intent(context.getApplicationContext(), DownloadAuthenticationActivity.class);
activityIntent.setAction("request" + request.getFeedfileId());
... | @Override
public PendingIntent getAuthentificationNotificationContentIntent(Context context, DownloadRequest request) {
final Intent activityIntent = new Intent(context.getApplicationContext(), DownloadAuthenticationActivity.class);
activityIntent.setAction("request" + request.getFeedfileId());
... | null | null | null | https://github.com/AntennaPod/AntennaPod/commit/b020815410ae05a81b2f8018e8a75c44cfa07542 | Fix importing multiple authenticated feeds | app/src/main/java/de/danoeh/antennapod/config/DownloadServiceCallbacksImpl.java | java | 2022-06-30T09:56:01Z |
rpmRC hdrblobRead(FD_t fd, int magic, int exact_size, rpmTagVal regionTag, hdrblob blob, char **emsg)
{
int32_t block[4];
int32_t *bs = (magic != 0) ? &block[0] : &block[2];
int blen = (magic != 0) ? sizeof(block) : sizeof(block) / 2;
int32_t il;
int32_t dl;
int32_t * ei = NULL;
size_t uc;
... | rpmRC hdrblobRead(FD_t fd, int magic, int exact_size, rpmTagVal regionTag, hdrblob blob, char **emsg)
{
int32_t block[4];
int32_t *bs = (magic != 0) ? &block[0] : &block[2];
int blen = (magic != 0) ? sizeof(block) : sizeof(block) / 2;
int32_t il;
int32_t dl;
int32_t * ei = NULL;
size_t uc;
... | CVE-2021-20266 | CWE-125 | A flaw was found in RPM's hdrblobInit() in lib/header.c. This flaw allows an attacker who can modify the rpmdb to cause an out-of-bounds read. The highest threat from this vulnerability is to system availability. | https://github.com/rpm-software-management/rpm/commit/8f4b3c3cab8922a2022b9e47c71f1ecf906077ef | hdrblobInit() needs bounds checks too
Users can pass untrusted data to hdrblobInit() and it must be robust
against this. | null | null | 2021-02-08T21:05:01Z |
void determinization(ctx_t &ctx)
{
const uint32_t INITIAL_TAGS = init_tag_versions(ctx);
// initial state
const clos_t c0(ctx.nfa.root, 0, INITIAL_TAGS, HROOT, HROOT);
ctx.reach.push_back(c0);
tagged_epsilon_closure(ctx);
find_state(ctx);
// iterate while new kernels are added: for each al... | void determinization(ctx_t &ctx)
{
const uint32_t INITIAL_TAGS = init_tag_versions(ctx);
// initial state
const clos_t c0(ctx.nfa.root, 0, INITIAL_TAGS, HROOT, HROOT);
ctx.reach.push_back(c0);
tagged_epsilon_closure(ctx);
find_state(ctx);
// Iterate while new kernels are added: for each al... | null | CWE-787 | null | https://github.com/skvadrik/re2c/commit/a3473fd7be829cb33907cb08612f955133c70a96 | Limit maximum allowed NFA and DFA size.
Instead of failing with an out of memory exception or crashing with a
stack overflow, emit an error message and exit. This is a partial fix
for bug #394 "Stack overflow due to recursion in src/dfa/dead_rules.cc",
where re2c hit stack overflow on a counted repetition regexp with ... | null | null | 2022-01-21T21:40:41Z |
static int integratorcm_init(SysBusDevice *dev)
{
IntegratorCMState *s = INTEGRATOR_CM(dev);
s->cm_osc = 0x01000048;
s->cm_auxosc = 0x0007feff;
s->cm_sdram = 0x00011122;
if (s->memsz >= 256) {
integrator_spd[31] = 64;
s->cm_sdram |= 0x10;
} else if (s->memsz >= 128) {
... | static int integratorcm_init(SysBusDevice *dev)
{
IntegratorCMState *s = INTEGRATOR_CM(dev);
s->cm_osc = 0x01000048;
s->cm_auxosc = 0x0007feff;
s->cm_sdram = 0x00011122;
if (s->memsz >= 256) {
integrator_spd[31] = 64;
s->cm_sdram |= 0x10;
} else if (s->memsz >= 128) {
... | null | null | null | qemu/commit/f8ed85ac992c48814d916d5df4d44f9a971c5de4 | Fix bad error handling after memory_region_init_ram()
Symptom:
$ qemu-system-x86_64 -m 10000000
Unexpected error in ram_block_add() at /work/armbru/qemu/exec.c:1456:
upstream-qemu: cannot set up guest memory 'pc.ram': Cannot allocate memory
Aborted (core dumped)
Root cause: commit ef701d7 screwed up ... | ./qemu/hw/arm/integratorcp.c | c | 2015-09-11T14:51:43Z |
@Override
public Promise<Users> searchUsers(Collection<String> usernames, int limit) {
return delegate.searchUsers(usernames, limit)
.then(matches -> {
// override roles
return new Users(
matches.stream().map(user -> new User(user.getUserId(), ADMINPARTY_ROLES)).collect(Collectors.toList()), ... | @Override
public Promise<Users> searchUsers(Collection<String> usernames, int limit) {
return delegate.searchUsers(usernames, limit)
.then(matches -> {
// override roles
return new Users(
matches.stream().map(user -> overrideUserRoles(user)).collect(Collectors.toList()),
matches.getLi... | null | null | null | https://github.com/b2ihealthcare/snow-owl/commit/64738e65057c8a06e7863c499229fcc15ea88f84 | fix(auth): ensure when authenticating through admin party wrapper...
...user gets admin privileges properly | core/com.b2international.snowowl.core/src/com/b2international/snowowl/core/identity/AdminPartyIdentityProvider.java | java | 2022-11-28T10:58:30Z |
private static void verifyPeerName(PGStream stream, Properties info, SSLSocket newConnection)
throws PSQLException {
HostnameVerifier hvn;
String sslhostnameverifier = PGProperty.SSL_HOSTNAME_VERIFIER.get(info);
if (sslhostnameverifier == null) {
hvn = PGjdbcHostnameVerifier.INSTANCE;
sslh... | private static void verifyPeerName(PGStream stream, Properties info, SSLSocket newConnection)
throws PSQLException {
HostnameVerifier hvn;
String sslhostnameverifier = PGProperty.SSL_HOSTNAME_VERIFIER.get(info);
if (sslhostnameverifier == null) {
hvn = PGjdbcHostnameVerifier.INSTANCE;
sslh... | CVE-2022-21724 | CWE-665 | pgjdbc is the offical PostgreSQL JDBC Driver. A security hole was found in the jdbc driver for postgresql database while doing security research. The system using the postgresql library will be attacked when attacker control the jdbc url or properties. pgjdbc instantiates plugin instances based on class names provided ... | https://github.com/pgjdbc/pgjdbc/commit/f4d0ed69c0b3aae8531d83d6af4c57f22312c813 | Merge pull request from GHSA-v7wg-cpwc-24m4
This ensures arbitrary classes can't be passed instead of
AuthenticationPlugin, SocketFactory, SSLSocketFactory, CallbackHandler, HostnameVerifier | LibPQFactory.java | java | 2022-02-02T12:15:00Z |
init_om(
XOM om)
{
XLCd lcd = om->core.lcd;
XOMGenericPart *gen = XOM_GENERIC(om);
OMData data;
XlcCharSet *charset_list;
FontData font_data;
char **required_list;
XOrientation *orientation;
char **value, buf[BUFSIZ], *bufptr;
int count = 0, num = 0, length = 0;
_XlcGetResou... | init_om(
XOM om)
{
XLCd lcd = om->core.lcd;
XOMGenericPart *gen = XOM_GENERIC(om);
OMData data;
XlcCharSet *charset_list;
FontData font_data;
char **required_list;
XOrientation *orientation;
char **value, buf[BUFSIZ], *bufptr;
int count = 0, num = 0;
unsigned int length = 0;
... | CVE-2020-14363 | CWE-190 | An integer overflow vulnerability leading to a double-free was found in libX11. This flaw allows a local privileged attacker to cause an application compiled with libX11 to crash, or in some cases, result in arbitrary code execution. The highest threat from this flaw is to confidentiality, integrity as well as system a... | https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/acdaaadcb3d85c61fd43669fc5dddf0f8c3f911d | Fix an integer overflow in init_om()
CVE-2020-14363
This can lead to a double free later, as reported by Jayden Rivers.
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> | omGeneric.c | c | null |
void do_ddiv (void)
{
if (T1 != 0) {
lldiv_t res = lldiv((int64_t)T0, (int64_t)T1);
env->LO[0][env->current_tc] = res.quot;
env->HI[0][env->current_tc] = res.rem;
}
} | void do_ddiv (void)
{
if (T1 != 0) {
int64_t arg0 = (int64_t)T0;
int64_t arg1 = (int64_t)T1;
if (arg0 == ((int64_t)-1 << 63) && arg1 == (int64_t)-1) {
env->LO[0][env->current_tc] = arg0;
env->HI[0][env->current_tc] = 0;
} else {
lldiv_t res = lldiv... | null | null | null | qemu/commit/306ab3e86a94b7547883ca9dac0c86122bb8622c | Avoid host FPE for overflowing division on MIPS, by Richard Sandiford.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3856 c046a42c-6fe2-441c-8c8c-71466251a162 | ./qemu/target-mips/op_helper.c | c | 2007-12-25T03:18:19Z |
TEST_F(OAuth2Test, OAuthBearerTokenFlowFromQueryParameters) {
Http::TestRequestHeaderMapImpl request_headers_before{
{Http::Headers::get().Path.get(), "/test?role=bearer&token=xyz-queryparam-token"},
{Http::Headers::get().Host.get(), "traffic.example.com"},
{Http::Headers::get().Method.get(), Http::... | TEST_F(OAuth2Test, OAuthBearerTokenFlowFromQueryParameters) {
Http::TestRequestHeaderMapImpl request_headers{
{Http::Headers::get().Path.get(), "/test?role=bearer&token=xyz-queryparam-token"},
{Http::Headers::get().Host.get(), "traffic.example.com"},
{Http::Headers::get().Method.get(), Http::Headers... | null | CWE-416 | null | https://github.com/envoyproxy/envoy/commit/7ffda4e809dec74449ebc330cebb9d2f4ab61360 | oauth2: do not blindly accept requests with a token in the Authorization headera (781)
The logic was broken because it assumed an additional call would be
performed to the auth server, which isn't the case. Per the filter
documentation, a request is only considered subsequently authenticated
if there's valid cookie th... | null | null | 2022-06-08T23:10:04Z |
static void qemu_laio_process_completion(struct qemu_laio_state *s,
struct qemu_laiocb *laiocb)
{
int ret;
s->count--;
ret = laiocb->ret;
if (ret != -ECANCELED) {
if (ret == laiocb->nbytes)
ret = 0;
else if (ret >= 0)
ret = -EINVAL;
laiocb->common.cb(l... | static void qemu_laio_process_completion(struct qemu_laio_state *s,
struct qemu_laiocb *laiocb)
{
int ret;
s->count--;
ret = laiocb->ret;
if (ret != -ECANCELED) {
if (ret == laiocb->nbytes) {
ret = 0;
} else if (ret >= 0) {
if (laiocb->is_read) {
... | null | null | null | qemu/commit/b161e2e4b32ac8fb9e6a891eba3da0b825b5d046 | linux-aio: Allow reads beyond the end of growable images
This is the linux-aio version of commits 22afa7b5 (raw-posix, synchronous) and
ba1d1afd (posix-aio-compat). Reads now produce zeros after the end of file
instead of failing or resulting in short reads, making linux-aio compatible
with the behaviour of synchronou... | ./qemu/linux-aio.c | c | 2011-10-13T13:42:52Z |
static int http1_on_error(http1_parser_s *parser) {
FIO_LOG_DEBUG("HTTP parser error at HTTP/1.1 buffer position %zu/%zu",
parser->state.next - parser2http(parser)->buf,
parser2http(parser)->buf_len);
fio_close(parser2http(parser)->p.uuid);
return -1;
} | static int http1_on_error(http1_parser_s *parser) {
if (parser2http(parser)->close)
return -1;
FIO_LOG_DEBUG("HTTP parser error.");
fio_close(parser2http(parser)->p.uuid);
return -1;
} | null | null | null | https://github.com/boazsegev/iodine/commit/5558233fb7defda706b4f9c87c17759705949889 | update to facil.io 0.7.3 | ext/iodine/http1.c | c | 2019-10-04T20:45:21Z |
int ParseDsdiffHeaderConfig (FILE *infile, char *infilename, char *fourcc, WavpackContext *wpc, WavpackConfig *config)
{
int64_t infilesize, total_samples;
DFFFileHeader dff_file_header;
DFFChunkHeader dff_chunk_header;
uint32_t bcount;
infilesize = DoGetFileSize (infile);
memcpy (&dff_file_hea... | int ParseDsdiffHeaderConfig (FILE *infile, char *infilename, char *fourcc, WavpackContext *wpc, WavpackConfig *config)
{
int64_t infilesize, total_samples;
DFFFileHeader dff_file_header;
DFFChunkHeader dff_chunk_header;
uint32_t bcount;
infilesize = DoGetFileSize (infile);
memcpy (&dff_file_hea... | null | CWE-125 | null | https://github.com/dbry/WavPack/commit/773f9d0803c6888ae7d5391878d7337f24216f4a | issue #110: sanitize DSD file types for invalid lengths | null | null | 2021-11-23T21:14:35Z |
TPMI_ALG_SYM_Unmarshal(TPMI_ALG_SYM *target, BYTE **buffer, INT32 *size, BOOL allowNull)
{
TPM_RC rc = TPM_RC_SUCCESS;
if (rc == TPM_RC_SUCCESS) {
rc = TPM_ALG_ID_Unmarshal(target, buffer, size);
}
if (rc == TPM_RC_SUCCESS) {
switch (*target) {
#if ALG_AES
case TPM_ALG_AES:
#endif
#if ALG_SM4
... | TPMI_ALG_SYM_Unmarshal(TPMI_ALG_SYM *target, BYTE **buffer, INT32 *size, BOOL allowNull)
{
TPM_RC rc = TPM_RC_SUCCESS;
TPMI_ALG_SYM orig_target = *target; // libtpms added
if (rc == TPM_RC_SUCCESS) {
rc = TPM_ALG_ID_Unmarshal(target, buffer, size);
}
if (rc == TPM_RC_SUCCESS) {
switch (*target)... | null | CWE-787 | null | https://github.com/stefanberger/libtpms/commit/5cc98a62dc6f204dcf5b87c2ee83ac742a6a319b | tpm2: Restore original value if unmarshalled value was illegal
Restore the original value of the memory location where data from
a stream was unmarshalled and the unmarshalled value was found to
be illegal. The goal is to not keep illegal values in memory.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> | null | null | 2021-06-24T00:54:44Z |
def all_deposits(self,coin):
sql = "SELECT * FROM deposits WHERE coin='%s'" % coin
self.cursor.execute(sql)
return self.cursor.fetchall() | def all_deposits(self,coin):
sql = "SELECT * FROM deposits WHERE coin='%s'"
self.cursor.execute(sql, (coin,))
return self.cursor.fetchall() | null | cwe-089 | null | github.com/ktechmidas/garlictipsbot/commit/7c262255f933cb721109ac4be752b5b7599275aa | null | deposit.py | py | 2018-02-17T07:38:57Z |
ldp_tlv_print(netdissect_options *ndo,
register const u_char *tptr,
u_short msg_tlen)
{
struct ldp_tlv_header {
uint8_t type[2];
uint8_t length[2];
};
const struct ldp_tlv_header *ldp_tlv_header;
u_short tlv_type,tlv_len,tlv_tlen,af,ft_flags;
u_char fec_t... | ldp_tlv_print(netdissect_options *ndo,
register const u_char *tptr,
u_short msg_tlen)
{
struct ldp_tlv_header {
uint8_t type[2];
uint8_t length[2];
};
const struct ldp_tlv_header *ldp_tlv_header;
u_short tlv_type,tlv_len,tlv_tlen,af,ft_flags;
u_char fec_t... | CVE-2018-14461 | CWE-125 | The LDP parser in tcpdump before 4.9.3 has a buffer over-read in print-ldp.c:ldp_tlv_print(). | https://github.com/the-tcpdump-group/tcpdump/commit/aa5c6b710dfd8020d2c908d6b3bd41f1da719b3b | (for 4.9.3) CVE-2018-14461/LDP: Fix a bounds check
In ldp_tlv_print(), the FT Session TLV length must be 12, not 8 (RFC3479)
This fixes a buffer over-read discovered by Konrad Rieck and
Bhargava Shastry.
Add a test using the capture file supplied by the reporter(s).
Moreover:
Add and use tstr[].
Add a comment. | print-ldp.c | c | 2017-10-08T09:49:24Z |
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// Setting IpAddress To Log and taking header for original IP if forwarded from proxy
ShepherdLogManager.setRequestIp(request.getRemoteAddr(), request.getHeader("X-Forwarded-For"));
Http... | public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// Setting IpAddress To Log and taking header for original IP if forwarded from proxy
ShepherdLogManager.setRequestIp(request.getRemoteAddr(), request.getHeader("X-Forwarded-For"));
Http... | null | null | null | https://github.com/OWASP/SecurityShepherd/commit/14ba710720d3dc93493cb36a348b953e447cfb55 | final revert of mysql -> mariadb | src/main/java/servlets/module/challenge/DirectObjectBankTransfer.java | java | 2022-05-16T10:53:11Z |
static inline int mov_stsc_index_valid(int index, int count)
{
return index + 1 < count;
} | static inline int mov_stsc_index_valid(unsigned int index, unsigned int count)
{
return index < count - 1;
} | null | null | null | FFmpeg/commit/53ea595eec984e3109310e8bb7ff4b5786d91057 | mov: Rework stsc index validation
In order to avoid potential integer overflow change the comparison
and make sure to use the same unsigned type for both elements. | ./ffmpeg/libavformat/mov.c | c | 2017-02-03T12:05:27Z |
[HttpPost("login")]
public async Task<ActionResult<UserDto>> Login(LoginDto loginDto)
{
var user = await _userManager.Users
.Include(u => u.UserPreferences)
.SingleOrDefaultAsync(x => x.NormalizedUserName == loginDto.Username.ToUpper());
if (user ... | [AllowAnonymous]
[HttpPost("login")]
public async Task<ActionResult<UserDto>> Login(LoginDto loginDto)
{
var user = await _userManager.Users
.Include(u => u.UserPreferences)
.SingleOrDefaultAsync(x => x.NormalizedUserName == loginDto.Username.ToUpper()... | null | null | null | https://github.com/kareadita/kavita/commit/9c31f7e7c81b919923cb2e3857439ec0d16243e4 | v0.5.4.1 - Security Hotfix (#1414)
* Updated our security file with our Huntr.
* Fixed a security vulnerability where through the API, an unauthorized user could delete/modify reading lists that did not belong to them.
Fixed a bug where when creating a reading list with the name of another users, the API would throw... | API/Controllers/AccountController.cs | cs | 2022-08-08T20:22:38Z |
private void planPartial(@Nonnull PlanContext context, @Nonnull Supplier<RelationalExpression> expressionSupplier) {
currentRoot = GroupExpressionRef.of(expressionSupplier.get());
aliasResolver = AliasResolver.withRoot(currentRoot);
Debugger.withDebugger(debugger -> PlannerGraphProperty.show(tru... | private void planPartial(@Nonnull PlanContext context, @Nonnull Supplier<RelationalExpression> expressionSupplier) {
currentRoot = GroupExpressionRef.of(expressionSupplier.get());
aliasResolver = AliasResolver.withRoot(currentRoot);
Debugger.withDebugger(debugger -> PlannerGraphProperty.show(tru... | null | null | null | https://github.com/FoundationDB/fdb-record-layer/commit/74e927c14364e9494dcae2423680982aedcbbc3c | Resolve #1126 - prepare for cascades planner use
- Add configuration settings for planner
- Protect from queue overflow and infinite loop | fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/query/plan/temp/CascadesPlanner.java | java | 2021-02-16T16:25:14Z |
def _cors_headers(self, environ):
"""Return the cross-origin-resource-sharing headers."""
if isinstance(self.cors_allowed_origins, six.string_types):
if self.cors_allowed_origins == '*':
allowed_origins = None
else:
allowed_origins = [self.cors_all... | def _cors_headers(self, environ):
"""Return the cross-origin-resource-sharing headers."""
headers = []
allowed_origins = self._cors_allowed_origins(environ)
if allowed_origins is None or ('HTTP_ORIGIN' in environ and \
environ['HTTP_ORIGIN'] in allowed_origins):
... | null | null | null | https://github.com/miguelgrinberg/python-engineio/commit/b316510739d41aac79f5a1c674f7375a321178e0 | Address potential websocket cross-origin attacks (Fixes #128) | engineio/server.py | py | 2019-07-28T23:09:26Z |
def update_theory_base(tag, link):
theory = sqlite3.connect(os.path.abspath(os.path.dirname(__file__)) + "\\theory.db")
conn = theory.cursor()
conn.execute("insert into " + str(tag) + " values (?)", (str(link), ))
theory.commit()
theory.close() | def update_theory_base(tag, link):
theory = sqlite3.connect(os.path.abspath(os.path.dirname(__file__)) + "\\theory.db")
conn = theory.cursor()
conn.execute("insert into ? values (?)", (tag, str(link)))
theory.commit()
theory.close() | null | cwe-089 | null | github.com/lissrbay/codeforces_bot/commit/cc7f5143445a0030b1149ac60a65b1b1b9c92a90 | null | bases/update.py | py | 2018-01-02T02:07:43Z |
char **XListExtensions(
register Display *dpy,
int *nextensions) /* RETURN */
{
xListExtensionsReply rep;
char **list = NULL;
char *ch = NULL;
char *chend;
int count = 0;
register unsigned i;
register int length;
_X_UNUSED register xReq *req;
unsigned long rlen = 0;
LockDisplay(dpy);
GetEmptyReq (Li... | char **XListExtensions(
register Display *dpy,
int *nextensions) /* RETURN */
{
xListExtensionsReply rep;
char **list = NULL;
char *ch = NULL;
char *chend;
int count = 0;
register unsigned i;
register int length;
_X_UNUSED register xReq *req;
unsigned long rlen = 0;
LockDisplay(dpy);
GetEmptyReq (Li... | CVE-2018-14599 | CWE-682 | An issue was discovered in libX11 through 1.6.5. The function XListExtensions in ListExt.c is vulnerable to an off-by-one error caused by malicious server responses, leading to DoS or possibly unspecified other impact. | https://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=b469da1430cdcee06e31c6251b83aede072a1ff0 | Fixed off-by-one writes (CVE-2018-14599).
The functions XGetFontPath, XListExtensions, and XListFonts are
vulnerable to an off-by-one override on malicious server responses.
The server replies consist of chunks consisting of a length byte
followed by actual string, which is not NUL-terminated.
While parsing the resp... | null | null | null |
int main(int argc, char *argv[]) {
struct mschm_decompressor *chmd;
struct mschmd_header *chm;
struct mschmd_file *file, **f;
unsigned int numf, i;
setbuf(stdout, NULL);
setbuf(stderr, NULL);
user_umask = umask(0); umask(user_umask);
MSPACK_SYS_SELFTEST(i);
if (i) return 0;
if ((chmd = mspack_cre... | int main(int argc, char *argv[]) {
struct mschm_decompressor *chmd;
struct mschmd_header *chm;
struct mschmd_file *file, **f;
unsigned int numf, i;
setbuf(stdout, NULL);
setbuf(stderr, NULL);
user_umask = umask(0); umask(user_umask);
MSPACK_SYS_SELFTEST(i);
if (i) return 0;
if ((chmd = mspack_cre... | CVE-2018-18586 | CWE-22 | chmextract.c in the chmextract sample program, as distributed with libmspack before 0.8alpha, does not protect against absolute/relative pathnames in CHM files, leading to Directory Traversal. NOTE: the vendor disputes that this is a libmspack vulnerability, because chmextract.c was only intended as a source-code examp... | https://github.com/kyz/libmspack/commit/7cadd489698be117c47efcadd742651594429e6d | add anti "../" and leading slash protection to chmextract | null | null | 2018-10-20T18:06:32Z |
title: 'identifier: ' + formElement.get('identifier') + ' (type: ' + formElement.get('type') + ')',
placement: 'right'
});
} else if (
!getFormElementDefinition(formElement, '_isTopLevelFormElement')
&& !getFormElementDefinition(formElement, '_isCompositeFormElement')
... | title: 'identifier: ' + formElement.get('identifier') + ' (type: ' + formElement.get('type') + ')',
placement: 'right'
});
} else if (
!getFormElementDefinition(formElement, '_isTopLevelFormElement')
&& !getFormElementDefinition(formElement, '_isCompositeFormElement')
... | CVE-2022-31048 | CWE-79 | TYPO3 is an open source web content management system. Prior to versions 8.7.47 ELTS, 9.5.34 ELTS, 10.4.29, and 11.5.11, the Form Designer backend module of the Form Framework is vulnerable to cross-site scripting. A valid backend user account with access to the form module is needed to exploit this vulnerability. TYPO... | https://github.com/TYPO3/typo3/commit/6f2554dc4ea0b670fd5599c54fd788d4db96c4a0 | [SECURITY] Ensure text preview of multivalue items in form editor
Multivalue items in the form editor user interface were previewed
as HTML, but should be treated as scalar text only.
Resolves: #96743
Releases: main, 11.5, 10.4
Change-Id: I5e8dab26119490ecf19ac5d48c2bc7a5a00daaad
Security-Bulletin: TYPO3-CORE-SA-2022... | stage-component.js | js | 2022-06-14T21:15:00Z |
exports.basicAuth = function (req, res, next) {
var hookResultMangle = function (cb) {
return function (err, data) {
return cb(!err && data.length && data[0]);
}
}
var authorize = function (cb) {
// Do not require auth for static paths and the API...this could be a bit brittle
if (req.path.... | exports.basicAuth = function (req, res, next) {
var hookResultMangle = function (cb) {
return function (err, data) {
return cb(!err && data.length && data[0]);
}
}
var authorize = function (cb) {
// Do not require auth for static paths and the API...this could be a bit brittle
if (req.path.... | CVE-2018-9845 | CWE-178 | Etherpad Lite before 1.6.4 is exploitable for admin access. | https://github.com/ether/etherpad-lite/commit/ffe24c3dd93efc73e0cbf924db9a0cc40be9511b | Update webaccess.js | webaccess.js | js | 2018-04-29T18:29:00Z |
static ssize_t tulip_receive(TULIPState *s, const uint8_t *buf, size_t size)
{
struct tulip_descriptor desc;
trace_tulip_receive(buf, size);
if (size < 14 || size > 2048 || s->rx_frame_len || tulip_rx_stopped(s)) {
return 0;
}
if (!tulip_filter_address(s, buf)) {
return size;
... | static ssize_t tulip_receive(TULIPState *s, const uint8_t *buf, size_t size)
{
struct tulip_descriptor desc;
trace_tulip_receive(buf, size);
if (size < 14 || size > sizeof(s->rx_frame) - 4
|| s->rx_frame_len || tulip_rx_stopped(s)) {
return 0;
}
if (!tulip_filter_address(s, buf)) ... | CVE-2020-11102 | CWE-787 | hw/net/tulip.c in QEMU 4.2.0 has a buffer overflow during the copying of tx/rx buffers because the frame size is not validated against the r/w data length. | https://git.qemu.org/?p=qemu.git;a=commit;h=8ffb7265af64ec81748335ec8f20e7ab542c3850 | net: tulip: check frame size and r/w data length
Tulip network driver while copying tx/rx buffers does not check
frame size against r/w data length. This may lead to OOB buffer
access. Add check to avoid it.
Limit iterations over descriptors to avoid potential infinite
loop issue in tulip_xmit_list_update.
Reported-... | null | null | null |
int ff_socket(int af, int type, int proto)
{
int fd;
#ifdef SOCK_CLOEXEC
fd = socket(af, type | SOCK_CLOEXEC, proto);
if (fd == -1 && errno == EINVAL)
#endif
{
fd = socket(af, type, proto);
#if HAVE_FCNTL
if (fd != -1)
fcntl(fd, F_SETFD, FD_CLOEXEC);
#endif
}
return f... | int ff_socket(int af, int type, int proto)
{
int fd;
#ifdef SOCK_CLOEXEC
fd = socket(af, type | SOCK_CLOEXEC, proto);
if (fd == -1 && errno == EINVAL)
#endif
{
fd = socket(af, type, proto);
#if HAVE_FCNTL
if (fd != -1) {
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
... | null | null | null | FFmpeg/commit/baab248c499a7689aefb5f2e9c004338deb08d74 | avformat/network: check for fcntl() failure in ff_socket()
Fixes: CID1087075
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | ./ffmpeg/libavformat/network.c | c | 2013-10-20T14:34:32Z |
addLinkHtml: function (id, name) {
if (this.mode == 'search') {
return Dep.prototype.addLinkHtml.call(this, id, name);
}
var $container = this.$el.find('.link-container');
var $el = $('<div class="form-inline list-group-item link-with-role clearfix link-g... | addLinkHtml: function (id, name) {
if (this.mode == 'search') {
return Dep.prototype.addLinkHtml.call(this, id, name);
}
var $container = this.$el.find('.link-container');
var $el = $('<div class="form-inline list-group-item link-with-role clearfix link-g... | CVE-2019-14329 | CWE-79 | An issue was discovered in EspoCRM before 5.6.6. There is stored XSS due to lack of filtration of user-supplied data in Create Task. A malicious attacker can modify the parameter name to contain JavaScript code. | https://github.com/espocrm/espocrm/commit/4ab7d19776011288b875abd3eef1e1f6f75289e2 | xss fixes | create-related.js | js | 2019-07-28T14:15:00Z |
Graph.sanitizeHtml=function(b,e){return DOMPurify.sanitize(b,{ADD_ATTR:["target"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|callto|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i})};Graph.sanitizeSvg=function(b){return DOMPurify.sanitize(b,{IN_PLACE:!0})}; | Graph.sanitizeHtml=function(a,c){return Graph.domPurify(a,!1)};Graph.sanitizeLink=function(a){var c=document.createElement("a");c.setAttribute("href",a);Graph.sanitizeNode(c);return c.getAttribute("href")};Graph.sanitizeNode=function(a){return Graph.domPurify(a,!0)};Graph.domPurify=function(a,c){return DOMPurify.saniti... | CVE-2022-1723 | CWE-918,CWE-918 | Server-Side Request Forgery (SSRF) in GitHub repository jgraph/drawio prior to 18.0.6. | https://github.com/jgraph/drawio/commit/7a68ebe22a64fe722704e9c4527791209fee2034 | 18.0.6 release | app.min.js | js | 2022-05-17T09:15:00Z |
long do_rt_sigreturn(CPUPPCState *env)
{
struct target_rt_sigframe *rt_sf = NULL;
target_ulong rt_sf_addr;
rt_sf_addr = env->gpr[1] + SIGNAL_FRAMESIZE + 16;
if (!lock_user_struct(VERIFY_READ, rt_sf, rt_sf_addr, 1))
goto sigsegv;
if (do_setcontext(&rt_sf->uc, env, 1))
goto sigsegv;
... | long do_rt_sigreturn(CPUPPCState *env)
{
struct target_rt_sigframe *rt_sf = NULL;
target_ulong rt_sf_addr;
rt_sf_addr = env->gpr[1] + SIGNAL_FRAMESIZE + 16;
if (!lock_user_struct(VERIFY_READ, rt_sf, rt_sf_addr, 1))
goto sigsegv;
if (do_setcontext(&rt_sf->uc, env, 1))
goto sigsegv;
... | null | null | null | qemu/commit/c599d4d6d6e9bfdb64e54c33a22cb26e3496b96d | linux-user: SIGSEGV from sigreturn need not be fatal
If the sigreturn syscall fails to read memory then this causes a
SIGSEGV, but this is not necessarily a fatal signal -- the guest
process can catch it.
We don't implement this correctly because the behaviour of QEMU's
force_sig() function has drifted away from the ... | ./qemu/linux-user/signal.c | c | 2016-07-28T15:44:49Z |
static bool parse_notify(struct pool *pool, json_t *val)
{
char *job_id, *prev_hash, *coinbase1, *coinbase2, *bbversion, *nbit,
*ntime, header[228];
unsigned char *cb1 = NULL, *cb2 = NULL;
size_t cb1_len, cb2_len, alloc_len;
bool clean, ret = false;
int merkles, i;
json_t *arr;
arr = json_array_get(val, 4... | static bool parse_notify(struct pool *pool, json_t *val)
{
char *job_id, *prev_hash, *coinbase1, *coinbase2, *bbversion, *nbit,
*ntime, header[228];
unsigned char *cb1 = NULL, *cb2 = NULL;
size_t cb1_len, cb2_len, alloc_len;
bool clean, ret = false;
int merkles, i;
json_t *arr;
arr = json_array_get(val, 4... | CVE-2014-4502 | CWE-119 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | util.c | c | 2014-06-10T01:36:22Z |
@Override
protected boolean computeValue() {
if (txtUsername != null && !txtUsername.validate())
return false;
if (txtPassword != null && !txtPassword.validate())
return false;
if (txtUUID != null... | @Override
protected boolean computeValue() {
if (cboServers != null && cboServers.getValue() == null)
return false;
if (txtUsername != null && !txtUsername.validate())
return false;
if (txtPasswor... | null | null | null | https://github.com/HMCL-dev/HMCL/commit/2ad3e7a29152d051414c216bd4919d966dc21dcd | fix(account): Authlib-Injector server may be unknown when in CreateAcountPane tab mode. | HMCL/src/main/java/org/jackhuang/hmcl/ui/account/CreateAccountPane.java | java | 2022-08-21T13:26:20Z |
@Override
public void checkIntegrity() throws QueryProcessException {
for (InsertTabletPlan insertTabletPlan : insertTabletPlanList) {
insertTabletPlan.checkIntegrity();
}
} | @Override
public void checkIntegrity() throws QueryProcessException {
if (insertTabletPlanList.isEmpty()) {
throw new QueryProcessException("sub tablet is empty.");
}
for (InsertTabletPlan insertTabletPlan : insertTabletPlanList) {
insertTabletPlan.checkIntegrity();
}
} | null | null | null | https://github.com/apache/iotdb/commit/b2986cc60ac157883c485b836e8fb32b76bdaae8 | [Distributed]fix stackoverflow when parse plan failed (#2953) | server/src/main/java/org/apache/iotdb/db/qp/physical/crud/InsertMultiTabletPlan.java | java | 2021-04-01T08:55:01Z |
bool is_item_tree_change_register_required()
{
return !stmt_arena->is_conventional()
|| stmt_arena->type() == Query_arena::TABLE_ARENA;
} | bool is_item_tree_change_register_required()
{
return !stmt_arena->is_conventional();
} | CVE-2022-27377 | CWE-416 | MariaDB Server v10.6.3 and below was discovered to contain an use-after-free in the component Item_func_in::cleanup(), which is exploited via specially crafted SQL statements. | https://github.com/MariaDB/server/commit/4681b6f2d8c82b4ec5cf115e83698251963d80d5 | MDEV-26281 ASAN use-after-poison when complex conversion is involved in blob
the bug was that in_vector array in Item_func_in was allocated in the
statement arena, not in the table->expr_arena.
revert part of the 5acd391e8b2d. Instead, change the arena correctly
in fix_all_session_vcol_exprs().
Remove TABLE_ARENA, t... | null | null | 2022-04-14T19:45:20Z |
static Image *ReadTIFFImage(const ImageInfo *image_info,
ExceptionInfo *exception)
{
const char
*option;
float
*chromaticity,
x_position,
y_position,
x_resolution,
y_resolution;
Image
*image;
int
tiff_status;
MagickBooleanType
status;
MagickSizeType
number_pixe... | static Image *ReadTIFFImage(const ImageInfo *image_info,
ExceptionInfo *exception)
{
const char
*option;
float
*chromaticity,
x_position,
y_position,
x_resolution,
y_resolution;
Image
*image;
int
tiff_status;
MagickBooleanType
status;
MagickSizeType
number_pixe... | CVE-2016-10064 | CWE-119 | Buffer overflow in coders/tiff.c in ImageMagick before 6.9.5-1 allows remote attackers to cause a denial of service (application crash) or have other unspecified impact via a crafted file. | https://github.com/ImageMagick/ImageMagick/commit/f8877abac8e568b2f339cca70c2c3c1b6eaec288 | null | null | null | null |
static void lm32_cpu_class_init(ObjectClass *oc, void *data)
{
LM32CPUClass *lcc = LM32_CPU_CLASS(oc);
CPUClass *cc = CPU_CLASS(oc);
DeviceClass *dc = DEVICE_CLASS(oc);
lcc->parent_realize = dc->realize;
dc->realize = lm32_cpu_realizefn;
lcc->parent_reset = cc->reset;
cc->reset = lm32_cpu_re... | static void lm32_cpu_class_init(ObjectClass *oc, void *data)
{
LM32CPUClass *lcc = LM32_CPU_CLASS(oc);
CPUClass *cc = CPU_CLASS(oc);
DeviceClass *dc = DEVICE_CLASS(oc);
lcc->parent_realize = dc->realize;
dc->realize = lm32_cpu_realizefn;
lcc->parent_reset = cc->reset;
cc->reset = lm32_cpu_re... | null | null | null | qemu/commit/4c315c27661502a0813b129e41c0bf640c34a8d6 | qdev: Protect device-list-properties against broken devices
Several devices don't survive object_unref(object_new(T)): they crash
or hang during cleanup, or they leave dangling pointers behind.
This breaks at least device-list-properties, because
qmp_device_list_properties() needs to create a device to find its
prope... | ./qemu/target-lm32/cpu.c | c | 2015-10-01T08:59:58Z |
public String getApiToken() {
return Util.getDigestOf(apiToken.getPlainText());
} | public String getApiToken() {
String p = apiToken.getPlainText();
if (p.equals(Util.getDigestOf(Jenkins.getInstance().getSecretKey()+":"+user.getId()))) {
// if the current token is the initial value created by pre SECURITY-49 Jenkins, we can't use that.
// force using the newer ... | CVE-2013-0158 | NVD-CWE-noinfo | Unspecified vulnerability in Jenkins before 1.498, Jenkins LTS before 1.480.2, and Jenkins Enterprise 1.447.x before 1.447.6.1 and 1.466.x before 1.466.12.1, when a slave is attached and anonymous read access is enabled, allows remote attackers to obtain the master cryptographic key via unknown vectors. | https://github.com/jenkinsci/jenkins/commit/94a8789b699132dd706021a6be1b78bc47f19602 | [SECURITY-49] actively invalidate bad API tokens.
If the user still has the API token that's generated from secret.key,
don't accept that.
Hopefully this is the last fix | ApiTokenProperty.java | java | 2013-02-24T22:55:00Z |
static int convert_sub_to_old_ass_form(AVSubtitle *sub, const AVPacket *pkt, AVRational tb)
{
int i;
AVBPrint buf;
av_bprint_init(&buf, 0, AV_BPRINT_SIZE_UNLIMITED);
for (i = 0; i < sub->num_rects; i++) {
char *final_dialog;
const char *dialog;
AVSubtitleRect *rect = sub->rects[i... | static int convert_sub_to_old_ass_form(AVSubtitle *sub, const AVPacket *pkt, AVRational tb)
{
int i;
AVBPrint buf;
av_bprint_init(&buf, 0, AV_BPRINT_SIZE_UNLIMITED);
for (i = 0; i < sub->num_rects; i++) {
char *final_dialog;
const char *dialog;
AVSubtitleRect *rect = sub->rects[i... | null | null | null | FFmpeg/commit/2b7a61cbd8ae134f839c4347a4c289e1e11475a3 | lavc/utils: fix extra ASS sanity check in convert_sub_to_old_ass_form() | ./ffmpeg/libavcodec/utils.c | c | 2016-03-07T20:47:47Z |
static MagickBooleanType WritePICONImage(const ImageInfo *image_info,
Image *image)
{
#define ColormapExtent 155
#define GraymapExtent 95
#define PiconGeometry "48x48>"
static unsigned char
Colormap[]=
{
0x47, 0x49, 0x46, 0x38, 0x37, 0x61, 0x06, 0x00, 0x05, 0x00, 0xf4, 0x05,
0x00, 0x00, 0x00... | static MagickBooleanType WritePICONImage(const ImageInfo *image_info,
Image *image)
{
#define ColormapExtent 155
#define GraymapExtent 95
#define PiconGeometry "48x48>"
static unsigned char
Colormap[]=
{
0x47, 0x49, 0x46, 0x38, 0x37, 0x61, 0x06, 0x00, 0x05, 0x00, 0xf4, 0x05,
0x00, 0x00, 0x00... | null | null | null | https://github.com/ImageMagick/ImageMagick/commit/b04e9c949d917a4a603f1a9bfe09737246229323 | https://github.com/ImageMagick/ImageMagick/issues/631 | coders/xpm.c | c | 2017-07-30T10:06:33Z |
@Override
public void nextGroup() {
int position = mBinding.group.getSelectedPosition() + 1;
if (position > mGroupAdapter.size() - 1) position = 0;
mGroup = (Group) mGroupAdapter.get(position);
mBinding.group.setSelectedPosition(position);
mChannelAdapter.setItems(mGroup.getC... | @Override
public boolean nextGroup() {
int position = mBinding.group.getSelectedPosition() + 1;
if (position > mGroupAdapter.size() - 1) position = 0;
mGroup = (Group) mGroupAdapter.get(position);
mBinding.group.setSelectedPosition(position);
if (mGroup.getChannel().isEmpty()... | null | null | null | https://github.com/FongMi/TV/commit/9613bf83dc56add3cd7fad31ed2bfc36d22cba7a | Fix crash bug | app/src/leanback/java/com/fongmi/android/tv/ui/activity/LiveActivity.java | java | 2022-10-31T03:31:05Z |
static void CopyTransportDIBHandleForMessage(
const TransportDIB::Handle& handle_in,
TransportDIB::Handle* handle_out) {
#if defined(OS_MACOSX)
if ((handle_out->fd = HANDLE_EINTR(dup(handle_in.fd))) < 0) {
PLOG(ERROR) << "dup()";
return;
}
handle_out->auto_close = true;
#else
*handle_out ... | static void CopyTransportDIBHandleForMessage(
const TransportDIB::Handle& handle_in,
TransportDIB::Handle* handle_out,
base::ProcessId peer_pid) {
#if defined(OS_MACOSX)
if ((handle_out->fd = HANDLE_EINTR(dup(handle_in.fd))) < 0) {
PLOG(ERROR) << "dup()";
return;
}
handle_out->auto_close ... | CVE-2012-2816 | NVD-CWE-noinfo | Google Chrome before 20.0.1132.43 on Windows does not properly isolate sandboxed processes, which might allow remote attackers to cause a denial of service (process interference) via unspecified vectors. | https://github.com/chromium/chromium/commit/cd0bd79d6ebdb72183e6f0833673464cc10b3600 | Convert plugin and GPU process to brokered handle duplication.
BUG=119250
Review URL: https://chromiumcodereview.appspot.com/9958034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132303 0039d316-1c4b-4281-b951-d872f2087c98 | content/renderer/webplugin_delegate_proxy.cc | cc | 2012-04-14T00:52:16Z |
static int xan_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
XanContext *s = avctx->priv_data;
int ftype;
int ret;
s->pic.reference = 1;
s->pic.buffer_hints = FF_BUFFER_HINTS_VALID |
... | static int xan_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
XanContext *s = avctx->priv_data;
int ftype;
int ret;
s->pic.reference = 1;
s->pic.buffer_hints = FF_BUFFER_HINTS_VALID |
... | null | null | null | FFmpeg/commit/55188278169c3a1838334d7aa47a1f7a40741690 | xxan: convert to bytestream2 API.
Protects against overreads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org | ./ffmpeg/libavcodec/xxan.c | c | 2012-03-09T00:32:47Z |
DLLEXPORT int tjCompress2(tjhandle handle, const unsigned char *srcBuf,
int width, int pitch, int height, int pixelFormat,
unsigned char **jpegBuf, unsigned long *jpegSize,
int jpegSubsamp, int jpegQual, int flags)
{
int i, retval = 0, allo... | DLLEXPORT int tjCompress2(tjhandle handle, const unsigned char *srcBuf,
int width, int pitch, int height, int pixelFormat,
unsigned char **jpegBuf, unsigned long *jpegSize,
int jpegSubsamp, int jpegQual, int flags)
{
int i, retval = 0, allo... | CVE-2019-2201 | CWE-787 | In generate_jsimd_ycc_rgb_convert_neon of jsimd_arm64_neon.S, there is a possible out of bounds write due to a missing bounds check. This could lead to remote code execution in an unprivileged process with no additional execution privileges needed. User interaction is needed for exploitation.Product: AndroidVersions: A... | https://github.com/libjpeg-turbo/libjpeg-turbo/commit/2a9e3bd7430cfda1bc812d139e0609c6aca0b884 | TurboJPEG: Properly handle gigapixel images
Prevent several integer overflow issues and subsequent segfaults that
occurred when attempting to compress or decompress gigapixel images with
the TurboJPEG API:
- Modify tjBufSize(), tjBufSizeYUV2(), and tjPlaneSizeYUV() to avoid
integer overflow when computing the retur... | null | null | 2019-07-11T20:30:04Z |
static void vnc_dpy_update(DisplayChangeListener *dcl,
DisplayState *ds,
int x, int y, int w, int h)
{
int i;
VncDisplay *vd = ds->opaque;
struct VncSurface *s = &vd->guest;
int width = ds_get_width(ds);
int height = ds_get_height(ds);
h += y... | static void vnc_dpy_update(DisplayChangeListener *dcl,
DisplayState *ds,
int x, int y, int w, int h)
{
int i;
VncDisplay *vd = container_of(dcl, VncDisplay, dcl);
struct VncSurface *s = &vd->guest;
int width = ds_get_width(ds);
int height = ds_ge... | null | null | null | qemu/commit/21ef45d71221b4577330fe3aacfb06afad91ad46 | console: kill DisplayState->opaque
It's broken by design. There can be multiple DisplayChangeListener
instances, so they simply can't store state in the (single) DisplayState
struct. Try 'qemu -display gtk -vnc :0', watch it crash & burn.
With DisplayChangeListenerOps having a more sane interface now we can
simply ... | ./qemu/ui/vnc.c | c | 2013-02-28T10:34:31Z |
function attachToBody (options, req, reply, next) {
if (req.raw[kMultipart] !== true) {
next()
return
}
const consumerStream = options.onFile || defaultConsumer
const body = {}
const mp = req.multipart((field, file, filename, encoding, mimetype) => {
body[field] = body[field] || []
body[field... | function attachToBody (options, req, reply, next) {
if (req.raw[kMultipart] !== true) {
next()
return
}
const consumerStream = options.onFile || defaultConsumer
const body = {}
const mp = req.multipart((field, file, filename, encoding, mimetype) => {
body[field] = body[field] || []
body[field... | CVE-2021-23597 | CWE-1321 | This affects the package fastify-multipart before 5.3.1. By providing a name=constructor property it is still possible to crash the application. **Note:** This is a bypass of CVE-2020-8136 (https://security.snyk.io/vuln/SNYK-JS-FASTIFYMULTIPART-1290382). | https://github.com/fastify/fastify-multipart/commit/a70dc7059a794589bd4fe066453141fc609e6066 | Merge pull request from GHSA-qh73-qc3p-rjv2 | index.js | js | 2022-02-11T17:15:00Z |
int xt_check_entry_offsets(const void *base,
unsigned int target_offset,
unsigned int next_offset)
{
const struct xt_entry_target *t;
const char *e = base;
if (target_offset + sizeof(*t) > next_offset)
return -EINVAL;
t = (void *)(e + target_offset);
if (t->u.target_size < sizeof(*t))
re... | int xt_check_entry_offsets(const void *base,
const char *elems,
unsigned int target_offset,
unsigned int next_offset)
{
long size_of_base_struct = elems - (const char *)base;
const struct xt_entry_target *t;
const char *e = base;
/* target start is within the ip/ip6/arpt_entry struct */
if... | CVE-2016-4997 | CWE-264 | The compat IPT_SO_SET_REPLACE and IP6T_SO_SET_REPLACE setsockopt implementations in the netfilter subsystem in the Linux kernel before 4.6.3 allow local users to gain privileges or cause a denial of service (memory corruption) by leveraging in-container root access to provide a crafted offset value that triggers an uni... | https://github.com/torvalds/linux/commit/ce683e5f9d045e5d67d1312a42b359cb2ab2a13c | netfilter: x_tables: check for bogus target offset
We're currently asserting that targetoff + targetsize <= nextoff.
Extend it to also check that targetoff is >= sizeof(xt_entry).
Since this is generic code, add an argument pointing to the start of the
match/target, we can then derive the base structure size from the... | net/netfilter/x_tables.c | c | 2016-04-01T12:17:28Z |
static Image *ReadWEBPImage(const ImageInfo *image_info,
ExceptionInfo *exception)
{
Image
*image;
int
webp_status;
MagickBooleanType
status;
register unsigned char
*p;
size_t
length;
ssize_t
count,
y;
unsigned char
header[12],
*stream;
WebPDecoderConfig
... | static Image *ReadWEBPImage(const ImageInfo *image_info,
ExceptionInfo *exception)
{
Image
*image;
int
webp_status;
MagickBooleanType
status;
register unsigned char
*p;
size_t
length;
ssize_t
count,
y;
unsigned char
header[12],
*stream;
WebPDecoderConfig
... | null | null | null | https://github.com/ImageMagick/ImageMagick/commit/13f4cbc6ed5e01a78d179f5be0032ed560adfb1a | https://github.com/ImageMagick/ImageMagick/issues/639 | coders/webp.c | c | 2017-08-01T23:55:32Z |
@SubscribeEvent
public static void tick(TickEvent.ClientTickEvent event) {
if (!Backend.isGameActive() || event.phase == TickEvent.Phase.START) {
return;
}
Minecraft mc = Minecraft.getInstance();
ClientLevel world = mc.level;
AnimationTickHolder.tick();
instanceWorlds.get(world).tick();
} | @SubscribeEvent
public static void tick(TickEvent.ClientTickEvent event) {
if (!Backend.isGameActive() || event.phase == TickEvent.Phase.START) {
return;
}
Minecraft mc = Minecraft.getInstance();
ClientLevel world = mc.level;
AnimationTickHolder.tick();
if (Backend.isOn()) {
instanceWorlds.get(worl... | null | null | null | https://github.com/Jozufozu/Flywheel/commit/9abfad00c683571a5e1eeef53509c4ac53b4d33e | Fix crash on load when backend is off
- Closes #81
- Disabled crashing on error poll | src/main/java/com/jozufozu/flywheel/backend/instancing/InstancedRenderDispatcher.java | java | 2021-12-29T04:39:32Z |
public synchronized BlockData rotate(BlockData dd, int spinxx, int spinyy, int spinzz)
{
BlockData d = dd;
int spinx = (int) (90D * (Math.ceil(Math.abs((spinxx % 360D) / 90D))));
int spiny = (int) (90D * (Math.ceil(Math.abs((spinyy % 360D) / 90D))));
int spinz = (int) (90D * (Math.ceil(Math.abs((spinzz % 360D)... | public BlockData rotate(BlockData dd, int spinxx, int spinyy, int spinzz)
{
BlockData d = dd;
try
{
int spinx = (int) (90D * (Math.ceil(Math.abs((spinxx % 360D) / 90D))));
int spiny = (int) (90D * (Math.ceil(Math.abs((spinyy % 360D) / 90D))));
int spinz = (int) (90D * (Math.ceil(Math.abs((spinzz % 360D)... | null | null | null | https://github.com/VolmitSoftware/Iris/commit/151f99e343b98553fc4ba99361c0ec345f1fe5b5 | Temp fix for crashes on rotation issues | src/main/java/com/volmit/iris/object/IrisObjectRotation.java | java | 2021-07-05T10:01:22Z |
_dopr(char **sbuffer,
char **buffer,
size_t *maxlen,
size_t *retlen, int *truncated, const char *format, va_list args)
{
char ch;
LLONG value;
LDOUBLE fvalue;
char *strvalue;
int min;
int max;
int state;
int flags;
int cflags;
size_t currlen;
state = DP_S_D... | _dopr(char **sbuffer,
char **buffer,
size_t *maxlen,
size_t *retlen, int *truncated, const char *format, va_list args)
{
char ch;
LLONG value;
LDOUBLE fvalue;
char *strvalue;
int min;
int max;
int state;
int flags;
int cflags;
size_t currlen;
state = DP_S_D... | CVE-2016-0799 | CWE-119 | The fmtstr function in crypto/bio/b_print.c in OpenSSL 1.0.1 before 1.0.1s and 1.0.2 before 1.0.2g improperly calculates string lengths, which allows remote attackers to cause a denial of service (overflow and out-of-bounds read) or possibly have unspecified other impact via a long string, as demonstrated by a large am... | http://git.openssl.org/?p=openssl.git;a=commitdiff;h=9cb177301fdab492e4cfef376b28339afe3ef663 | Fix memory issues in BIO_*printf functions
The internal |fmtstr| function used in processing a "%s" format string
in the BIO_*printf functions could overflow while calculating the length
of a string and cause an OOB read when printing very long strings.
Additionally the internal |doapr_outch| function can attempt to ... | null | null | null |
@SuppressWarnings("unchecked")
@Override
public <T extends Source> T getSource(Class<T> clazz) throws SQLException {
checkClosed();
checkWorkingWithResult();
// Note that we try and use streams here wherever possible for the day that the server actually supports streaming from server ->... | @SuppressWarnings("unchecked")
@Override
public <T extends Source> T getSource(Class<T> clazz) throws SQLException {
checkClosed();
checkWorkingWithResult();
// Note that we try and use streams here wherever possible for the day that the server actually supports streaming from server ->... | null | null | null | https://github.com/awslabs/aws-mysql-jdbc/commit/58afe23ae86e0e2540082a671cea69f92b0de500 | Security fix for XML parser (#64) | src/main/user-impl/java/com/mysql/cj/jdbc/MysqlSQLXML.java | java | 2021-06-05T00:05:57Z |
@Override
public void publish(MqttPublishMessage msg) {
log.error("[{}] Failed to write data due to QoS2 does not support.", msg.variableHeader().topicName());
channel.close();
} | @Override
public void publish(MqttPublishMessage msg) {
log.error("[{}] Failed to write data due to QoS2 does not support.", msg.variableHeader().topicName());
channel.close();
ReferenceCountUtil.safeRelease(msg);
} | null | null | null | https://github.com/streamnative/mop/commit/56c98e47015ca2bcb1ffdb544ad2ec23175c429b | Refactor mqtt inbound handler. (#377)
* Refactor mqtt inbound handler.
(cherry picked from commit f17b25349528db064b854a3675a25852e8c98738) | mqtt-impl/src/main/java/io/streamnative/pulsar/handlers/mqtt/support/Qos2PublishHandler.java | java | 2021-12-31T02:26:50Z |
public boolean equals(final EDIPartyName other) {
return other != null && Arrays.equals(encodedName, other.getName());
} | public boolean equals(final EDIPartyName other) {
return other != null && MessageDigest.isEqual(encodedName, other.getName());
} | null | null | null | https://github.com/wildfly-security/wildfly-elytron/commit/ba39b831d4f2330219381cd350979d0d5c52a856 | [ELY-2419] Update GeneralName to make use of MessageDigest#isEqual to avoid a potential timing attack | x500/base/src/main/java/org/wildfly/security/x500/GeneralName.java | java | 2022-09-16T20:23:01Z |
static int
cib_tls_signon(cib_t * cib, struct remote_connection_s *connection)
{
int sock;
cib_remote_opaque_t *private = cib->variant_opaque;
struct sockaddr_in addr;
int rc = 0;
char *server = private->server;
int ret_ga;
struct addrinfo *res;
struct addrinfo hints;
xmlNode *answ... | static int
cib_tls_signon(cib_t * cib, struct remote_connection_s *connection, gboolean event_channel)
{
int sock;
cib_remote_opaque_t *private = cib->variant_opaque;
int rc = 0;
int disconnected = 0;
xmlNode *answer = NULL;
xmlNode *login = NULL;
static struct mainloop_fd_callbacks cib_fd... | null | null | null | https://github.com/ClusterLabs/pacemaker/commit/564f7cc2a51dcd2f28ab12a13394f31be5aa3c93 | High: core: Internal tls api improvements for reuse with future LRMD tls backend. | lib/cib/cib_remote.c | c | 2013-01-05T06:19:59Z |
void IGDstartelt(void * d, const char * name, int l)
{
struct IGDdatas * datas = (struct IGDdatas *)d;
memcpy( datas->cureltname, name, l);
datas->cureltname[l] = '\0';
datas->level++;
if( (l==7) && !memcmp(name, "service", l) ) {
datas->tmp.controlurl[0] = '\0';
datas->tmp.eventsuburl[0] = '\0';
datas->tmp.... | void IGDstartelt(void * d, const char * name, int l)
{
struct IGDdatas * datas = (struct IGDdatas *)d;
if(l >= MINIUPNPC_URL_MAXSIZE)
l = MINIUPNPC_URL_MAXSIZE-1;
memcpy(datas->cureltname, name, l);
datas->cureltname[l] = '\0';
datas->level++;
if( (l==7) && !memcmp(name, "service", l) ) {
datas->tmp.controlur... | CVE-2015-6031 | CWE-119 | Buffer overflow in the IGDstartelt function in igd_desc_parse.c in the MiniUPnP client (aka MiniUPnPc) before 1.9.20150917 allows remote UPNP servers to cause a denial of service (application crash) and possibly execute arbitrary code via an "oversized" XML element name. | https://github.com/miniupnp/miniupnp/commit/79cca974a4c2ab1199786732a67ff6d898051b78 | igd_desc_parse.c: fix buffer overflow | igd_desc_parse.c | c | 2015-09-15T13:32:33Z |
public static long estimateNodeFrequency(DataFlowNode node) {
long count = node.getIterations() == 0 ? 1 : node.getIterations();
if (node.isTopLevel())
return count;
DataFlowNode loop = getLoopOfNode(node);
count *= loop.getIterations();
while (!loop.isTopLevel()) {
loop = getLoopOfLoop(loop);
count... | public static long estimateNodeFrequency(DataFlowNode node) {
long count = node.getIterations() == 0 ? 1 : node.getIterations();
if (node.isTopLevel())
return count;
DataFlowNode loop = getLoopOfNode(node);
count *= loop.getIterations();
while (!loop.isTopLevel()) {
... | null | null | null | https://github.com/specs-feup/clava/commit/f0a3990fe943ccf748237765a550405623da7bb5 | [ClavaWeavar] Replaces CxxFunction with AFunction in certain parameters | ClavaAst/src/pt/up/fe/specs/clava/analysis/flow/data/DFGUtils.java | java | 2021-07-03T22:36:44Z |
static void virtio_net_device_realize(DeviceState *dev, Error **errp)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIONet *n = VIRTIO_NET(dev);
NetClientState *nc;
int i;
virtio_init(vdev, "virtio-net", VIRTIO_ID_NET, n->config_size);
n->max_queues = MAX(n->nic_conf.peers.queues, 1);
n->vqs... | static void virtio_net_device_realize(DeviceState *dev, Error **errp)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIONet *n = VIRTIO_NET(dev);
NetClientState *nc;
int i;
virtio_init(vdev, "virtio-net", VIRTIO_ID_NET, n->config_size);
n->max_queues = MAX(n->nic_conf.peers.queues, 1);
if (n-... | null | null | null | qemu/commit/7e0e736ecdfeac6d3517513d3a702304e4f6cf59 | virtio-net: validate backend queue numbers against bus limitation
We don't validate the backend queue numbers against bus limitation,
this will easily crash qemu if it exceeds the limitation which will
hit the abort() in virtio_del_queue(). An example is trying to
starting a virtio-net device with 256 queues. E.g:
./... | ./qemu/hw/net/virtio-net.c | c | 2015-03-20T06:07:50Z |
static int protocol_client_auth_sasl_start_len(VncState *vs, uint8_t *data, size_t len)
{
uint32_t startlen = read_u32(data, 0);
VNC_DEBUG("Got client start len %d\n", startlen);
if (startlen > SASL_DATA_MAX_LEN) {
VNC_DEBUG("Too much SASL data %d\n", startlen);
vnc_client_error(vs);
... | static int protocol_client_auth_sasl_start_len(VncState *vs, uint8_t *data, size_t len)
{
uint32_t startlen = read_u32(data, 0);
if (startlen > SASL_DATA_MAX_LEN) {
trace_vnc_auth_fail(vs, vs->auth, "SASL start len too large", "");
vnc_client_error(vs);
return -1;
}
if (startlen ... | null | null | null | qemu/commit/7364dbdabb7824d5bde1e341bb6d928282f01c83 | ui: add tracing of VNC authentication process
Trace anything related to authentication in the VNC protocol
handshake
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170921121528.23935-3-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> | ./qemu/ui/vnc-auth-sasl.c | c | 2017-09-21T12:15:28Z |
int dccp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
struct dccp_hdr *dh, unsigned int len)
{
struct dccp_sock *dp = dccp_sk(sk);
struct dccp_skb_cb *dcb = DCCP_SKB_CB(skb);
const int old_state = sk->sk_state;
int queued = 0;
/*
* Step 3: Process LISTEN state
*
* If S.state == LISTEN,... | int dccp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
struct dccp_hdr *dh, unsigned int len)
{
struct dccp_sock *dp = dccp_sk(sk);
struct dccp_skb_cb *dcb = DCCP_SKB_CB(skb);
const int old_state = sk->sk_state;
int queued = 0;
/*
* Step 3: Process LISTEN state
*
* If S.state == LISTEN,... | CVE-2017-6074 | CWE-415 | The dccp_rcv_state_process function in net/dccp/input.c in the Linux kernel through 4.9.11 mishandles DCCP_PKT_REQUEST packet data structures in the LISTEN state, which allows local users to obtain root privileges or cause a denial of service (double free) via an application that makes an IPV6_RECVPKTINFO setsockopt sy... | https://github.com/torvalds/linux/commit/5edabca9d4cff7f1f2b68f0bac55ef99d9798ba4 | dccp: fix freeing skb too early for IPV6_RECVPKTINFO
In the current DCCP implementation an skb for a DCCP_PKT_REQUEST packet
is forcibly freed via __kfree_skb in dccp_rcv_state_process if
dccp_v6_conn_request successfully returns.
However, if IPV6_RECVPKTINFO is set on a socket, the address of the skb
is saved to ire... | input.c | c | 2017-02-16T16:22:46Z |
bool const_item() const { return used_tables() == 0; } | bool const_item() const { return true; } | CVE-2021-46666 | CWE-617 | MariaDB before 10.6.2 allows an application crash because of mishandling of a pushdown from a HAVING clause to a WHERE clause. | https://github.com/MariaDB/server/commit/2e7891080667c59ac80f788eef4d59d447595772 | MDEV-25635 Assertion failure when pushing from HAVING into WHERE of view
This bug could manifest itself after pushing a where condition over a
mergeable derived table / view / CTE DT into a grouping view / derived
table / CTE V whose item list contained set functions with constant
arguments such as MIN(2), SUM(1) etc.... | null | null | 2021-06-02T15:40:30Z |
int kvm_arch_release_virq_post(int virq)
{
MSIRouteEntry *entry, *next;
QLIST_FOREACH_SAFE(entry, &msi_route_list, list, next) {
if (entry->virq == virq) {
trace_kvm_x86_remove_msi_route(virq);
QLIST_REMOVE(entry, list);
break;
}
}
return 0;
} | int kvm_arch_release_virq_post(int virq)
{
MSIRouteEntry *entry, *next;
QLIST_FOREACH_SAFE(entry, &msi_route_list, list, next) {
if (entry->virq == virq) {
trace_kvm_x86_remove_msi_route(virq);
QLIST_REMOVE(entry, list);
g_free(entry);
break;
}
... | null | null | null | qemu/commit/01960e6d21dcfbfc8a03d8fd6284c448cf75865b | irq: fix memory leak
entry is moved from list but is not freed.
Signed-off-by: linzhecheng <linzhecheng@huawei.com>
Message-Id: <20171225024704.19540-1-linzhecheng@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> | ./qemu/target/i386/kvm.c | c | 2017-12-25T02:47:04Z |
static int set_geometry(unsigned int cmd, struct floppy_struct *g,
int drive, int type, struct block_device *bdev)
{
int cnt;
/* sanity checking for parameters. */
if (g->sect <= 0 ||
g->head <= 0 ||
/* check for zero in F_SECT_PER_TRACK */
(unsigned char)((g->sect << 2) >> FD_SIZECODE... | static int set_geometry(unsigned int cmd, struct floppy_struct *g,
int drive, int type, struct block_device *bdev)
{
int cnt;
/* sanity checking for parameters. */
if ((int)g->sect <= 0 ||
(int)g->head <= 0 ||
/* check for overflow in max_sector */
(int)(g->sect * g->head) <= 0 ||
... | CVE-2019-14283 | CWE-125 | In the Linux kernel before 5.2.3, set_geometry in drivers/block/floppy.c does not validate the sect and head fields, as demonstrated by an integer overflow and out-of-bounds read. It can be triggered by an unprivileged local user when a floppy disk has been inserted. NOTE: QEMU creates the floppy device by default. | https://github.com/torvalds/linux/commit/da99466ac243f15fbba65bd261bfc75ffa1532b6 | floppy: fix out-of-bounds read in copy_buffer
This fixes a global out-of-bounds read access in the copy_buffer
function of the floppy driver.
The FDDEFPRM ioctl allows one to set the geometry of a disk. The sect
and head fields (unsigned int) of the floppy_drive structure are used to
compute the max_sector (int) in ... | floppy.c | c | 2019-07-12T18:55:23Z |
static inline int ccid_hc_tx_getsockopt(struct ccid *ccid, struct sock *sk,
const int optname, int len,
u32 __user *optval, int __user *optlen)
{
int rc = -ENOPROTOOPT;
if (ccid->ccid_ops->ccid_hc_tx_getsockopt != NULL)
rc = ccid->ccid_ops->ccid_hc_tx_getsockopt(sk, optname, len,
optval, optlen);
... | static inline int ccid_hc_tx_getsockopt(struct ccid *ccid, struct sock *sk,
const int optname, int len,
u32 __user *optval, int __user *optlen)
{
int rc = -ENOPROTOOPT;
if (ccid != NULL && ccid->ccid_ops->ccid_hc_tx_getsockopt != NULL)
rc = ccid->ccid_ops->ccid_hc_tx_getsockopt(sk, optname, len,
op... | CVE-2013-1827 | NVD-CWE-Other | net/dccp/ccid.h in the Linux kernel before 3.5.4 allows local users to gain privileges or cause a denial of service (NULL pointer dereference and system crash) by leveraging the CAP_NET_ADMIN capability for a certain (1) sender or (2) receiver getsockopt call. | https://github.com/torvalds/linux/commit/276bdb82dedb290511467a5a4fdbe9f0b52dce6f | dccp: check ccid before dereferencing
ccid_hc_rx_getsockopt() and ccid_hc_tx_getsockopt() might be called with
a NULL ccid pointer leading to a NULL pointer dereference. This could
lead to a privilege escalation if the attacker is able to map page 0 and
prepare it with a fake ccid_ops pointer.
Signed-off-by: Mathias ... | ccid.h | h | 2012-08-15T11:31:54Z |
def cookies(self):
# type: () -> Dict[str, Union[str, AnnotatedValue]]
privacy_cookies = [
django_settings.CSRF_COOKIE_NAME,
django_settings.SESSION_COOKIE_NAME,
]
clean_cookies = {} # type: Dict[str, Union[str, AnnotatedValue]]
for (key, val) in self.re... | def cookies(self):
# type: () -> Dict[str, Union[str, AnnotatedValue]]
privacy_cookies = [
django_settings.CSRF_COOKIE_NAME,
django_settings.SESSION_COOKIE_NAME,
]
clean_cookies = {} # type: Dict[str, Union[str, AnnotatedValue]]
for (key, val) in self.re... | null | null | null | https://github.com/getsentry/sentry-python/commit/4e0a8b26e5059961f8a0396f25e52faae33a9657 | Better naming | sentry_sdk/integrations/django/__init__.py | py | 2023-01-19T10:13:45Z |
@Override
public Object parseLiteral(Object input) {
if (input instanceof StringValue) {
String value = ((StringValue) input).getValue();
try {
Date date = new SimpleDateFormat(LOCAL_DATE_TIME_FORMAT).parse(value);
... | @Override
public Object parseLiteral(Object input) {
if (input instanceof StringValue) {
String value = ((StringValue) input).getValue();
if (value.isEmpty()) {
return LocalDateTime.MIN;
}
... | null | null | null | https://github.com/jmix-framework/jmix/commit/dee437b22a451f7e41c398a0f528ddaa2b3bd375 | add travis config | graphql/src/main/java/io/jmix/graphql/schema/scalar/LocalDateTimeScalar.java | java | 2021-04-08T11:34:14Z |
static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb,
AVPacket *pkt)
{
unsigned char chunk_preamble[CHUNK_PREAMBLE_SIZE];
int chunk_type;
int chunk_size;
unsigned char opcode_preamble[OPCODE_PREAMBLE_SIZE];
unsigned char opcode_type;
unsigned char opcode_version;
int opcode_... | static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb,
AVPacket *pkt)
{
unsigned char chunk_preamble[CHUNK_PREAMBLE_SIZE];
int chunk_type;
int chunk_size;
unsigned char opcode_preamble[OPCODE_PREAMBLE_SIZE];
unsigned char opcode_type;
unsigned char opcode_version;
int opcode_... | null | null | null | FFmpeg/commit/8faabf3bd29cf587a8c5b8aa38836e9c99dba054 | avformat/ipmovie: Check that the OPCODE_INIT_AUDIO_BUFFERS size is large enough
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f75b03c1f19_4820_descent3_level5_16bit_partial.mve
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | ./ffmpeg/libavformat/ipmovie.c | c | 2013-12-18T22:13:15Z |
@Nullable
private AviTrack getAviTrack(int chunkId) {
final int streamId = getStreamId(chunkId);
if (streamId >= 0) {
return aviTracks[streamId];
}
return null;
} | @Nullable
private AviTrack getAviTrack(int chunkId) {
final int streamId = getStreamId(chunkId);
if (streamId >= 0 && streamId < aviTracks.length) {
return aviTracks[streamId];
}
return null;
} | null | null | null | https://github.com/androidx/media/commit/c41dc2360f528aaaf3f1fbab17db767aec9ef635 | Fix crash on streamId out of bounds | library/extractor/src/main/java/com/google/android/exoplayer2/extractor/avi/AviExtractor.java | java | 2022-01-25T22:19:10Z |
(T.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(T,60));u.appendChild(T)}return u};var q=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(u){u=q.apply(this,arguments);var E=this.editorUi,J=E.editor.graph;if(J.isEnabled()){var T=E.getCurre... | (T.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(T,60));u.appendChild(T)}return u};var q=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(u){u=q.apply(this,arguments);var D=this.editorUi,K=D.editor.graph;if(K.isEnabled()){var T=D.getCurre... | CVE-2022-1727 | CWE-20,CWE-20 | Improper Input Validation in GitHub repository jgraph/drawio prior to 18.0.6. | https://github.com/jgraph/drawio/commit/4deecee18191f67e242422abf3ca304e19e49687 | 18.0.4 release | app.min.js | js | 2022-05-18T14:15:00Z |
void
ddl_add_col (query_instance_t * qi, const char *table, caddr_t * col, int if_not_exists)
{
caddr_t err;
static query_t *add_col_proc;
client_connection_t *cli = qi->qi_client;
dbe_column_t *col_ref;
dbe_table_t *tb = qi_name_to_table (qi, table);
if (!add_col_proc)
add_col_proc = sql_compile_stati... | void
ddl_add_col (query_instance_t * qi, const char *table, caddr_t * col, int if_not_exists)
{
caddr_t err;
static query_t *add_col_proc;
client_connection_t *cli = qi->qi_client;
dbe_column_t *col_ref;
dbe_table_t *tb = qi_name_to_table (qi, table);
int not_empty;
if (!add_col_proc)
add_col_proc = ... | null | null | null | https://github.com/openlink/virtuoso-opensource/commit/ec54f1c7b50df944ae4a8d3e29cd7eaf1cc97b21 | Fixed cannot add non-null column to existing data (fixes #1130) | libsrc/Wi/ddlrun.c | c | 2023-04-14T12:31:40Z |
def handle_login(
redirect_type: str = "client",
) -> Response | Tuple[Response, Literal[401]] | None:
# Returns a shallow mutable copy of the immutable
# multi dict.
request_args = request.args.copy()
redirect_url = request_args.pop("redirect_url", "/")
query_args =... | def handle_login(
redirect_type: str = "client",
) -> Response | Tuple[Response, Literal[401]] | None:
# Returns a shallow mutable copy of the immutable
# multi dict.
request_args = request.args.copy()
redirect_url = request_args.pop("redirect_url", "/")
query_args =... | null | null | null | https://github.com/orchest/orchest/commit/c2587a963cca742c4a2503bce4cfb4161bf64c2d | Set auth cookies to SameSite=Lax | services/auth-server/app/app/views.py | py | 2022-09-30T13:24:32Z |
async def get_permissions(self, request):
identity_policy = request.config_dict.get('aiohttp_security_identity_policy')
identity = await identity_policy.identify(request)
if identity in self.user_map:
return [self.Access[p.upper()] for p in self.user_map[identity].permissions]
... | async def get_permissions(self, request):
identity_policy = request.config_dict.get('aiohttp_security_identity_policy')
identity = await identity_policy.identify(request)
if identity in self.user_map:
return [self.Access[p.upper()] for p in self.user_map[identity].permissions]
... | null | null | null | https://github.com/mitre/caldera/commit/9c8fb74c0b1b8d814ac62ff729f27fb23408b75a | adding patch for found security bug | app/service/auth_svc.py | py | 2020-03-18T16:00:06Z |
@Override
public boolean tryProcessWatermark(@Nonnull Watermark watermark) {
if (!emitFromTraverser(currentTraverser)) {
return false;
}
int wmIndex = getWmIndex(watermark.key());
assert lastEmittedWms[wmIndex] <= lastReceivedWms[wmIndex]
: "lastEmittedWm... | @Override
public boolean tryProcessWatermark(@Nonnull Watermark watermark) {
if (!emitFromTraverser(currentTraverser)) {
return false;
}
int wmIndex = getWmIndex(watermark.key());
assert lastEmittedWms[wmIndex] <= lastReceivedWms[wmIndex]
: "lastEmittedWm... | null | null | null | https://github.com/hazelcast/hazelcast/commit/2bec37220f2086afacb471ade9ca50d5bc1baea0 | Fix broken watermark counters in unordered mapUsingServiceAsync [HZ-1928] (#23271)
mapUsingServiceAsync in unordered mode used wrong condition to check if
the processing is complete and wrong number of currently processed items
to propagate watermarks. This could lead to lost items when the pipeline
was completed and ... | hazelcast/src/main/java/com/hazelcast/jet/impl/processor/AsyncTransformUsingServiceUnorderedP.java | java | 2023-01-12T17:57:10Z |
void
stl_update_connects_remove_1(stl_file *stl, int facet_num) {
int j;
if (stl->error) return;
/* Update list of connected edges */
j = ((stl->neighbors_start[facet_num].neighbor[0] == -1) +
(stl->neighbors_start[facet_num].neighbor[1] == -1) +
(stl->neighbors_start[facet_num].neighbor[2] == -1... | void
stl_update_connects_remove_1(stl_file *stl, int facet_num) {
int j;
if (
stl->error ||
facet_num < 0
) return;
/* Update list of connected edges */
j = ((stl->neighbors_start[facet_num].neighbor[0] == -1) +
(stl->neighbors_start[facet_num].neighbor[1] == -1) +
(stl->neighbors_star... | null | null | null | https://github.com/admesh/admesh/commit/e84d8353f1347e1f26f0a95770d92ba14e6ede38 | Fix heap buffer overflow in stl_update_connects_remove_1
- Add argument value check to the stl_update_connects_remove_1
- Add neighbor value check in stl_remove_degenerate
Fixes https://github.com/admesh/admesh/issues/28
Merges https://github.com/admesh/admesh/pull/55 | src/connect.c | c | 2022-04-25T10:04:46Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.