text stringlengths 79 3.72M |
|---|
<vulnerable_code> @PostConstruct
public void init() {
xStream = XStreamHelper.createXStreamInstance();
xStream.alias("room", OpenMeetingsRoom.class);
xStream.omitField(OpenMeetingsRoom.class, "property");
xStream.omitField(OpenMeetingsRoom.class, "numOfUsers");<commit_title>[PATCH] OO-5548: setup security of X... |
<vulnerable_code>
private static final Logger log = Tracing.createLoggerFor(BinderXStream.class);
private static final XStream myStream = XStreamHelper.createXStreamInstanceForDBObjects();
public static final Binder copy(Binder binder) {
String stringuified = myStream.toXML(binder);
try(InputStream inStream =... |
<vulnerable_code>
private static final XStream xstream = XStreamHelper.createXStreamInstance();
static {
xstream.alias("citation", org.olat.modules.portfolio.model.CitationXml.class);
xstream.aliasType("citation", org.olat.modules.portfolio.model.CitationXml.class);
}<commit_title>[PATCH] OO-5548: setup security... |
<vulnerable_code> private static XStream configXstream = XStreamHelper.createXStreamInstance();
static {
configXstream.alias("deliveryOptions", BinderDeliveryOptions.class);
XStream.setupDefaultSecurity(configXstream);
Class<?>[] types = new Class[] {
BinderDeliveryOptions.class
};<commit_title>[PATCH] OO-... |
<vulnerable_code>
private static XStream metadatXstream = XStreamHelper.createXStreamInstance();
static {
metadatXstream.alias("item", QuestionItemImpl.class);
metadatXstream.alias("educationalContext", QEducationalContext.class);
metadatXstream.alias("itemType", QItemType.class);<commit_title>[PATCH] OO-55... |
<vulnerable_code>
private static final XStream qitemXStream = XStreamHelper.createXStreamInstanceForDBObjects();
static {
qitemXStream.alias("questionItem", QuestionItemImpl.class);
qitemXStream.alias("taxonomyLevel", TaxonomyLevelImpl.class);
qitemXStream.alias("educationalContext", QEducationalContext.class)... |
<vulnerable_code>
private static final XStream xstream = XStreamHelper.createXStreamInstance();
static {
XStream.setupDefaultSecurity(xstream);
Class<?>[] types = new Class[] {
MultiGroupBy.class, GroupBy.class, AnalysisSearchParameter.class, QualityDataCollectionRefImpl.class,
RepositoryEntryRefImpl.cla... |
<vulnerable_code>
private static final XStream ruleXStream = XStreamHelper.createXStreamInstance();
static {
ruleXStream.alias("rule", org.olat.modules.reminder.model.ReminderRuleImpl.class);
ruleXStream.alias("rules", org.olat.modules.reminder.model.ReminderRules.class);
ruleXStream.alias("reminders", org.ola... |
<vulnerable_code> private static final Logger log = Tracing.createLoggerFor(ScormMainManager.class);
private static XStream configXstream = XStreamHelper.createXStreamInstance();
static {
XStream.setupDefaultSecurity(configXstream);
Class<?>[] types = new Class[] {
ScormPackageConfig.class, DeliveryOptions.cl... |
<vulnerable_code>
private static final XStream competenceXStream = XStreamHelper.createXStreamInstanceForDBObjects();
static {
competenceXStream.alias("competence", TaxonomyCompetenceImpl.class);
competenceXStream.alias("taxonomyLevel", TaxonomyLevelImpl.class);
competenceXStream.ignoreUnknownElements();<commi... |
<vulnerable_code> */
public boolean getFrame(VFSLeaf video, int frameNumber, VFSLeaf frame) throws IOException;
/**
* Read the the metdatadata-xml in the videoresource folder
* @param videoResource
* @return
*/
public VideoMetadata readVideoMetadataFile(OLATResource videoResource);
/**
* Trigger the tr... |
<vulnerable_code>import org.olat.core.util.vfs.VFSManager;
import org.olat.core.util.vfs.VFSStatus;
import org.olat.core.util.vfs.filters.VFSItemFilter;
import org.olat.core.util.xml.XStreamHelper;
import org.olat.fileresource.FileResourceManager;
import org.olat.fileresource.types.ResourceEvaluation;
import org.olat.m... |
<vulnerable_code>import org.olat.core.util.vfs.VFSLeaf;
import org.olat.core.util.xml.XStreamHelper;
import org.olat.modules.video.VideoMeta;
import org.olat.modules.video.model.VideoMetaImpl;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.security.ExplicitTypePermission;
private static fi... |
<vulnerable_code>
private static final XStream xstream = XStreamHelper.createXStreamInstance();
static {
XStream.setupDefaultSecurity(xstream);
Class<?>[] types = new Class[] {
VideoMarker.class, VideoMarkerImpl.class, VideoMarkers.class, VideoMarkersImpl.class,
VideoQuestion.class, VideoQuestionImpl.cla... |
<vulnerable_code> VideoTranscoding videoTranscoding = (VideoTranscoding) link.getUserObject();
if (videoTranscoding == null) {
// this is the master video
// VideoMetadata videoMetadata = videoManager.readVideoMetadataFile(videoResource);
VideoMeta videoMetadata = videoManager.getVideoMetadata(videoReso... |
<vulnerable_code> @PostConstruct
public void init() {
xStream = XStreamHelper.createXStreamInstance();
xStream.alias("vBooking", ViteroBooking.class);
xStream.omitField(ViteroBooking.class, "property");
}<commit_title>[PATCH] OO-5548: setup security of XStream by default<commit_description><fixed_code>
@PostCo... |
<vulnerable_code> public FeedFileStorge() {
fileResourceManager = FileResourceManager.getInstance();
xstream = XStreamHelper.createXStreamInstance();
xstream.alias("feed", FeedImpl.class);
xstream.aliasField("type", FeedImpl.class, "resourceableType");
xstream.omitField(FeedImpl.class, "id");<commit_title>[PA... |
<vulnerable_code>
private static final XStream xstream = XStreamHelper.createXStreamInstance();
static {
xstream.alias("item", ItemImpl.class);
}
<commit_title>[PATCH] OO-5548: setup security of XStream by default<commit_description><fixed_code>
private static final XStream xstream = XStreamHelper.createXStre... |
<vulnerable_code>import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.springframework.stereotype.Service;
import com.thoughtworks.xstream.XStream;
/**
* Description:
private static final XStream xmlXStream ... |
<vulnerable_code>
private static final XStream xstream = XStreamHelper.createXStreamInstance();
static {
xstream.alias(PROP_ROOT, RepositoryEntryImport.class);
xstream.aliasField(PROP_SOFTKEY, RepositoryEntryImport.class, "softkey");
xstream.aliasField(PROP_RESOURCENAME, RepositoryEntryImport.class, "resourcen... |
<vulnerable_code>
private static final Logger log = Tracing.createLoggerFor(CourseWebService.class);
private static final XStream myXStream = XStreamHelper.createXStreamInstance();
public static final CacheControl cc = new CacheControl();
static {
Date lastModified = new Date(runStructureItem.getLastModified()... |
<vulnerable_code>import org.olat.core.util.vfs.VFSItem;
import org.olat.core.util.vfs.VFSLeaf;
import org.olat.core.util.vfs.VFSManager;
import org.olat.fileresource.types.VideoFileResource;
import org.olat.modules.video.VideoManager;
import org.olat.modules.video.VideoMetadata;
import org.olat.modules.video.manager.Vi... |
<vulnerable_code> Item xmlItem = QTIEditHelper.readItemXml(leaf);
return xmlItem.getTitle();
} catch (NullPointerException e) {
log.warn("Cannot read files from dir: " + item.getDirectory());
}
return null;
}
if (!uhd.getBooleanDataValue(MIGRATE_DIALOG)) {
try {
XStream xstream = XStreamHelper.c... |
<vulnerable_code><commit_title>[PATCH] OO-5548: setup security of XStream by default<commit_description><fixed_code>
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file ex... |
<vulnerable_code>
import javax.sql.DataSource;
import org.olat.core.commons.persistence.DBFactory;
import org.olat.core.configuration.Initializable;
import org.olat.core.gui.control.Event;
import org.olat.core.logging.AssertException;
import org.apache.logging.log4j.Logger;
import org.olat.core.logging.StartupExceptio... |
<vulnerable_code>
private static XStream homeConfigXStream = XStreamHelper.createXStreamInstance();
static {
XStream.setupDefaultSecurity(homeConfigXStream);
Class<?>[] types = new Class[] {
HomePageConfig.class
};
}
}
} catch (Exception e) {
log.error("Error while loading homepage config f... |
<vulnerable_code>
private static final XStream interestsXStream = XStreamHelper.createXStreamInstance();
static {
interestsXStream.alias("category", UserInterestsCategory.class);
interestsXStream.alias("categories", List.class);
interestsXStream.addImplicitCollection(UserInterestsCategory.class, "subcategories... |
<vulnerable_code><commit_title>[PATCH] OO-5548: setup security of XStream by default<commit_description><fixed_code>
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file ex... |
<vulnerable_code>import org.olat.core.id.Identity;
import org.olat.core.logging.Tracing;
import org.olat.core.util.WebappHelper;
import org.olat.core.util.xml.XStreamHelper;
import org.olat.repository.RepositoryEntry;
import org.olat.test.JunitTestHelper;
import org.olat.test.OlatTestCase;
ptask.setStatus(TaskStatus.... |
<vulnerable_code>import org.olat.core.commons.persistence.DB;
import org.olat.core.dispatcher.mapper.manager.MapperDAO;
import org.olat.core.dispatcher.mapper.model.PersistedMapper;
import org.olat.core.util.xml.XStreamHelper;
import org.olat.test.OlatTestCase;
import org.springframework.beans.factory.annotation.Autowi... |
<vulnerable_code> @BeforeClass
public static void loadBouncyCastle() {
new PersistedProperties(event -> {
//
});
}
<commit_title>[PATCH] OO-5548: setup security of XStream by default<commit_description><fixed_code>
@BeforeClass
public static void loadBouncyCastle() {
new PersistedProperties(event -> {
... |
<vulnerable_code><commit_title>[PATCH] OO-5548: setup security of XStream by default<commit_description><fixed_code>
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file ex... |
<vulnerable_code> org.olat.core.util.openxml.OpenXMLDocumentTest.class,
org.olat.core.util.pdf.PdfDocumentTest.class,
org.olat.core.util.xml.XMLDigitalSignatureUtilTest.class,
org.olat.core.configuration.EDConfigurationTest.class,
org.olat.core.id.context.BusinessControlFactoryTest.class,
org.olat.core.id.context.... |
<vulnerable_code>import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Path;
import org.olat.core.commons.modules.bc.FolderConfig;
import org.olat.core.commons.services.vfs.VFSMetadata;
import org.olat.co... |
<vulnerable_code><commit_title>[PATCH] OO-5548: setup security of XStream by default<commit_description><fixed_code>
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file ex... |
<vulnerable_code> r = sc_asn1_decode_choice(ctx, asn1_prkey, *buf, *buflen, buf, buflen);
if (r < 0) {
/* This might have allocated something. If so, clear it now */
if (asn1_com_prkey_attr->flags & SC_ASN1_PRESENT &&
asn1_com_prkey_attr[0].flags & SC_ASN1_PRESENT) {
free(asn1_com_prkey_attr[0].parm);
}
}... |
<vulnerable_code> unsigned int i;
uint_fast8_t tmp;
/* Eliminate compiler warning about unused variables. */
cstate = 0;
jpc_getuint32(in, &siz->tilexoff) ||
jpc_getuint32(in, &siz->tileyoff) ||
jpc_getuint16(in, &siz->numcomps)) {
return -1;
}
if (!siz->width || !siz->height || !siz->tilewidth ||
... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.escapeAll` for the
* Bourne-again shell (Bash).
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import {... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.escapeAll` for the Windows
* Command Prompt.
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import { es... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration test for the CommonJS version of
* `shescape.escapeAll`.
* @license MIT
*/
import { testProp } from "@fast-check/ava";
import * as fc from "fast-check";
import { arbi... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.escapeAll` for the C shell
* (csh).
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import { escapeAll }... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for invalid use of `shescape.escapeAll`.
* @license MIT
*/
import { testProp } from "@fast-check/ava";
import test from "ava";
import { arbitrary, constants, mac... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.escapeAll` for Windows
* PowerShell.
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import { escapeAll ... |
<vulnerable_code>/**
* @overview Contains integration test.skips for `shescape.escapeAll`.
* @license MIT
*/
import { testProp } from "@fast-check/ava";
import test from "ava";
import * as fc from "fast-check";
import { arbitrary, constants, generate, macros } from "./_.js";
import { escape, escapeAll } from "she... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.escapeAll` for the Z shell
* (Zsh).
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import { escapeAll }... |
<vulnerable_code>/**
* @overview Contains integration tests for `shescape.escape` for the
* Bourne-again shell (Bash).
* @license MIT
*/
import { constants, generate } from "../_.js";
import { escape as escape } from "shescape";
const runTest = constants.isWindows ? test.skip : test;
runTest(`input is escaped f... |
<vulnerable_code>
import { constants, generate } from "../_.js";
import { escape as escape } from "shescape";
const runTest = constants.isWindows ? test : test.skip;
<commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
import { constants, generate } from "../_.js";
import { ... |
<vulnerable_code>
import { arbitrary } from "../_.js";
import { escape as escape } from "shescape";
import { escape as escapeCjs } from "../../../index.cjs";
testProp(<commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
import { arbitrary } from "../_.js";
import { escape } ... |
<vulnerable_code>
import { arbitrary, constants, macros } from "../_.js";
import { escape as escape } from "shescape";
testProp("invalid arguments", [arbitrary.shescapeOptions()], (t, options) => {
for (const { value } of constants.illegalArguments) {<commit_title>[PATCH] Split integration tests into more files<com... |
<vulnerable_code>
import { arbitrary } from "../_.js";
import { escape as escape } from "shescape";
testProp(
"return values",<commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
import { arbitrary } from "../_.js";
import { escape } from "shescape";
testProp(
"return v... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.quoteAll` for the
* Bourne-again shell (Bash).
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import { ... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.quoteAll` for the Windows
* Command Prompt.
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import { quo... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration test for the CommonJS version of
* `shescape.quoteAll`.
* @license MIT
*/
import { testProp } from "@fast-check/ava";
import * as fc from "fast-check";
import { arbit... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.quoteAll` for the Debian
* Almquist shell (Dash).
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for invalid use of `shescape.quote`.
* @license MIT
*/
import { testProp } from "@fast-check/ava";
import test from "ava";
import { arbitrary, constants, macros ... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.quoteAll` for Windows
* PowerShell.
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import { quoteAll } ... |
<vulnerable_code>/**
* @overview Contains integration tests for `shescape.quoteAll`.
* @license MIT
*/
import test from "ava";
import * as fc from "fast-check";
import { arbitrary, constants, generate, macros } from "./_.js";
import { quote, quoteAll as quoteAll } from "shescape";
import { quoteAll as quoteAllCjs... |
<vulnerable_code>/**
* @overview Contains integration tests for `shescape.quote`.
* @license MIT
*/
import { testProp } from "@fast-check/ava";
import test from "ava";
import { arbitrary, constants, generate, macros } from "./_.js";
import { quote as quote } from "shescape";
import { quote as quoteCjs } from "../... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.escape` for the
* Bourne-again shell (Bash).
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import { es... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.quote` for the Windows
* Command Prompt.
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import { quote ... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for the CommonJS version of
* `shescape.quote`.
* @license MIT
*/
import { testProp } from "@fast-check/ava";
import { arbitrary } from "../_.js";
import { quo... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.quote` for the C shell
* (csh).
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import { quote } from "s... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.quote` for the Debian
* Almquist shell (Dash).
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import { ... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for invalid use of `shescape.quote`.
* @license MIT
*/
import { testProp } from "@fast-check/ava";
import test from "ava";
import { arbitrary, constants, macros ... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for `shescape.quote` for Windows
* PowerShell.
* @license MIT
*/
import test from "ava";
import { constants, generate } from "../_.js";
import { quote } from "... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for valid use of `shescape.quote`.
* @license MIT
*/
import { testProp } from "@fast-check/ava";
import { arbitrary } from "../_.js";
import { quote } from "she... |
<vulnerable_code><commit_title>[PATCH] Split integration tests into more files<commit_description><fixed_code>
/**
* @overview Contains integration tests for the CommonJS version of the testing
* implementation of shescape.
* @license MIT
*/
import { testProp } from "@fast-check/ava";
import * as fc from "fast-che... |
<vulnerable_code>import { testProp } from "@fast-check/ava";
import * as fc from "fast-check";
import { arbitrary } from "./_.js";
import * as shescape from "shescape";
import { shescape as stubscape } from "shescape/testing";
import { shescape as stubscapeCjs } from "../../testing.cjs";
testProp(
"escape (stubsca... |
<vulnerable_code>/******/
/******/ var hotApplyOnUpdate = true;
/******/ // eslint-disable-next-line no-unused-vars
/******/ var hotCurrentHash = "a247ce26cf6b01b4c628";
/******/ var hotRequestTimeout = 10000;
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentChildModule;
/* harmony import */ var cor... |
<vulnerable_code>/******/
/******/ var hotApplyOnUpdate = true;
/******/ // eslint-disable-next-line no-unused-vars
/******/ var hotCurrentHash = "b9199d2b4f6fdc1166b5";
/******/ var hotRequestTimeout = 10000;
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentChildModule;
"use strict";
__webpack_req... |
<vulnerable_code> return NULL;
mutex_lock(&mut);
mc->id = idr_alloc(&multicast_idr, mc, 0, 0, GFP_KERNEL);
mutex_unlock(&mut);
if (mc->id < 0)
goto error;
goto err3;
}
mutex_unlock(&file->mut);
ucma_put_ctx(ctx);
return 0;<commit_title>[PATCH] infiniband: fix a possible use-after-free bug<commit_descript... |
<vulnerable_code> return 1;
}
/* check CP/SIT/NAT/SSA/MAIN_AREA area boundary */
if (sanity_check_area_boundary(sbi, bh))
return 1;<commit_title>[PATCH] f2fs: sanity check segment count<commit_description>F2FS uses 4 bytes to represent block address. As a result, supported
size of disk is 16 TB and it equals to ... |
<vulnerable_code>
_EXPECT_NO = ((None, None),)
from lxml import etree
parser_off = etree.XMLParser(resolve_entities=False)
parser_onn = etree.XMLParser(resolve_entities=True)
data_file_tmp = _write_temp_file(_DATA2)
doc_type_temp = _DOCTYPE % data_file_tmp
actual11 = fromxml(temp_file1, 't... |
<vulnerable_code> }
this_binding = arrow_func_p->this_binding;
break;
}
<commit_title>[PATCH] Fix arrow function this binding resolving if environment<commit_description><fixed_code>
}
this_binding = arrow_func_p->this_binding;
if (JERRY_UNLIKELY (this_binding == ECMA_VALUE_UNI... |
<vulnerable_code><commit_title>[PATCH] Fix arrow function this binding resolving if environment<commit_description><fixed_code>
// Copyright JS Foundation and other contributors, http://js.foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance ... |
<vulnerable_code> s.add("org.apache.activemq.jms.pool.XaPooledConnectionFactory"); // pool-jms
s.add("org.apache.activemq.jms.pool.JcaPooledConnectionFactory");
DEFAULT_NO_DESER_CLASS_NAMES = Collections.unmodifiableSet(s);
}
<commit_title>[PATCH] Block one more gadget type (apache/commons-p... |
<vulnerable_code> ret = AVERROR(ENOMEM);
goto fail;
}
seg->duration = duration;
seg->key_type = key_type;
if (has_iv) {
memcpy(seg->iv, iv, sizeof(iv));
} else {
... |
<vulnerable_code> BT_DBG("psm 0x%2.2x scid 0x%4.4x mtu %u mps %u", __le16_to_cpu(psm),
scid, mtu, mps);
/* Check if we have socket listening on psm */
pchan = l2cap_global_chan_by_psm(BT_LISTEN, psm, &conn->hcon->src,
&conn->hcon->dst, LE_LINK);
psm = req->psm;
BT_DBG("psm 0x%2.2x mtu %u mps %u", ... |
<vulnerable_code> }
}
*state = CCS_VALUE;
*type = CCV_CLASS;
return 0;
}<commit_title>[PATCH] fix #60 : invalid state(CCS_VALUE) in parse_char_class()<commit_description><fixed_code>
}
}
if (*state != CCS_START)
*state = CCS_VALUE;
*type = CCV_CLASS;
return 0;
} |
<vulnerable_code> return '';
}else{
label_exists = true;
return '<div class="percent">' + Math.round(100 * max.data / sum) + '%</div>' + max.label;
}
}
},
});
bind_hover_event(target, function(item){... |
<vulnerable_code>def test_encoder():
assert url_encode_str("Hello @World") == "Hello+%40World"
assert url_encode_str("Test//String") == "Test%2F%2FString"<commit_title>[PATCH] Added test for None passed to Url Encoder<commit_description><fixed_code>
def test_encoder():
assert url_encode_str("Hello @World") ... |
<vulnerable_code>package hudson.diagnosis;
import hudson.model.AdministrativeMonitor;
import jenkins.model.Jenkins;
import hudson.model.AbstractModelObject;
import hudson.Extension;
import hudson.ExtensionPoint;
import org.kohsuke.stapler.HttpResponse;
import org.kohsuke.stapler.HttpResponses;
import org.kohsuke.stapl... |
<vulnerable_code>import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.CheckForNull;
import jenkins.model.Jenkins;
import org.acegisecurity.context.SecurityContext;
import org.acegisecurity.context.SecurityContextHolder;<commit_title>[PATCH 2/2] Responding to review comments.<commit_d... |
<vulnerable_code>import java.util.logging.Logger;
import jenkins.model.Jenkins;
import org.kohsuke.stapler.Stapler;
/**
* Looks out for a broken reverse proxy setup that doesn't rewrite the location header correctly.
/**
* Depending on whether the user said "yes" or "no", send him to the right place.
*/... |
<vulnerable_code>import hudson.Extension;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import java.io.IOException;
/**
* Depending on whether the user said "yes" or "no", send him to the right place.
*/
public void doAct(StaplerRequest req, StaplerResponse r... |
<vulnerable_code>import java.io.IOException;
import jenkins.model.Jenkins;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
/**
* Checks the health of a subsystem of Jenkins and if there's something
* @see Jenkins#administrativeMonitors
*/
@LegacyInstancesAreScopedToHudson
pub... |
<vulnerable_code>import jenkins.model.Jenkins;
import jenkins.util.io.FileBoolean;
import org.kohsuke.stapler.HttpResponse;
import org.kohsuke.stapler.StaplerProxy;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.interceptor.RequirePOST;
* @author Kohsuke Kawaguchi
*/
@Extension
public class Re... |
<vulnerable_code>import org.kohsuke.stapler.HttpResponse;
import org.kohsuke.stapler.HttpResponses;
import org.kohsuke.stapler.QueryParameter;
import javax.inject.Inject;
import java.io.IOException;
/**
* Depending on whether the user said "examin" or "dismiss", send him to the right place.
*/
public... |
<vulnerable_code>import org.kohsuke.stapler.HttpResponse;
import org.kohsuke.stapler.HttpResponses;
import org.kohsuke.stapler.QueryParameter;
import javax.inject.Inject;
import java.io.IOException;
return rule.getMasterKillSwitch() && config.isRelevant();
}
public HttpResponse doAct(@QueryParameter S... |
<vulnerable_code>package hudson.diagnosis;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import com.gargoylesoftware.htmlunit.ElementNotFoundException;
... |
<vulnerable_code>import java.io.IOException;
import jenkins.model.Jenkins;
import org.kohsuke.stapler.StaplerProxy;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
/**
* Requires ADMINISTER permission for any operation in here.
*/
public Object getTarget() {
... |
<vulnerable_code>import org.acegisecurity.context.SecurityContextHolder;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import org.xml.sax.SAXException;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
}
}
@Test
public void noAccessForNonAdmin() throws Ex... |
<vulnerable_code>
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
!defined(HAVE_LIBRESSL)
crls = X509_STORE_CTX_get1_crls(store_ctx, subject);
#elif OPENSSL_VERSION_NUMBER >= 0x10000000L && \
!defined(HAVE_LIBRESSL)
crls = X509_STORE_get1_crls(store_ctx, subject);
#else
/* Your OpenSSL is before 1.0.0. ... |
<vulnerable_code> }
}
function PMA_sprintf() {
return sprintf.apply(this, arguments);
}<commit_title>[PATCH] Fix XSS in normalization.js<commit_description>Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com><fixed_code>
}
}
function escapeJsString(unsafe) {
if (typeof(unsafe) != 'undefined') {
... |
<vulnerable_code> '</ol>';
$("#newCols").html(confirmStr);
$('.tblFooters').html('<input type="submit" value="' + PMA_messages.strCancel + '" onclick="$(\'#newCols\').html(\'\');$(\'#extra input[type=checkbox]\').removeAttr(\'checked\')"/>' +
'<input type="submit" ... |
<vulnerable_code>function preprocessRFC2822(s) {
// Remove comments and folding whitespace and replace multiple-spaces with a single space
return s
.replace(/\((?:(?!\().)*\)|[\n\t]/gs, ' ')
.replace(/(\s\s+)/g, ' ')
.replace(/^\s\s*/, '')
.replace(/\s\s*$/, '');<commit_title>[PA... |
<vulnerable_code>
const Restricted = (Component) => {
const checkAuth = (props) => {
console.log("auth props: %o", props);
return props.isLoggedIn ? <Component {...props} /> : <Auth/>
}
<commit_title>[PATCH] remove debug code<commit_description><fixed_code>
const Restricted = (Component) => {
const checkA... |
<vulnerable_code> self,
name,
args,
output_type,
mutability,
internal,
nonreentrant_key,
):
self.name = name
self.args = args
self.output_type = output_type
self.mutability = mutability
self.internal = internal
se... |
<vulnerable_code> assertThat(response.getStatus(), equalTo(HttpStatus.BAD_REQUEST_400));
String responseContent = IO.toString(listener.getInputStream());
assertThat(responseContent, containsString("Unable to parse form content"));
assertThat(responseContent, containsString("Form with too ... |
<vulnerable_code> * Compute a page name from a given title.
**/
var getPageName = function(title) {
var url = XWiki.currentDocument.getURL("get");
return Promise.resolve($.get(url, {
'xpage': 'entitynamevalidation_json',
'outputSyntax': 'plain',
'name': title,
'f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.