text stringlengths 79 3.72M |
|---|
<vulnerable_code> case HTML_DD:
CLOSE_A;
CLOSE_DT;
if (envs[h_env->envc].env == HTML_DL_COMPACT) {
if (obuf->pos > envs[h_env->envc].indent)
flushline(h_env, obuf, envs[h_env->envc].indent, 0,<commit_title>[PATCH] Fix uninitialised values for <i> and <dd><commit_description>Bug-Debian: https://github.com/t... |
<vulnerable_code> int i, attr_id = 0, nattr;
/* Parse tag name */
q = (*s) + 1;
p = tagname;
if (*q == '/') {<commit_title>[PATCH] Fix uninitialised values for <i> and <dd><commit_description>Bug-Debian: https://github.com/tats/w3m/issues/16<fixed_code>
int i, attr_id = 0, nattr;
/* Parse t... |
<vulnerable_code>
import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.ResourceNotFoundException;
import org.apache.cocoon.generation.AbstractGenerator;
import org.dspace.app.xmlui.utils.ContextUtil;
import org.dspace.authorize.AuthorizeException;
import org.dspace.content.DSpaceObject;
import org.dsp... |
<vulnerable_code> this.sdkFamily = setup.sdkFamily;
this.partnerId = setup.partnerId;
this.setAuthKey(setup.authKey);
this.setCipherKey(setup.cipherKey);
this.setFilterExpression(setup.filterExpression);
if (typeof setup.origin !== 'string' && !Arra... |
<vulnerable_code> LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var e=function(t,n){return e... |
<vulnerable_code>"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.decode = void 0;
var BASE64_CHARMAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
/**
* Decode a Base64 encoded string.
return data;
}
exports.decode = decode;<commit_title>[PATCH] feat/Cr... |
<vulnerable_code> this.sdkFamily = setup.sdkFamily;
this.partnerId = setup.partnerId;
this.setAuthKey(setup.authKey);
this.setCipherKey(setup.cipherKey);
this.setFilterExpression(setup.filterExpression);
if (typeof setup.origin !== 'string' && !Array.isArray(setup.origin) ... |
<vulnerable_code>var categories_1 = __importDefault(require("../constants/categories"));
var default_1 = /** @class */ (function () {
function default_1(_a) {
var subscribeEndpoint = _a.subscribeEndpoint, leaveEndpoint = _a.leaveEndpoint, heartbeatEndpoint = _a.heartbeatEndpoint, setStateEndpoint = _a.setSt... |
<vulnerable_code>var operations_1 = __importDefault(require("../constants/operations"));
var utils_1 = __importDefault(require("../utils"));
function __processMessage(modules, message) {
var config = modules.config, crypto = modules.crypto;
if (!config.cipherKey)
return message;
try {
return... |
<vulnerable_code>"use strict";
/** */
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
ret... |
<vulnerable_code>Object.defineProperty(exports, "__esModule", { value: true });
var operations_1 = __importDefault(require("../../constants/operations"));
var utils_1 = __importDefault(require("../../utils"));
var preparePayload = function (_a, payload) {
var crypto = _a.crypto, config = _a.config;
var stringif... |
<vulnerable_code>var endpoint_1 = require("../../components/endpoint");
var sendFile = function (_a) {
var _this = this;
var generateUploadUrl = _a.generateUploadUrl, publishFile = _a.publishFile, _b = _a.modules, PubNubFile = _b.PubNubFile, config = _b.config, cryptography = _b.cryptography, networking = _b.ne... |
<vulnerable_code>exports.handleResponse = exports.prepareParams = exports.postPayload = exports.isAuthSupported = exports.getRequestTimeout = exports.postURL = exports.getURL = exports.usePost = exports.validateParams = exports.getOperation = void 0;
var operations_1 = __importDefault(require("../constants/operations")... |
<vulnerable_code>Object.defineProperty(exports, "__esModule", { value: true });
var config_1 = __importDefault(require("./components/config"));
var index_1 = __importDefault(require("./components/cryptography/index"));
var subscription_manager_1 = __importDefault(require("./components/subscription_manager"));
var telem... |
<vulnerable_code><commit_title>[PATCH] feat/CryptoModule (#339)<commit_description>* ref: decoupling cryptor module
* cryptoModule
* lint
* rever cryptors in config
* lint fixes
* CryptoModule for web and node
* step definitions for contract tests
* lib files
* fix:es-lint
* let vs const
* and some more ts no... |
<vulnerable_code><commit_title>[PATCH] feat/CryptoModule (#339)<commit_description>* ref: decoupling cryptor module
* cryptoModule
* lint
* rever cryptors in config
* lint fixes
* CryptoModule for web and node
* step definitions for contract tests
* lib files
* fix:es-lint
* let vs const
* and some more ts no... |
<vulnerable_code><commit_title>[PATCH] feat/CryptoModule (#339)<commit_description>* ref: decoupling cryptor module
* cryptoModule
* lint
* rever cryptors in config
* lint fixes
* CryptoModule for web and node
* step definitions for contract tests
* lib files
* fix:es-lint
* let vs const
* and some more ts no... |
<vulnerable_code><commit_title>[PATCH] feat/CryptoModule (#339)<commit_description>* ref: decoupling cryptor module
* cryptoModule
* lint
* rever cryptors in config
* lint fixes
* CryptoModule for web and node
* step definitions for contract tests
* lib files
* fix:es-lint
* let vs const
* and some more ts no... |
<vulnerable_code><commit_title>[PATCH] feat/CryptoModule (#339)<commit_description>* ref: decoupling cryptor module
* cryptoModule
* lint
* rever cryptors in config
* lint fixes
* CryptoModule for web and node
* step definitions for contract tests
* lib files
* fix:es-lint
* let vs const
* and some more ts no... |
<vulnerable_code> case 0:
bKey = this.getKey(key);
if (!(file.data instanceof Buffer)) return [3 /*break*/, 2];
_b = (_a = File).create;
_e = {
name: file.name,
... |
<vulnerable_code> var bKey, abPlaindata, abCipherdata;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.getKey(key)];
case 1:
bKey = _a.sent();
ret... |
<vulnerable_code>"use strict";
/** */
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
... |
<vulnerable_code>var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var cbor_sync_1 = __importDefault(require("cbor-sync"));
var pubnub_common_1 = __importDefault(require("../core/pubnub-common"));
var networking_1 = __importDefault... |
<vulnerable_code>var web_node_1 = require("../networking/modules/web-node");
var web_1 = __importDefault(require("../crypto/modules/web"));
var web_2 = __importDefault(require("../file/modules/web"));
function sendBeacon(url) {
if (navigator && navigator.sendBeacon) {
navigator.sendBeacon(url);
setu... |
<vulnerable_code> maximumCacheSize;
/*
support customp encryption and decryption functions.
*/
customEncrypt; // function to support custome encryption of messages
useRandomIVs;
enableSubscribeBeta;
constructor({ setup }) {
this._PNSDKSuffix = {};
this.sdkFamily = setup.sdkFamily;
this.... |
<vulnerable_code> _pendingChannelGroupSubscriptions;
//
_dedupingManager;
constructor({
config,
crypto,
listenerManager,
}) {
this._listenerManager = listenerManager;
this._config = config;
this._getFileUrl = getFileUrl;
this._crypto = crypto;
this._channels = {};
this._... |
<vulnerable_code>/** */
import operationConstants from '../../constants/operations';
prepareParams: () => ({}),
handleResponse: async ({ PubNubFile, config, cryptography }, res, params) => {
let { body } = res.response;
if (PubNubFile.supportsEncryptFile && (params.cipherKey ?? config.cipherKey)) ... |
<vulnerable_code>/** */
import operationConstants from '../../constants/operations';
import utils from '../../utils';
const preparePayload = ({ crypto, config }, payload) => {
let stringifiedPayload = JSON.stringify(payload);
if (config.cipherKey) {
stringifiedPayload = crypto.encrypt(stringifiedPaylo... |
<vulnerable_code>import Config from './components/config';
import Crypto from './components/cryptography/index';
import SubscriptionManager from './components/subscription_manager';
import TelemetryManager from './components/telemetry_manager';
import NotificationsPayload from './components/push_payload';
});
... |
<vulnerable_code>/** */
import { Readable, PassThrough } from 'stream';
import { createCipheriv, createDecipheriv, createHash, randomBytes } from 'crypto';
export default class NodeCryptography {
const bKey = this.getKey(key);
if (file.data instanceof Buffer) {
return File.create({
name: f... |
<vulnerable_code>
export default class WebCryptography {
static IV_LENGTH = 16;
get algo() {
return 'aes-256-cbc';
async decrypt(key, input) {
const cKey = await this.getKey(key);
if (input instanceof ArrayBuffer) {
return this.decryptArrayBuffer(cKey, input);
}
}
async encryptFile(k... |
<vulnerable_code>/** */
import { Readable, PassThrough } from 'stream';
import { ReadStream } from 'fs';
import { basename } from 'path';
import { IFile, FileClass } from '..';
const PubNubFile = class PubNubFile {
static supportsBlob = false;
mimeType;
static create(config) {
return new this(conf... |
<vulnerable_code>
import WebCryptography from '../crypto/modules/web';
import PubNubFile from '../file/modules/web';
function sendBeacon(url) {
if (navigator && navigator.sendBeacon) {
}
export default class extends PubNubCore {
constructor(setup) {
// extract config.
const { listenToBrowserNetworkEvents ... |
<vulnerable_code> return DOMPurify.sanitize(
text
.replaceAll('<', '<')
.replaceAll('>', '>')
.replaceAll('&', '&')
.replaceAll('"', '"')
.replaceAll(''', "'"),
{USE_PROFILES: {html:bHtml, svg:bSvg, svgFilters: bSvgFilters... |
<vulnerable_code> nv = Jsi_ValueIsTrue(interp, v);
}
}
_this->d.obj->ot = JSI_OT_BOOL;
_this->d.obj->d.val = nv;
Jsi_ValueMakeBool(interp, ret, nv);
return JSI_OK;
}<commit_title>[PATCH] Fixes #62<commit_description>FossilOrigin-Name: abc08a84b5b31a... |
<vulnerable_code> data
})
}<commit_title>[PATCH] =?UTF-8?q?=E5=AA=92=E4=BD=93=E5=BA=93=EF=BC=9A=201?=<commit_description><fixed_code>
data
})
}
/**
* 编辑文件名或者备注
* @param data
* @returns {*}
*/
export const editFileName = (data) => {
return service({
url: '/fileUploadAndDownload/editFileName',
m... |
<vulnerable_code> __perf_event_init_context(&cpuctx->ctx);
lockdep_set_class(&cpuctx->ctx.mutex, &cpuctx_mutex);
lockdep_set_class(&cpuctx->ctx.lock, &cpuctx_lock);
cpuctx->ctx.type = cpu_context;
cpuctx->ctx.pmu = pmu;
__perf_cpu_hrtimer_init(cpuctx, cpu);
* task or CPU context:
*/
if (move_group) ... |
<vulnerable_code> # As of Synapse v1.4.0 this option also affects any outbound requests to identity
# servers provided by user input.
#
# (0.0.0.0 and :: are always blacklisted, whether or not they are explicitly
# listed here, since they correspond to unroutable addresses.)
... |
<vulnerable_code> if "url" not in self.data:
raise PusherConfigException("'url' required in data for HTTP pusher")
self.url = self.data["url"]
self.http_client = hs.get_proxied_http_client()
self.data_minus_url = {}
self.data_minus_url.update(self.data)
del sel... |
<vulnerable_code>
@cache_in_self
def get_simple_http_client(self) -> SimpleHttpClient:
return SimpleHttpClient(self)
@cache_in_self
def get_proxied_http_client(self) -> SimpleHttpClient:
return SimpleHttpClient(
self,
http_proxy=os.getenvb(b"http_proxy"),
... |
<vulnerable_code> config = self.default_config()
config["start_pushers"] = True
hs = self.setup_test_homeserver(config=config, proxied_http_client=m)
return hs
<commit_title>[PATCH] Apply the federation_ip_range_blacklist to push.<commit_description><fixed_code>
config = self.de... |
<vulnerable_code> self.make_worker_hs(
"synapse.app.pusher",
{"start_pushers": True},
proxied_http_client=http_client_mock,
)
event_id = self._create_pusher_and_send_msg("user")
"worker_name": "pusher1",
"pusher_instances": ["pu... |
<vulnerable_code> AVDictionary *avio_opts;
int strict_std_compliance;
char *allowed_extensions;
} HLSContext;
static int read_chomp_line(AVIOContext *s, char *buf, int maxlen)
HLSContext *c = v->parent->priv_data;
int ret, i;
int just_opened = 0;
restart:
if (!v->needed)
reload_inte... |
<vulnerable_code> });
}
if (perspectiveCfg.inTreeContextMenu("asset.add.importFromServer")) {
menuItems.push({
text: t("import_from_server"),
handler: t... |
<vulnerable_code> mean_error,
mean_error_per_pixel;
size_t
index;
ssize_t
y;
assert(image != (Image *) NULL);
break;
for (x=0; x < (ssize_t) image->columns; x++)
{
index=GetPixelIndex(image,p);
if (image->alpha_trait == BlendPixelTrait)
{
alpha=(double... |
<vulnerable_code> SetPixelViaPixelInfo(image,&image->background_color,q);
q+=GetPixelChannels(image);
}
continue;
}
memset(scanline,0,columns*sizeof(*scanline));<commit_title>[PATCH] https://github.com/ImageMagick/ImageMagick/issues/1540<commit_description><fixed_code>
... |
<vulnerable_code> const struct rule_actions *actions = rule_get_actions(rule);
/* A rule may not be reinserted. */
ovs_assert(rule->state == RULE_INITIALIZED);
if (rule->hard_timeout || rule->idle_timeout) {
ovs_list_insert(&ofproto->expirable, &rule->expirable);<commit_title>[PATCH] ofproto: F... |
<vulnerable_code> traditional CLI. To enable ``beeline``, set the use_beeline param in the
extra field of your connection as in ``{ "use_beeline": true }``
Note that you can also set default hive CLI parameters using the
``hive_cli_params`` to be used in your connection as in
``{"hive_cli_params": "... |
<vulnerable_code> mapred_queue: str | None = None,
mapred_queue_priority: str | None = None,
mapred_job_name: str | None = None,
**kwargs: Any,
) -> None:
super().__init__(**kwargs)
self.mapred_queue = mapred_queue
self.mapred_queue_priority = mapred_queue_prio... |
<vulnerable_code># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from twisted.test.proto_helpers import MemoryReactor
import synapse.rest.admin
from synapse.rest.client import login, receip... |
<vulnerable_code># See the License for the specific language governing permissions and
# limitations under the License.
import json
from http import HTTPStatus
from typing import List, Optional
from parameterized import parameterized
import synapse.rest.admin
from synapse.api.constants import (
EduTypes,
Eve... |
<vulnerable_code> val = min_t(u32, val, sysctl_wmem_max);
set_sndbuf:
sk->sk_userlocks |= SOCK_SNDBUF_LOCK;
sk->sk_sndbuf = max_t(u32, val * 2, SOCK_MIN_SNDBUF);
/* Wake up sending tasks if we upped the value. */
sk->sk_write_space(sk);
break;
* returning the value we actually used in getsockopt
* is t... |
<vulnerable_code> return web3.utils.bytesToHex(short);
}
function from2098Format (signature) {
const short = web3.utils.hexToBytes(signature);
if (short.length !== 64) {
throw new Error('invalid signature length (expected short format)');
}
short.push((short[32] >> 7) + 27);
short[32] &= (1 << 7) - 1; /... |
<vulnerable_code> continue;
}
if (is_private)
{
parser_check_duplicated_private_field (context_p, SCANNER_PRIVATE_FIELD_PROPERTY_GETTER_SETTER);
}
bool is_constructor_literal = context_p->token.type == LEXER_LITERAL && parser_is_constructor_literal (context_p);
if (is_private && is... |
<vulnerable_code>check_syntax_error("class A { static #a(){}; #a; }");
check_syntax_error("class A extends B{ foo(){ super.#a }}");
check_syntax_error("class A extends function() { x = this.#foo; }{ #foo; };");
class A {
#a = 1;<commit_title>[PATCH] Fix duplicated private identifier lookup<commit_description>This pa... |
<vulnerable_code>void
Mat_VarPrint( matvar_t *matvar, int printdata )
{
int err;
size_t nelems = 0, i, j;
const char *class_type_desc[18] = {"Undefined","Cell Array","Structure",
"Object","Character Array","Sparse Array","Double Precision Array",
if ( NULL != matvar->dims ) {
int k;
... |
<vulnerable_code>/* License: BSD-3-clause */
/* Contributions: Khaled Hosny, Joe Da Silva */
/* This file was generated using the program 'makeutype' for Unicode_version 9.0 */
#include <utype.h>
struct arabicforms ArabicForms[] = {
/* initial, medial, final, isolated, isletter, joindual, required_lig_with_alef */<... |
<vulnerable_code>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <utype.h>
#include "utype.c"
#define ACUTE 0x1
char buffer[400], buffer2[400];
out = fopen("gdrawbuildchars.c","w");
fprintf(out,"#include \"gdrawP.h\"\n\n" );
for ( i=0; names[i].name!=NULL; ++i )
fprintf(out,"... |
<vulnerable_code> */
#include <fontforge-config.h>
#define UnicodeMajor 9
#define UnicodeMinor 0
/* Build a ctype array out of the UnicodeData.txt and PropList.txt files */
0xfe21, 0,
0xfe27, 0,
0xfe28, 0,
0x11176, 0, /* ? */
0x1f670, 0, 0x1f671, 0, 0x1f672, 0, 0x1f673, 0, /* chars? keep? */
-... |
<vulnerable_code>#include <ustring.h>
#include <utype.h>
#include <charset.h>
#include <chardata.h>
int local_encoding = e_iso8859_1;
#if HAVE_ICONV<commit_title>[PATCH] Unicode 11.0<commit_description>Update from unicode charts 9.0 to unicode charts 11.0, closes #3304
Fixed some c<->po copy-pastes in makeutype.c that... |
<vulnerable_code>
#include "utype.h"
/* This file was generated using the program 'makeutype' for Unicode_version 9.0 */
const unsigned short ff_unicode_tolower[]= { 0,
0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, /* 0x0000 */
0x0008, 0x0009, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0x000f,
0x... |
<vulnerable_code> }
if ( ia==0 && baserch!=basech && basersc!=NULL ) {
ybase = SplineCharFindSlantedBounds(basersc,layer,&bbb,ia);
if ( ff_unicode_utype2[1+ch] & (FF_UNICODE_ABOVE|FF_UNICODE_BELOW) ) {
/* if unicode.org character definition matches ABOVE or BELOW, then... */
bbb.maxy = bb.maxy;
... |
<vulnerable_code>#include <utype.h>
#define ASFIRST (-1)
struct unicoderange unicoderange[] = {
/* { N_("Unicode"), 0, 0x10ffff, ' ' }, */
{ N_("Unicode Basic Multilingual Plane"), 0, 0xffff, ' ', false, 0, 0 },
{ N_("Basic Multilingual Plane"), 0, 0xffff, ' ', 2, 0, 0 },
{ N_("Alphabetic"), 0, 0x1fff... |
<vulnerable_code>}
/* Generate default settings for the entries in ligature lookup
* subtables. */
static char *LigDefaultStr(int uni, char *name, int alt_lig ) {
const unichar_t *alt=NULL, *pt;
char *components = NULL, *tmp;
else if ( isdecompositionnormative(uni) &&
unicode_alternates[uni>>8]!=NULL &&... |
<vulnerable_code> else if ( inschr.dsp_mode==d_dec )
sprintf( buffer, "%d", ch );
else if ( inschr.map==em_unicode )
sprintf( buffer, "%d,%d", (ch>>8), (ch&0xff) );
else
sprintf( buffer, "%d,%d", (ch>>8)-0x21, (ch&0xff)-0x21 );
uc_strcpy(ubuffer,buffer);
GGadgetSetTitle(GWidgetGetControl(inschr.ic... |
<vulnerable_code>/* Copyright (C) 2000-2012 by George Williams */
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of conditions ... |
<vulnerable_code>
#define MAX_LINELEN 2047
#define BOOST_UUID (1)
using namespace std ;
bool normalizeSipUri( std::string& uri, int brackets ) {
su_home_t* home = theOneAndOnlyController->getHome() ;
char *s ;
char buf[255];
char obuf[255] ;
char hp[64] ;
char const... |
<vulnerable_code> }
//prevent looping messages
normalizeSipUri( requestUri, 0 ) ;
if( isLocalSipUri( requestUri ) ) {
throw std::runtime_error("can not send request to myself") ;
}<commit_title>[PATCH] sending an invite with a request-uri long... |
<vulnerable_code> return true;
}
QJsonParseError error{};
auto json = QJsonDocument::fromJson(reply()->readAll(), &error);
emit jsonReceived(json, reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt());
return true;
}<commit_title>[PATCH] improve logging when receiving metadata... |
<vulnerable_code> ask_yes_no_if_possible("Deletion of directory '%s' failed. "
"Should I try again?", pathname))
ret = _wrmdir(wpathname);
return ret;
}
<commit_title>[PATCH] checkout: fix bug that makes checkout follow symlinks in<commit_description><fixed_code>
ask_yes_no_if_possible("Delet... |
<vulnerable_code> */
static int threaded_has_dirs_only_path(struct cache_def *cache, const char *name, int len, int prefix_len)
{
return lstat_cache(cache, name, len,
FL_DIR|FL_FULLPATH, prefix_len) &
FL_DIR;
{
do_remove_scheduled_dirs(0);
}<commit_title>[PATCH] checkout: fix bug that makes checkout follow sy... |
<vulnerable_code>@app.route("/file/<path:path>", methods=["GET"])
@login_check
def file(path):
path = secure_filename(path)
if app.interface.encrypt and isinstance(app.interface.examples, str) and path.startswith(app.interface.examples):
with open(os.path.join(app.cwd, path), "rb") as encrypted_file:
... |
<vulnerable_code> else
return 0;
}
max_decomp_size = info->num_sections * info->max_decomp_size;
if (max_decomp_size == 0 || max_decomp_size > 0x2f000000) // 790Mb
{
info->name, info->num_sections, info->max_decomp_size);
return DWG_ERR_VALUEOUTOFBOUNDS;
}
decomp = ... |
<vulnerable_code>#include "nautilus-global-preferences.h"
#include "nautilus-link.h"
#include "nautilus-profile.h"
#include <eel/eel-glib-extensions.h>
#include <gtk/gtk.h>
#include <libxml/parser.h>
{
GFile *location;
gboolean res;
if (!is_launcher)
{
return TRUE;
}
if (nautilus_file_... |
<vulnerable_code>#define COPY_FORCE _("Copy _Anyway")
static void
mark_desktop_file_trusted (CommonJob *common,
GCancellable *cancellable,
GFile *file,
gboolean interactive);
static gboolean
is_all_button_text (const char ... |
<vulnerable_code> NAUTILUS_METADATA_KEY_CUSTOM_ICON_NAME,
NAUTILUS_METADATA_KEY_SCREEN,
NAUTILUS_METADATA_KEY_EMBLEMS,
NULL
};
<commit_title>[PATCH] mime-actions: use file metadata for trusting desktop files<commit_description>Currently we only trust desktop files that have the executable bit
set, and do... |
<vulnerable_code>#include "nautilus-program-choosing.h"
#include "nautilus-global-preferences.h"
#include "nautilus-signaller.h"
#define DEBUG_FLAG NAUTILUS_DEBUG_MIME
#include "nautilus-debug.h"
#define RESPONSE_RUN 1000
#define RESPONSE_DISPLAY 1001
#define RESPONSE_RUN_IN_TERMINAL 1002
#define RESPONSE_MARK_TRUSTED... |
<vulnerable_code>static int expand_template(struct sss_certmap_ctx *ctx,
struct parsed_template *parsed_template,
struct sss_cert_content *cert_content,
char **expanded)
{
int ret;
char *exp = NULL;
if (strcmp("issuer_dn", par... |
<vulnerable_code> goto done;
}
ret = sss_certmap_get_search_filter(ctx, der, der_size, &filter, &domains);
if (ret != 0) {
DEBUG(SSSDBG_OP_FAILURE, "sss_certmap_get_search_filter failed.\n");
goto done;
}
<commit_title>[PATCH] certmap: sanitize LDAP search filter<commit_descripti... |
<vulnerable_code> &filter, &domains);
assert_int_equal(ret, 0);
assert_non_null(filter);
assert_string_equal(filter, "rule100=<I>CN=Certificate Authority,O=IPA.DEVEL"
"<S>CN=ipa-devel.ipa.devel,O=IPA.DEVEL");
assert_null(domains);
... |
<vulnerable_code> return sss_hash_create_ex(mem_ctx, count, tbl, 0, 0, 0, 0, NULL, NULL);
}
errno_t sss_filter_sanitize_ex(TALLOC_CTX *mem_ctx,
const char *input,
char **sanitized,
const char *ignore)
{
char *output;
... |
<vulnerable_code>
#define EOK 0
int split_on_separator(TALLOC_CTX *mem_ctx, const char *str,
const char sep, bool trim, bool skip_empty,
char ***_list, int *size)
return false;
}<commit_title>[PATCH] certmap: sanitize LDAP search filter<commit_description>The sss_cert... |
<vulnerable_code>
if (subBox.type == kJp2BoxTypeColorHeader) {
long pad = 3; // don't know why there are 3 padding bytes
if (bPrint) {
out << " | pad:";
fo... |
<vulnerable_code> JAS_CAST(int, pchg->lyrnoend); ++pi->lyrno) {
for (pi->compno = pchg->compnostart, pi->picomp =
&pi->picomps[pi->compno]; pi->compno < pi->numcomps &&
pi->compno < JAS_CAST(int, pchg->compnoend); ++pi->compno, ++pi->picomp) {
if (pi->rlvlno >= pi->picomp->numrlvls) {
continue;... |
<vulnerable_code> tile = dec->curtile;
pi = tile->pi;
for (;;) {
if (!tile->pkthdrstream || jas_stream_peekc(tile->pkthdrstream) == EOF) {
switch (jpc_dec_lookahead(in)) {
case JPC_MS_EOC:
case JPC_MS_SOT:
return 0;
break;
case JPC_MS_SOP:
case JPC_MS_EPH:
case 0:
break;
default:
return -1;
... |
<vulnerable_code> if (iter->substr_cur == iter->eostr)
return 1;
while (!*(iter->substr_cur))
iter->substr_cur++;
iter->substr_end = strchr(iter->substr_cur, ',');
if (!iter->substr_end)
iter->substr_end = iter->eostr;
else
*(iter->substr_end) = '\0';
char *range_sep = s... |
<vulnerable_code># myFlask.py
import functools
print = functools.partial(print, flush=True)
from flask import Flask, flash, redirect, render_template, request, session, send_file, send_from_directory
from werkzeug.security import check_password_hash
import socket
import... |
<vulnerable_code> }
}
private void test(String userName, boolean canRead, boolean canWrite) throws Exception {
ModelControllerClient client = getClientForUser(userName);
<commit_title>[PATCH 2/2] [WFCORE-5511] Just use a single regular expression to<commit_description><fixed_code>
}
... |
<vulnerable_code>
package org.jboss.as.controller.access.constraint;
import org.jboss.as.controller.ExpressionResolver;
import org.jboss.as.controller.VaultReader;
import org.jboss.as.controller.access.Action;
import org.jboss.as.controller.access.JmxAction;
import org.jboss.as.controller.access.JmxTarget;
public... |
<vulnerable_code> # secp256r1 public key, ed25519 signing key
cert = load_ssh_public_identity(
b"ecdsa-sha2-nistp256-cert-v01@openssh.com AAAAKGVjZHNhLXNoYTItbm"
b"lzdHAyNTYtY2VydC12MDFAb3BlbnNzaC5jb20AAAAgtdU+dl9vD4xPi8afxERYo"
b"s0c0d9/3m7XGY6fGeSkqn0AAAAIbmlzdHAyNTY... |
<vulnerable_code> self.onComplete(self.file, self.directory);
};
exports.sync = function(fn, owner) {
return function() {
var args = [].slice.call(arguments);
var params;
var callback;
var executed = false;
var self = owner || this;
args.push(function() {
params = arguments;
if (!executed && callb... |
<vulnerable_code>
## py25 has no builtin ssl module
## only >=py32 has ssl.match_hostname
try:
import ssl
try:
from ssl import match_hostname
except ImportError:
from backwardcompat_ssl import match_hostname
except ImportError:
ssl = None<commit_title>[PATCH] log relevant message if URL... |
<vulnerable_code>from pip.backwardcompat import (WindowsError, BytesIO,
Queue, urlparse,
URLError, HTTPError, u,
product, url2pathname)
from pip.backwardcompat import Empty as QueueEmpty
from pip.download import urlopen, pat... |
<vulnerable_code> if (!e || e == p)
goto not_found;
r = parse_uid(e + 1, &uid);
if (r < 0)
goto not_found;
if (!e || e == p)
goto not_found;
r = parse_gid(e + 1, &gid);
if (r < 0)
goto not_found;<commit_titl... |
<vulnerable_code> }
iterateMustacheNode($.root())
// --------------------------------
// STEP: POST
// --------------------------------<commit_title>[PATCH] fix: add v-pre to pre tags at render time<commit_description><fixed_code>
}
iterateMustacheNode($.root())
$('pre').each((idx, elm)... |
<vulnerable_code> # Returned for federation requests where we can't process a request as we
# can't ensure the sending server is in a room which is partial-stated on
# our side.
# Part of MSC3706-rei1.
UNABLE_DUE_TO_PARTIAL_STATE = "ORG.MATRIX.MSC3706_UNABLE_DUE_TO_PARTIAL_STATE"
class CodeMessageE... |
<vulnerable_code> # MSC3706 (server-side support for partial state in /send_join responses)
self.msc3706_enabled: bool = experimental.get("msc3706_enabled", False)
# experimental support for faster joins over federation (msc2775, msc3706)
# requires a target server with msc3706_enabled e... |
<vulnerable_code>import CustomFields from '../customfields.js'
import { checkAuthentication } from '../../../utils/server_method_helpers'
Meteor.methods({
addCustomField: function addCustomField({
check(type, String)
check(desc, String)
check(possibleValues, Match.Maybe([String]))
checkAuthentication... |
<vulnerable_code>import AdmZip from 'adm-zip'
import Extensions from './extensions'
import { checkAuthentication } from '../../utils/server_method_helpers'
Meteor.methods({
addExtension({ zipFile }) {
checkAuthentication(this)
const regex = /^data:.+\/(.+);base64,(.*)$/
const matches = zipFile.match(rege... |
<vulnerable_code> }
},
updateOidcSettings(configuration) {
checkAdminAuthentication(this)
ServiceConfiguration.configurations.remove({
service: 'oidc',
})
ServiceConfiguration.configurations.insert(configuration)
}
})<commit_title>[PATCH] =?UTF-8?q?=F0=9F=90=9B=20fixed=20a=20bug=20in=20th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.