text stringlengths 79 3.72M |
|---|
<vulnerable_code><commit_title>[PATCH] calloc limits<commit_description><fixed_code>
/* Copyright 2021 Google LLC
*
* This is part of the Google Cloud IoT Device SDK for Embedded C.
* It is licensed under the BSD 3-Clause license; you may not use this file
* except in compliance with the License.
*
* You may obta... |
<vulnerable_code>#define IOTC_TT_MQTT_LOGIC_LAYER_SUBSCRIBE ( IOTC_TT_MQTT_PARSER << 1 )
#define IOTC_TT_CONTROL_TOPIC ( IOTC_TT_MQTT_LOGIC_LAYER_SUBSCRIBE << 1 )
#define IOTC_TT_MQTT_SERIALIZER ( IOTC_TT_CONTROL_TOPIC << 1 )
#define IOTC_TT_MEMORY_LIMITER ... |
<vulnerable_code>
if (name[0] == ':' && name[1] == ':') {
/* system file */
if (memcmp(&name[2], &content_name[2], 31L) == 0) {
if (memcmp(&name[33], &content_name[33], 8L) == 0) {
chm->sec1.content = fi;
}
else if (memcmp(&name[33], &control_name[33], 11L... |
<vulnerable_code> return false;
}
// @since 4.6.0 - Send ajax nonce
args.super_ajax_nonce = args.form.find('input[name="super_ajax_nonce"]').val();
// @since 2.9.0 - json data POST
json_data = JSON.stringify(args.data);
args.form.find('textarea[name="json_dat... |
<vulnerable_code> // Update conditional logic names
// Update validate condition names
// Update variable condition names
var nodes = clone.querySelectorAll('.super-conditional-logic, .super-validate-conditions, .super-variable-conditions');
for(i=0; i<nodes.length; ++i){
... |
<vulnerable_code>
if (mov->block_buffer)
gf_free(mov->block_buffer);
#endif
if (mov->last_producer_ref_time)
gf_isom_box_del((GF_Box *) mov->last_producer_ref_time);<commit_title>[PATCH] fixed #2284<commit_description><fixed_code>
if (mov->block_buffer)
gf_free(mov->block_buffer);
if (mov->emsgs)
gf_isom_... |
<vulnerable_code>
#include "basicio.hpp"
#include "error.hpp"
#include "futils.hpp"
#include "image.hpp"
#include "image_int.hpp"
}
profileName_ = std::string(reinterpret_cast<char*>(chunkData.pData_), iccOffset - 1);
++iccOffset; // +1 = 'compressed' flag
... |
<vulnerable_code>
async def test_redirects_strip_leading_slashes(cli):
resp = await check_response(cli, "//page/", status=302, allow_redirects=False)
assert resp.headers['Location'] == "/page"
<commit_title>[PATCH] Fix invalid request in view test<commit_description><fixed_code>
async def test_redirects_stri... |
<vulnerable_code> self._max_age = max_age
created = data.get('created', None) if data else None
session_data = data.get('session', None) if data else None
if self._new or created is None:
self._created = int(time.time())
else:
self._created = created
<comm... |
<vulnerable_code>from aiohttp import web
from nacl.encoding import Base64Encoder
from aiohttp_session import Session, session_middleware, get_session
from aiohttp_session.nacl_storage import NaClCookieStorage
make_cookie(client, secretbox, {'a': 1, 'b': 12})
resp = await client.get('/')
assert resp.statu... |
<vulnerable_code> if (!g_file_load_contents (file, cancellable, &data, &data_size, NULL, error))
return FALSE;
g_print ("%s", data);
}
if (opt_show_permissions || opt_file_access)
if (contents == NULL)
return FALSE;
g_print ("%s... |
<vulnerable_code>
if (opt_show_metadata)
{
g_print ("%s", xa_metadata ? xa_metadata : "");
if (xa_metadata == NULL || !g_str_has_suffix (xa_metadata, "\n"))
g_print ("\n");
}<commit_title>[PATCH] Ensure special characters in permissions and m... |
<vulnerable_code> int cols)
{
g_autoptr(GString) res = g_string_new (NULL);
int i;
g_string_append_printf (res, " [%d] %s", idx, (char *) items->pdata[0]);
for (i = 1; i < items->len; i++)
{
char *p;
int len;
p = res->str;
len = (res->str + strlen (res... |
<vulnerable_code> g_autofree char *modules_data = NULL;
g_autoptr(GError) error = NULL;
char *start, *end;
if (!g_file_get_contents ("/proc/modules", &modules_data, NULL, &error))
{
g_info ("Failed to read /proc/modules: %s", error->message);
return g_strcmp0 (uri1_norm, uri2_norm) == 0;
}
gboole... |
<vulnerable_code> }
}
int
main (int argc, char *argv[])
{
g_test_add_func ("/common/quote-argv", test_quote_argv);
g_test_add_func ("/common/str-is-integer", test_str_is_integer);
g_test_add_func ("/common/parse-x11-display", test_parse_x11_display);
g_test_add_func ("/app/looks-like-branch", test_looks_li... |
<vulnerable_code>{
struct port *port;
struct scatterlist sg[1];
if (unlikely(early_put_chars))
return early_put_chars(vtermno, buf, count);
if (!port)
return -EPIPE;
sg_init_one(sg, buf, count);
return __send_to_port(port, sg, 1, count, (void *)buf, false);
}
/*<commit_title>[PATCH] virtio-console: avoid D... |
<vulnerable_code>};
static struct extra_reg intel_snb_extra_regs[] __read_mostly = {
INTEL_EVENT_EXTRA_REG(0xb7, MSR_OFFCORE_RSP_0, 0x3fffffffffull, RSP_0),
INTEL_EVENT_EXTRA_REG(0xbb, MSR_OFFCORE_RSP_1, 0x3fffffffffull, RSP_1),
EVENT_EXTRA_END
};
x86_pmu.event_constraints = intel_snb_event_constraints;
x86_pm... |
<vulnerable_code> else
if ((quantum != 0) && (length != 0))
{
if (~length >= 1)
data=(unsigned char *) AcquireQuantumMemory(length+1,quantum*
sizeof(*data));<commit_title>[PATCH] https://github.com/ImageMagick/ImageMagick/issues/533<commit_des... |
<vulnerable_code> break;
case MSV_AV_TIMESTAMP:
if (!av_timestamp) continue;
memcpy(×tamp, av_pair->value, sizeof(timestamp));
timestamp = le64toh(timestamp);
break;
case MSV_AV_FLAGS:
if (!av_flags) continue;
memcpy... |
<vulnerable_code>import random
from datetime import datetime, timedelta
from typing import Any, Dict, List, Optional, Set, Tuple
"""
Generate one-time identity verification code
"""
return str(random.choice(range(100000, 999999)))
def _retrieve_child_results( # pylint: disable=R0911<commit_title>[PA... |
<vulnerable_code>import os
import base64
from ansible.errors import AnsibleError
from ansible.module_utils._text import to_bytes
from ansible.module_utils.six import string_types
from ansible.module_utils.parsing.convert_bool import boolean
from ansible.plugins.action import ActionBase
from ansible.utils.hashing impor... |
<vulnerable_code>from ansible.module_utils.six import text_type, binary_type
from ansible.module_utils._text import to_bytes, to_native, to_text
from ansible.plugins.connection import ConnectionBase
try:<commit_title>[PATCH] fixed fetch traversal from slurp (#68720)<commit_description>* fixed fetch traversal from slu... |
<vulnerable_code> dname = os.path.abspath(dname)
return to_text(dname, errors='surrogate_or_strict')<commit_title>[PATCH] fixed fetch traversal from slurp (#68720)<commit_description>* fixed fetch traversal from slurp
* ignore slurp result for dest
* fixed naming when source is relative
* fixed bug i... |
<vulnerable_code><commit_title>[PATCH] fixed fetch traversal from slurp (#68720)<commit_description>* fixed fetch traversal from slurp
* ignore slurp result for dest
* fixed naming when source is relative
* fixed bug in local connection plugin
* added tests with fake slurp
* moved existing role tests into ru... |
<vulnerable_code> login_user(form.user, remember=remember_me, authn_via=["password"])
after_this_request(_commit)
if not _security._want_json(request):
return redirect(get_post_login_redirect())
if _security._want_json(request):
if current_user.is_authenticated:
... |
<vulnerable_code> assert response.status_code == 200
end_nqueries = get_num_queries(app.security.datastore)
assert current_nqueries is None or end_nqueries == (current_nqueries + 2)<commit_title>[PATCH] Fix security vuln - GET on /login or /change could reveal<commit_description><fixed_code>
assert respo... |
<vulnerable_code>from datetime import datetime
from typing import Any, Dict, List, Optional
from pydantic import Extra, Field, root_validator, validator
from fides.api.models.privacy_experience import BannerEnabled, ComponentType
from fides.api.models.privacy_notice import PrivacyNoticeRegion
privacy_policy_link_... |
<vulnerable_code> "request_origin": "privacy_center",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/324.42 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/425.24",
"user_geography": "us_ca",
"url_recorded": "example.com/privacy_center",
... |
<vulnerable_code> "disabled": False,
"privacy_preferences_link_label": "Manage preferences",
"privacy_policy_link_label": "View our privacy policy",
"privacy_policy_url": "example.com/privacy",
"reject_button_label": "Reject all",
"regions": [],
... |
<vulnerable_code> assert response_body["user_geography"] == "us_ca"
assert response_body["relevant_systems"] == [system.fides_key]
assert response_body["affected_system_status"] == {system.fides_key: "complete"}
assert response_body["url_recorded"] == "example.com/privacy_center"
... |
<vulnerable_code> "description": "We care about your privacy. Opt in and opt out of the data use cases below.",
"privacy_preferences_link_label": "Manage preferences",
"privacy_policy_link_label": "View our privacy policy",
"privacy_policy_url": "example.co... |
<vulnerable_code> "secondary_user_ids": {"ga_client_id": "test"},
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/324.42 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/425.24",
"user_geography": "us_ca",
"url_recorded": "example.com/... |
<vulnerable_code>from __future__ import annotations
from html import unescape
"id": "test_id",
"privacy_preferences_link_label": "D",
"privacy_policy_link_label": "E's label",
"privacy_policy_url": "F",
"reject_button_label": "G",
"save_button_lab... |
<vulnerable_code> });
});
it('should not succeed if the connection.remoteAddress does not belong to masterKeyIps list', () => {
AppCache.put(fakeReq.body._ApplicationId, {
masterKey: 'masterKey',
masterKeyIps: ['ip1', 'ip2'],
});
fakeReq.connection = { remoteAddress: 'ip3' };
fakeReq... |
<vulnerable_code> help: 'Starts the liveQuery server',
action: parsers.booleanParser,
},
userSensitiveFields: {
env: 'PARSE_SERVER_USER_SENSITIVE_FIELDS',
help:<commit_title>[PATCH] fix: The client IP address may be determined incorrectly in<commit_description><fixed_code>
help: 'Starts the liveQ... |
<vulnerable_code> * @property {Number} sessionLength Session duration, in seconds, defaults to 1 year
* @property {Boolean} silent Disables console output
* @property {Boolean} startLiveQueryServer Starts the liveQuery server
* @property {String[]} userSensitiveFields Personally identifiable information fields in th... |
<vulnerable_code> cluster: ?NumberOrBoolean;
/* middleware for express server, can be string or function */
middleware: ?((() => void) | string);
/* Starts the liveQuery server */
startLiveQueryServer: ?boolean;
/* Live query server configuration options (will start the liveQuery server) */<commit_title>[PAT... |
<vulnerable_code> options
);
}
/* istanbul ignore next */
if (!process.env.TESTING) {
configureListeners(this);<commit_title>[PATCH] fix: The client IP address may be determined incorrectly in<commit_description><fixed_code>
options
);
}
if (options.trustProxy) {
... |
<vulnerable_code>}
function getClientIp(req) {
if (req.headers['x-forwarded-for']) {
// try to get from x-forwared-for if it set (behind reverse proxy)
return req.headers['x-forwarded-for'].split(',')[0];
} else if (req.connection && req.connection.remoteAddress) {
// no proxy, try getting from connect... |
<vulnerable_code> c = safe_vgetc();
if (VIM_ISDIGIT(c))
{
n = n * 10 + c - '0';
msg_putchar(c);
++typed;<commit_title>[PATCH] patch 9.0.2111: [security]: overflow in get_number<commit_description>Problem: [security]: overflow in get_number
Solution: Return 0 when the count gets too large
[security]: ... |
<vulnerable_code>import json
from z3c.form.interfaces import IFieldWidget
import z3c.form.interfaces
from z3c.form.widget import FieldWidget
from zope.component import getUtility
from zope.component.interfaces import ComponentLookupError
from zope.i18n import translate
from zope.interface import implementer, implement... |
<vulnerable_code>
/* init tcpedit context */
if (tcpedit_init(&tcpedit, pcap_datalink(options.pin)) < 0) {
errx(-1, "Error initializing tcpedit: %s", tcpedit_geterr(tcpedit));
}
/* parse the tcpedit args */
rcode = tcpedit_post_args(tcpedit);
if (rcode < 0) {
tcpedit_close(&tcpe... |
<vulnerable_code>"""
import html
import struct
from email.generator import _make_boundary
from io import BytesIO
from xml.dom import minidom
import ZPublisher.HTTPRequest
from ZPublisher.HTTPRequest import FileUpload
manage_addFileForm = DTMLFile(
'dtml/imageAdd',
globals(),
Cacheable
):
"""A File o... |
<vulnerable_code> response = request.RESPONSE
result = self.file.index_html(request, response)
self.assertEqual(result, self.data)
def test_interfaces(self):
from OFS.Image import Image
' alt="" title="" height="16" width="16" />')
class FileEditTests(Testi... |
<vulnerable_code> break
case "remote":
// get auth, if possible
mapToRegistry(spec, npm.config, function (err, uri, auth) {
if (err) return cb(err)
addRemoteTarball(p.spec, {name : p.name}, null, auth, cb)<commit_title>[PATCH] config: only send token to registry hosts<c... |
<vulnerable_code> alwaysAuth : undefined
}
if (this.get(nerfed + ":_authToken")) {
c.token = this.get(nerfed + ":_authToken")
// the bearer token is enough, don't confuse things
return c
}
c.email = this.get("email")
}
if (this.get(nerfed + ":always-auth") !== undefined) {
var val = t... |
<vulnerable_code> var auth = config.getCredentialsByURI(registry)
// normalize registry URL so resolution doesn't drop a piece of registry URL
var normalized = registry.slice(-1) !== "/" ? registry+"/" : registry
var uri = url.resolve(normalized, name)
log.silly("mapToRegistry", "uri", uri)
cb(null, uri, a... |
<vulnerable_code><commit_title>[PATCH] config: only send token to registry hosts<commit_description>Fixes: #8380
Credit: @othiym23
Reviewed-By: @zkat<fixed_code>
var resolve = require('path').resolve
var writeFileSync = require('graceful-fs').writeFileSync
var mkdirp = require('mkdirp')
var mr = require('npm-registry-... |
<vulnerable_code> }, "needs only token")
var expected = {
scope : "//registry.lvh.me:8661/",
token : "simple-token",
username : undefined,
password : undefined,
email : undefined,
auth : undefined,
alwaysAuth : undefined
}
t.same(conf.g... |
<vulnerable_code> password: undefined,
email: undefined,
auth: undefined,
alwaysAuth: undefined
})
t.equal(registry, 'http://reg.npm/design/-/rewrite/')
})
password: undefined,
email: undefined,
auth: undefined,
alwaysAuth: undefined
})
t.equal(registry, ... |
<vulnerable_code> ThrowReaderException(CorruptImageError,"FileFormatVersionMismatch");
if (header.header_size < sz_XWDheader)
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
switch (header.visual_class)
{
case StaticGray:
case PseudoColor:
{
if ((header.bits_per_pixel < 1) ... |
<vulnerable_code>
for (x=((ssize_t) number_pixels-7); x > 0; x-=8)
{
pixel=(unsigned char) GetPixelIndex(image,p);
*q=((pixel & 0x01) << 7);
p+=GetPixelChannels(image);
pixel=(unsigned char) GetPixelIndex(image,p);
*q|=((pixel & 0x01) << 6);
p+=GetPixelChannel... |
<vulnerable_code> goto exit_waiting;
}
readBytes = readFromSocket(self, buffer + bufPos, self->packetSize - bufPos);
if (readBytes < 0)<commit_title>[PATCH] - COTP: fixed possible heap buffer overflow when handling<commit_description><fixed_code>
goto exit_waiting;
}
if (se... |
<vulnerable_code>package org.apache.axis.client;
import org.apache.axis.EngineConfiguration;
import org.apache.axis.configuration.EngineConfigurationFactoryFinder;
import org.apache.axis.utils.ClassUtils;
import org.apache.axis.utils.Messages;
import javax.naming.Context;
import javax.naming.InitialContext;
public cl... |
<vulnerable_code>import com.vaadin.flow.component.page.AppShellConfigurator;
import com.vaadin.flow.function.VaadinApplicationInitializationBootstrap;
import com.vaadin.flow.internal.ReflectTools;
import com.vaadin.flow.server.VaadinContext;
import com.vaadin.flow.server.startup.AppShellPredicate;
import com.vaadin.flo... |
<vulnerable_code><commit_title>[PATCH] refactor: use StaticFileHandler as a service<commit_description>Part of vaadin/osgi#50<fixed_code>
/*
* Copyright 2000-2021 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You ma... |
<vulnerable_code> */
package com.vaadin.flow.server;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
// Matcher to match string starting with '/themes/[theme-name]/'
protected static final... |
<vulnerable_code> getServletConfig().getServletContext());
}
if (vaadinService != null || vaadinContext
.getAttribute(Lookup.class) == null) {
return;
}
/**
* Creates a new instance of {@link StaticFileHandler}, t... |
<vulnerable_code>import com.vaadin.flow.di.ResourceProvider;
import com.vaadin.flow.function.VaadinApplicationInitializationBootstrap;
import com.vaadin.flow.internal.ReflectTools;
import com.vaadin.flow.server.VaadinContext;
import com.vaadin.flow.server.VaadinServletContext;
import com.vaadin.flow.server.frontend.End... |
<vulnerable_code>import com.vaadin.tests.util.TestUtil;
import elemental.json.Json;
import net.jcip.annotations.NotThreadSafe;
@NotThreadSafe
public class ComponentTest {
private UI ui;<commit_title>[PATCH] refactor: use StaticFileHandler as a service<commit_description>Part of vaadin/osgi#50<fixed_code>
import ... |
<vulnerable_code> private TestVaadinServlet servlet;
private TestVaadinServletService service;
private MockDeploymentConfiguration deploymentConfiguration = new MockDeploymentConfiguration();
public MockServletServiceSessionSetup() throws Exception {
this(true);
.thenReturn(looku... |
<vulnerable_code> "com\\.vaadin\\.flow\\.internal\\.JavaScriptSemantics",
"com\\.vaadin\\.flow\\.internal\\.nodefeature\\.NodeProperties",
"com\\.vaadin\\.flow\\.internal\\.AnnotationReader",
"com\\.vaadin\\.flow\\.server\\.communication\\.ServerRpcHandler\... |
<vulnerable_code> }
}
// Remove all "../" strings:
ReplaceString(FileURL, "../", "");
// Read the file contents and guess its mime-type, based on the extension:
AString Content = "<h2>404 Not Found</h2>";<commit_title>[PATCH] Fix directory traversal bug<commit_description><fixed_code>
}
}
// Remove all "..... |
<vulnerable_code> test_long_passwords: function(assert) {
// bcrypt wrap-around bug in $2a$
assert.strictEqual(bcrypt.hashSync("01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012... |
<vulnerable_code>const ERC165MaliciousData = artifacts.require('ERC165MaliciousData');
const ERC165NotSupported = artifacts.require('ERC165NotSupported');
const ERC165InterfacesSupported = artifacts.require('ERC165InterfacesSupported');
const DUMMY_ID = '0xdeadbeef';
const DUMMY_ID_2 = '0xcafebabe';
expect(suppo... |
<vulnerable_code>init_copy(mrb_state *mrb, mrb_value dest, mrb_value obj)
{
switch (mrb_type(obj)) {
case MRB_TT_CLASS:
case MRB_TT_MODULE:
copy_class(mrb, dest, obj);<commit_title>[PATCH] Should not call `initialize_copy` for `TT_ICLASS`; fix #4027<commit_description>Since `TT_ICLASS` is a internal obj... |
<vulnerable_code>package org.gradle.api.internal.artifacts.ivyservice.ivyresolve;
import org.gradle.StartParameter;
import org.gradle.api.GradleException;
import org.gradle.api.artifacts.component.ModuleComponentIdentifier;
import org.gradle.api.artifacts.result.ResolvedArtifactResult;
import org.gradle.api.artifacts.... |
<vulnerable_code>import org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ModuleComponentRepository;
import org.gradle.api.internal.artifacts.ivyservice.ivyresolve.verification.report.DependencyVerificationReportWriter;
import org.gradle.api.internal.artifacts.ivyservice.ivyresolve.verification.report.Verificatio... |
<vulnerable_code><commit_title>[PATCH] Trusted GPG-key should only accept 160-bit fingerprints<commit_description>Backport from #23667 to 6.9.4
Fixes #23945<fixed_code>
/*
* Copyright 2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fil... |
<vulnerable_code><commit_title>[PATCH] Trusted GPG-key should only accept 160-bit fingerprints<commit_description>Backport from #23667 to 6.9.4
Fixes #23945<fixed_code>
/*
* Copyright 2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fil... |
<vulnerable_code><commit_title>[PATCH] Trusted GPG-key should only accept 160-bit fingerprints<commit_description>Backport from #23667 to 6.9.4
Fixes #23945<fixed_code>
/*
* Copyright 2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fil... |
<vulnerable_code>import org.gradle.api.artifacts.ModuleIdentifier;
import org.gradle.api.artifacts.component.ModuleComponentIdentifier;
import org.gradle.api.internal.artifacts.DefaultModuleIdentifier;
import org.gradle.api.internal.artifacts.verification.model.ChecksumKind;
import org.gradle.api.internal.artifacts.ver... |
<vulnerable_code>
import com.google.common.collect.ImmutableList;
import org.gradle.api.artifacts.component.ModuleComponentIdentifier;
import org.gradle.api.internal.artifacts.verification.model.IgnoredKey;
import org.gradle.internal.component.external.model.ModuleComponentArtifactIdentifier;
import javax.annotation.N... |
<vulnerable_code>import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import org.gradle.api.InvalidUserDataException;
import org.gradle.api.artifacts.component.ComponentIdentifier;
import org.gradle.api.artifacts.component.ModuleComponentIdentifier;
impor... |
<vulnerable_code>import logging
import stat
import shutil
from gi.repository import GLib, Gio, GObject
import prefs
import warp_pb2
FILE_INFOS = ",".join([
"standard::size",
"standard::allocated-size",
def __init__(self, op):
super(FileReceiver, self).__init__()
self.save_path = prefs.get... |
<vulnerable_code>
#include "xbcrypt.h"
GCRY_THREAD_OPTION_PTHREAD_IMPL;
#define XB_CRYPT_CHUNK_SIZE ((size_t) (xtrabackup_encrypt_chunk_size))
static uint encrypt_algo;
static const uint encrypt_mode = GCRY_CIPHER_MODE_CTR;
static uint encrypt_key_len = 0;
static const unsigned char encrypt_iv[] = "Percona Xtrabacku... |
<vulnerable_code>#include "xbcrypt.h"
#include <gcrypt.h>
GCRY_THREAD_OPTION_PTHREAD_IMPL;
#define XBCRYPT_VERSION "1.0"
typedef enum {
RUN_MODE_NONE,
static int encrypt_algo = 0;
static int encrypt_mode = GCRY_CIPHER_MODE_CTR;
static uint encrypt_key_len = 0;
static const unsigned char v1_encrypt_iv[] =
... |
<vulnerable_code>
xb_rcrypt_result_t
xb_crypt_read_chunk(xb_rcrypt_t *crypt, void **buf, size_t *olen, size_t *elen,
void **iv, size_t *ivlen)
{
uchar tmpbuf[XB_CRYPT_CHUNK_MAGIC_SIZE + 8 + 8 + 8 + 4];
ptr = tmpbuf;
if (memcmp(ptr, XB_CRYPT_CHUNK_MAGIC1, XB_CRYPT_CHUNK_MAGIC_SIZE) == 0) {
version = 1;
}... |
<vulnerable_code>
ptr = tmpbuf;
memcpy(ptr, XB_CRYPT_CHUNK_MAGIC2, XB_CRYPT_CHUNK_MAGIC_SIZE);
ptr += XB_CRYPT_CHUNK_MAGIC_SIZE;
int8store(ptr, (ulonglong)0); /* reserved */<commit_title>[PATCH] CVE-2016-6225: xtrabackup encryption is not setting the IV<commit_description><fixed_code>
ptr = tmpbuf;
memcpy(ptr... |
<vulnerable_code>var $jscomp={scope:{},findInternal:function(b,d,e){b instanceof String&&(b=String(b));for(var a=b.length,c=0;c<a;c++){var f=b[c];if(d.call(e,f,c,b))return{i:c,v:f}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(b,d,e){if(e.get||e... |
<vulnerable_code> main: {
login: "/ajax/ajax_doLogin.php",
install: "/ajax/ajax_install.php",
getUpdates: "/ajax/ajax_checkUpds.php"
},
checks: "/ajax/ajax_checkConnection.php",
}
});
},
getUpdates: function ($obj) {
... |
<vulnerable_code>var $jscomp={scope:{},findInternal:function(c,e,k){c instanceof String&&(c=String(c));for(var f=c.length,g=0;g<f;g++){var l=c[g];if(e.call(k,l,g,c))return{i:g,v:l}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(c,e,k){if(k.get||k... |
<vulnerable_code> var opts = Common.appRequests().getRequestOpts();
opts.url = ajaxUrl.config.export;
opts.method = "post";
opts.data = $obj.serialize();
Common.appRequests().getActionCall(opts, function (json) {<commit_title>[PATCH 01/28] * [MOD] Include NULL... |
<vulnerable_code>var $jscomp={scope:{},findInternal:function(c,d,k){c instanceof String&&(c=String(c));for(var f=c.length,g=0;g<f;g++){var l=c[g];if(d.call(k,l,g,c))return{i:g,v:l}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(c,d,k){if(k.get||k... |
<vulnerable_code>var $jscomp={scope:{},findInternal:function(c,d,k){c instanceof String&&(c=String(c));for(var f=c.length,g=0;g<f;g++){var l=c[g];if(d.call(k,l,g,c))return{i:g,v:l}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(c,d,k){if(k.get||k... |
<vulnerable_code> // Poner la clave en los input y actualizar MDL
$dstParent.find("input:password").val(genPassword);
$dstParent.addClass(mdl.CssClasses_.IS_DIRTY).removeClass(mdl.CssClasses_.IS_INVALID);
// Poner la clave en el input de repetición y encriptarla
... |
<vulnerable_code>var $jscomp={scope:{},findInternal:function(a,g,e){a instanceof String&&(a=String(a));for(var h=a.length,k=0;k<h;k++){var m=a[k];if(g.call(e,m,k,a))return{i:k,v:m}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,g,e){if(e.get||e... |
<vulnerable_code>var $jscomp={scope:{},findInternal:function(a,g,e){a instanceof String&&(a=String(a));for(var h=a.length,k=0;k<h;k++){var l=a[k];if(g.call(e,l,k,a))return{i:k,v:l}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,g,e){if(e.get||e... |
<vulnerable_code> msg.sticky(description);
break;
default:
return;
}
}
},<commit_title>[PATCH 01/28] * [MOD] Include NULL rows on updating queries<commit_description><fixed_code>
... |
<vulnerable_code>var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,g,f){if(f.get||f.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[g]=f.value)};$jscomp.getGlobal=function(a){return"u... |
<vulnerable_code> login: "/ajax/ajax_doLogin.php",
install: "/ajax/ajax_install.php",
upgrade: "/ajax/ajax_upgrade.php",
getUpdates: "/ajax/ajax_checkUpds.php"
},
checks: "/ajax/ajax_checkConnection.php",
config: {
positive: {
... |
<vulnerable_code>var $jscomp={scope:{},findInternal:function(c,d,k){c instanceof String&&(c=String(c));for(var f=c.length,g=0;g<f;g++){var l=c[g];if(d.call(k,l,g,c))return{i:g,v:l}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(c,d,k){if(k.get||k... |
<vulnerable_code> },
warn: function (msg) {
console.warn(msg);
}
};
<commit_title>[PATCH 01/28] * [MOD] Include NULL rows on updating queries<commit_description><fixed_code>
},
warn: function (msg) {
console.warn(msg);
},
debug: function... |
<vulnerable_code>$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(a,g){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var f=0,c={next:function(){... |
<vulnerable_code> })).done(callbackOk);
};
return {
getRequestOpts: getRequestOpts,
getActionCall: getActionCall,
getActionPromise: getActionPromise,
history: history
};
};<commit_title>[PATCH 01/28] * [MOD] Include NULL rows on updating queries<commit_description><fi... |
<vulnerable_code>var $jscomp={scope:{},checkStringArgs:function(b,d,c){if(null==b)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(d instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return b+""}};
$jscom... |
<vulnerable_code> onClick: function (e) {
var optsTask = Common.appRequests().getRequestOpts();
optsTask.url = ajaxUrl.main.task;
Common.appRequests().getActionEvent(optsTask, function (result) {
var ... |
<vulnerable_code>var $jscomp={scope:{},findInternal:function(c,d,k){c instanceof String&&(c=String(c));for(var f=c.length,g=0;g<f;g++){var l=c[g];if(d.call(k,l,g,c))return{i:g,v:l}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(c,d,k){if(k.get||k... |
<vulnerable_code>var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,g,f){if(f.get||f.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[g]=f.value)};$jscomp.getGlobal=function(a){return"u... |
<vulnerable_code> */
var getActionEvent = function (opts, callbackProgress, callbackEnd) {
var url = (!opts.url.startsWith("http", 0) && !opts.url.startsWith("https", 0)) ? Common.config().APP_ROOT + opts.url : opts.url;
var source = new EventSource(url);
<commit_title>[PATCH 01/28] * [MOD] Inc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.