text stringlengths 79 3.72M |
|---|
<vulnerable_code>package org.infinispan.client.hotrod.impl.iteration;
import java.util.HashSet;
import java.util.Set;
import org.infinispan.commons.marshall.WrappedByteArray;
private Set<WrappedByteArray> keys = new HashSet<>();
@Override
public boolean track(byte[] key, short status) {
return keys.ad... |
<vulnerable_code>
import java.util.BitSet;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.atomic.AtomicReferenceArray;
import java.util.stream.IntStream;
segmentStream.forEach(i -> keysPerSegment.set(i, new HashSet<>()));
}
public boolean track(byte[] key, short status) {
... |
<vulnerable_code>import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.VersionedOperationResponse;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotro... |
<vulnerable_code>import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.HeaderParams;
import org.infinispan.c... |
<vulnerable_code>
import org.infinispan.client.hotrod.RemoteCacheManager;
import org.infinispan.client.hotrod.annotation.ClientListener;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.event.ClientEvent;
import org.infinispan.client.hotrod.event.ClientListenerNo... |
<vulnerable_code>import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.HeaderParams;
import org.infinispan.client.hotrod.im... |
<vulnerable_code>
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.HeaderParams;
import org.infinispan.client.hotrod.impl.transport.Transport... |
<vulnerable_code>import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.HeaderParams;
import org.infinispan.client.hotrod.imp... |
<vulnerable_code>import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.HeaderParams;
import org.infinispan.client.hotrod.imp... |
<vulnerable_code>import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.HeaderParams;
import org.infinispan.client.hotrod.imp... |
<vulnerable_code>
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.HotRodConstants;
import org.infinispan.client.hotrod.impl.transport.Transp... |
<vulnerable_code>import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.HeaderParams;
import org.infinispan.client.hotrod.imp... |
<vulnerable_code>import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.transport.Transport;
import org.infinispan.client.hotrod.impl.... |
<vulnerable_code>import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.HeaderParams;
import org.infinispan.client.hotrod.imp... |
<vulnerable_code>import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Collectors;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.transport.TransportFactory;
private final Se... |
<vulnerable_code>package org.infinispan.client.hotrod.impl.operations;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.HotRodConstants;
imp... |
<vulnerable_code>import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.VersionedMetadata;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.VersionedMetadataImpl;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import... |
<vulnerable_code>import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.MetadataValue;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.MetadataValueImpl;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.inf... |
<vulnerable_code>package org.infinispan.client.hotrod.impl.operations;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.VersionedValue;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.VersionedValueImpl;
import org.inf... |
<vulnerable_code>
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.HeaderParams;
import org.infinispan.client.hotrod.impl.protocol.HotRodCons... |
<vulnerable_code>
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.HeaderParams;
import org.infinispan.client.hotrod.impl.transport.Transport... |
<vulnerable_code>import java.util.Map.Entry;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.MetadataValueImpl;
import org.infinispan.client.hotrod.impl.iteration.KeyTracker;
import org.infinispan.client.ho... |
<vulnerable_code>import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.consistenthash.SegmentConsistentHash;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.cl... |
<vulnerable_code>import org.infinispan.client.hotrod.CacheTopologyInfo;
import org.infinispan.client.hotrod.Flag;
import org.infinispan.client.hotrod.RemoteCacheManager;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.event.ClientListenerNotifier;
import org.inf... |
<vulnerable_code>import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.exceptions.ParallelOperationException;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.transport... |
<vulnerable_code>
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.exceptions.HotRodClientException;
import org.infinispan.client.hotrod.exceptions.InvalidResponseException;
import org.infinispan.client.hotrod.im... |
<vulnerable_code>import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.exceptions.InvalidResponseException;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.inf... |
<vulnerable_code>import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Collectors;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.transport.TransportFactory;
private final Ti... |
<vulnerable_code>import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.exceptions.InvalidResponseException;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.Ho... |
<vulnerable_code>import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.exceptions.InvalidResponseException;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.inf... |
<vulnerable_code>import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.exceptions.HotRodClientException;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotr... |
<vulnerable_code>import java.net.SocketAddress;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.event.ClientListenerNotifier;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client... |
<vulnerable_code>import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.VersionedOperationResponse;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.Header... |
<vulnerable_code>import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.impl.VersionedOperationResponse;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.protocol.Header... |
<vulnerable_code>import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.exceptions.HotRodClientException;
import org.infinispan.client.hotrod.exceptions.RemoteIllegalLifecycleStateException;
import org.infinispan.clien... |
<vulnerable_code>import java.io.InputStream;
import java.io.OutputStream;
import java.lang.annotation.Annotation;
import java.util.Set;
import java.util.concurrent.TimeUnit;
*/
short readHeader(Transport transport, HeaderParams params);
ClientEvent readEvent(Transport transport, byte[] expectedListenerId, M... |
<vulnerable_code>import java.net.SocketAddress;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.TimeUnit;
}
@Override
public ClientEvent readEvent(Transport transport, byte[] expectedListenerId, Marshaller marshaller) {
re... |
<vulnerable_code> final boolean trace = getLog().isTraceEnabled();
@Override
public <T> T readUnmarshallByteArray(Transport transport, short status) {
return CodecUtils.readUnmarshallByteArray(transport, status);
}
@Override
}
@Override
public ClientEvent readEvent(Transport transport, b... |
<vulnerable_code>import static org.infinispan.commons.util.Util.printArray;
import java.util.Arrays;
import org.infinispan.client.hotrod.annotation.ClientListener;
import org.infinispan.client.hotrod.event.ClientCacheEntryExpiredEvent;
}
@Override
protected ClientEvent readPartialEvent(Transport transport, ... |
<vulnerable_code>package org.infinispan.client.hotrod.impl.protocol;
import java.util.concurrent.TimeUnit;
import org.infinispan.client.hotrod.impl.transport.Transport;
return seconds;
}
static <T> T readUnmarshallByteArray(Transport transport, short status) {
byte[] bytes = transport.readArray();
... |
<vulnerable_code> }
private List<String> mechList(TcpTransport tcpTransport, AtomicInteger topologyId) {
AuthMechListOperation op = new AuthMechListOperation(codec, topologyId, configuration.clientIntelligence(), tcpTransport);
return op.execute();
}
private byte[] auth(TcpTransport tcpTranspor... |
<vulnerable_code>import static org.jboss.logging.Logger.Level.WARN;
import java.io.IOException;
import java.lang.reflect.Method;
import java.net.SocketAddress;
import java.util.Collection;
import org.infinispan.client.hotrod.impl.transport.Transport;
import org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport;... |
<vulnerable_code>
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectStreamConstants;
import org.infinispan.client.hotrod.exceptions.HotRodClientException;
import org.infinispan.client.hotrod.impl.protocol.HotRodConstants;
import org.infinispan.clien... |
<vulnerable_code>import static org.infinispan.client.hotrod.impl.ConfigurationProperties.REQUEST_BALANCING_STRATEGY;
import static org.infinispan.client.hotrod.impl.ConfigurationProperties.SASL_MECHANISM;
import static org.infinispan.client.hotrod.impl.ConfigurationProperties.SASL_PROPERTIES_PREFIX;
import static org.i... |
<vulnerable_code> List<Integer> finished = new ArrayList<>();
@Override
public boolean track(byte[] key, short status) {
return true;
}
<commit_title>[PATCH] ISPN-7781 Add java deserial white list for client<commit_description>* Added new option to Hot Rod client that enables a list of ... |
<vulnerable_code>import static org.infinispan.test.TestingUtil.replaceField;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.IntStream;
private final IOException failWith = new IOException("Connection reset by peer");
@Override
public ClientEven... |
<vulnerable_code>import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.exceptions.HotRodClientException;
import org.infinispan.client.hotrod.exceptions.RemoteNodeSuspectException;
import org.infi... |
<vulnerable_code> hotrod = server;
hotrodClient = new RemoteCacheManager(new ConfigurationBuilder()
.addServers("localhost:" + hotrod.getPort())
.marshaller(marshaller)
.build());
hotrodCache = cacheName.isEmpty()<commit_title>[PATCH] ISPN-7781 Add java deserial whit... |
<vulnerable_code> * @async
*/
export async function createVerificationObjects(signatureList, literalDataList, keys, date=new Date()) {
return Promise.all(signatureList.map(async function(signature) {
return createVerificationObject(signature, literalDataList, keys, date);
}));
}<commit_title>[PATCH] Only accep... |
<vulnerable_code><commit_title>[PATCH] Only accept binary or text signatures when verifying messages<commit_description><fixed_code>
describe('Security', function () {
require('./message_signature_bypass');
}); |
<vulnerable_code><commit_title>[PATCH] Only accept binary or text signatures when verifying messages<commit_description><fixed_code>
const openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
const { key, cleartext, util, packet: { Signature } } = openpgp;
const ... |
<vulnerable_code> require('./crypto');
require('./general');
require('./worker');
});<commit_title>[PATCH] Only accept binary or text signatures when verifying messages<commit_description><fixed_code>
require('./crypto');
require('./general');
require('./worker');
require('./security');
}); |
<vulnerable_code>PdfObject* PdfDictionary::findKeyParent(const string_view& key) const
{
utls::RecursionGuard guard;
PdfObject* obj = findKey(key);
if (obj == nullptr)
{
PdfObject* parent = findKey("Parent");
if (parent == nullptr)
{
return nullptr;
}
... |
<vulnerable_code> */
loadEditor(element, customConfig) {
this.setElement(element);
const instance = this.getEditorInstanceFromName(),
self = this;
let config = {
language: CONFIG.langKey,
allowedContent: true,
emojiEnabled: false,
mentionsEnabled: false,
on: {
insta... |
<vulnerable_code> user.id = id
api.userId.put(user)
.success(function (data) {
successFlash(`User ${user.username} updated successfully!`)
load()
dismiss()
$("#modal").modal('hide')
// to /user
api.users.post(user... |
<vulnerable_code> */
public class IndexHtmlRequestHandler extends JavaScriptBootstrapHandler {
private static final String SPRING_CSRF_TOKEN = "springCsrfToken";
@Override
public boolean synchronizedHandleRequest(VaadinSession session,
VaadinRequest request, VaadinResponse response) throws IOE... |
<vulnerable_code> iso9660_inode_node *in;
TSK_OFF_T dir_offs = a_dir_addr * a_fs->block_size;
if ((fs_name = tsk_fs_name_alloc(ISO9660_MAXNAMLEN + 1, 0)) == NULL)
return TSK_ERR;
<commit_title>[PATCH] fixes #913 with check for small ISO directories<commit_description><fixed_code>
iso9660_inode_n... |
<vulnerable_code>{
struct xgene_hwmon_dev *ctx = platform_get_drvdata(pdev);
hwmon_device_unregister(ctx->hwmon_dev);
kfifo_free(&ctx->async_msg_fifo);
if (acpi_disabled)<commit_title>[PATCH] hwmon: (xgene) Fix use after free bug in xgene_hwmon_remove<commit_description><fixed_code>
{
struct xgene_hwmon_dev *ctx ... |
<vulnerable_code> memset(state, 128, sizeof(state));
if (f->version < 2) {
unsigned v= get_symbol(c, state, 0);
if (v >= 2) {
av_log(f->avctx, AV_LOG_ERROR, "invalid version %d in ver01 header\n", v);
if (f->version > 0)
f->avctx->bits_per_raw_sample = get_symbol(... |
<vulnerable_code>
Element ore = xwalk.disseminateElement(context, item);
out.output(ore);
/* Generate the METS document
contentHandler.startDocument();
adapter.renderMETS(contentHandler,lexicalHandler);
contentHandler.endDocument();*/
} catch (JDOMExcep... |
<vulnerable_code>def get_verification_obj(user, token, otp_secret):
otp_issuer = frappe.db.get_value('System Settings', 'System Settings', 'otp_issuer_name')
verification_method = get_verification_method()
verification_obj = None
if verification_method == 'SMS':
verification_obj = process_2fa_for_sms(user, token,... |
<vulnerable_code> pthread_mutex_destroy(&m_ListLock);
}
void CSndUList::insert(int64_t ts, const CUDT* u)
{
CGuard listguard(m_ListLock);
// increase the heap array size if necessary
if (m_iLastEntry == m_iArrayLength - 1)
{
CSNode** temp = NULL;
try
{
temp = new CSNode*[m_i... |
<vulnerable_code> return r;
}
/*
* Handle string options that need some action to perform when changed.
* Returns NULL for success, or an error message for an error.
xfree(p_penc);
p_penc = p;
} else if (varp == &curbuf->b_p_keymap) {
/* load or unload key mapping tables */
errmsg = keymap_init();... |
<vulnerable_code>
int pure_strcmp(const char * const s1, const char * const s2)
{
return pure_memcmp(s1, s2, strlen(s1) + 1U);
}<commit_title>[PATCH] pure_strcmp(): len(s2) can be > len(s1)<commit_description>Reported by Antonio Morales from GitHub Security Labs, thanks!<fixed_code>
int pure_strcmp(const char * co... |
<vulnerable_code>static AR_ExpNode *_AR_EXP_FromIdentifier(const cypher_astnode_t *expr) {
AST *ast = QueryCtx_GetAST();
if(ast == NULL) {
// Attempted to access the AST before it has been constructed.
ErrorCtx_SetError("Attempted to access variable before it has been defined");
return AR_EXP_NewConstOperandNod... |
<vulnerable_code> }
else {
// inherit parent's constructor
var code = members.__parent.toString();
var args = code.substring( code.indexOf("(")+1, code.indexOf(")") );
var inner_code = code.substring( code.indexOf("{")+1, code.lastIndexOf("}") );
eval('constructor = function ('+args+') {'+inner_code+'... |
<vulnerable_code> hasMarkup = textStr.indexOf('<') !== -1,
lines,
childNodes = textNode.childNodes,
clsRegex,
styleRegex,
hrefRegex,
wasTooLong,
parentX = attr(textNode, 'x'),
textStyles = wrapper.styles,
}
});
return inputStr;
};
// The buildText code is quite heavy, so if ... |
<vulnerable_code>
document.getElementById('container').removeAttribute('dir');
});<commit_title>[PATCH] Refactored SVGRenderer text to not use backtracking regexes<commit_description><fixed_code>
document.getElementById('container').removeAttribute('dir');
});
QUnit.test('Attributes', function (assert) {
... |
<vulnerable_code> */
const BYTE* ptr;
DEBUGLOG(5, "Clearing %u positions", (U32)(filledIp - ip));
for (ptr = ip + 1; ptr <= filledIp; ++ptr) {
U32 const h = LZ4_hashPosition(ptr, tableType);
... |
<vulnerable_code> else
samples_in_chunk = 1;
/* copy extradata if it exists */
if (trk->vos_len == 0 && par->extradata_size > 0 &&
!TAG_IS_AVCI(trk->tag) &&<commit_title>[PATCH] avformat/movenc: Check input sample count<commit_description>Fixes: division by 0
Fixes: fpe_movenc.c_199_1.wav
Fi... |
<vulnerable_code> // [databind#2631]: shaded hikari-config
s.add("org.apache.hadoop.shaded.com.zaxxer.hikari.HikariConfig");
DEFAULT_NO_DESER_CLASS_NAMES = Collections.unmodifiableSet(s);
}
<commit_title>[PATCH] Block two more gadget types (ibatis-sqlmap, anteros-core;<commit_description><fi... |
<vulnerable_code> kubectl_extra_args:
description:
- Extra arguments to pass to the kubectl command line.
default: ''
vars:
- name: ansible_kubectl_extra_args
kubectl_password:
description:
- Provide a password for authenticating with the API.
... |
<vulnerable_code>
import logging
import random
from typing import Tuple
from signedjson.sign import sign_json
from synapse.api.errors import HttpResponseException, RequestSendFailed, SynapseError
from synapse.metrics.background_process_metrics import run_as_background_process
from synapse.types import get_domain_from... |
<vulnerable_code># limitations under the License.
import logging
from synapse.api.errors import Codes, SynapseError
from synapse.handlers.profile import MAX_AVATAR_URL_LEN, MAX_DISPLAYNAME_LEN
from synapse.types import GroupID, RoomID, UserID, get_domain_from_id
from synapse.util.async_helpers import concurrently_exe... |
<vulnerable_code> * in order to avoid troubles during device release.
*/
kfree(priv->ctrl.fname);
memcpy(&priv->ctrl, p, sizeof(priv->ctrl));
if (p->fname) {
priv->ctrl.fname = kstrdup(p->fname, GFP_KERNEL);
if (priv->ctrl.fname == NULL)
rc = -ENOMEM;
}
/*<commit_title>[PATCH] [media] xc2028: avoid use ... |
<vulnerable_code> // [databind#2764]: org.jsecurity:
s.add("org.jsecurity.realm.jndi.JndiRealmFactory");
DEFAULT_NO_DESER_CLASS_NAMES = Collections.unmodifiableSet(s);
}
<commit_title>[PATCH] MNSTR-5023 backport security fix from jackson2<commit_description>Merged from FasterXML/jackson-data... |
<vulnerable_code> */
static int http_schannel_use_ssl_cainfo;
size_t fread_buffer(char *ptr, size_t eltsize, size_t nmemb, void *buffer_)
{
size_t size = eltsize * nmemb;
return 0;
}
if (!strcmp("http.minsessions", var)) {
min_curl_sessions = git_config_int(var, value);
if (min_curl_sessions > 1)
}
#endif
... |
<vulnerable_code> title = StringField(
_('Title'),
description=_('The title is an optional description to identify the key. e.g.: bob@thinkpad-t530'),
validators=[validators.data_required()],
)
key = StringField(
_('Key'),<commit_title>[PATCH] Define field limit for SSH Key ti... |
<vulnerable_code> # Then ssh key is not added
self.assertEqual(0, len(list(user.authorizedkeys)))
def test_delete(self):
# Delete existing keys
user = self.app.store.get_user('admin')<commit_title>[PATCH] Define field limit for SSH Key title<commit_description><fixed_code>
# ... |
<vulnerable_code>import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Map;
/**
* Author: wangjiahao
LogUtil.error(e.getMessage(), e);
return false;
}
if (image == null || image.getWidth() <= 0 || image.getHeight() <= 0) {
return false;
}
... |
<vulnerable_code>#define MIN(x,y) (((x)<(y))?(x):(y))
#define ALLOCCHECK(x) { if(!x) { printf("Out of Memory\n"); exit(-1); } }
void TNEFFillMapi(TNEFStruct *TNEF, BYTE *data, DWORD size, MAPIProps *p);
void SetFlip(void);
length = -1;
if (PROP_ID(mp->id) >= 0x8000) {
// Read the GUID
memc... |
<vulnerable_code> super.processOpts();
if (additionalProperties.containsKey(SUPPORT_JAVA6)) {
this.setSupportJava6(Boolean.valueOf(additionalProperties.get(SUPPORT_JAVA6).toString()));
}
additionalProperties.put(SUPPORT_JAVA6, supportJava6);
<commit_title>[PATCH] security: fi... |
<vulnerable_code> cliOptions.add(CliOption.newBoolean(PARCELABLE_MODEL, "Whether to generate models for Android that implement Parcelable with the okhttp-gson library."));
cliOptions.add(CliOption.newBoolean(USE_PLAY_WS, "Use Play! Async HTTP client (Play WS API)"));
cliOptions.add(CliOption.newS... |
<vulnerable_code>
protected static final String LIBRARY_JERSEY1 = "jersey1";
protected static final String LIBRARY_JERSEY2 = "jersey2";
/**
* Default library template to use. (Default:{@value #DEFAULT_LIBRARY})
*/
library.setDefault(DEFAULT_LIBRARY);
cliOptions.add(library);
... |
<vulnerable_code>
configurator.addAdditionalProperty("foo", "bar")
.addAdditionalProperty("hello", "world")
.addAdditionalProperty("supportJava6", false)
.addAdditionalProperty("useRxJava", true);
final ClientOptInput clientOptInput = setupAndRunGenericTe... |
<vulnerable_code> times = 1;
clientCodegen.setDateLibrary("joda");
times = 1;
clientCodegen.setSupportJava6(false);
times = 1;
clientCodegen.setUseBeanValidation(Boolean.valueOf(JaxRSServerOptionsProvider.USE_BEANVALIDATION));
times = 1;... |
<vulnerable_code> options.put(JavaClientCodegen.USE_PLAY_WS, "false");
options.put(JavaClientCodegen.PLAY_VERSION, JavaClientCodegen.PLAY_25);
options.put(JavaClientCodegen.PARCELABLE_MODEL, "false");
options.put(JavaClientCodegen.SUPPORT_JAVA6, "false");
options.put(JavaClientCod... |
<vulnerable_code> ImmutableMap.Builder<String, String> builder = new ImmutableMap.Builder<String, String>();
builder.put(CodegenConstants.IMPL_FOLDER, IMPL_FOLDER_VALUE)
.put(JavaClientCodegen.DATE_LIBRARY, "joda") //java.lang.IllegalArgumentException: Multiple entries with same key: dateLibr... |
<vulnerable_code>/*
* Swagger Petstore *_/ ' \" =end -- \\r\\n \\n \\r
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end --
*
* OpenAPI spec version: 1.0.0 *_/ ' \" =end -- \\r\\n \\n \... |
<vulnerable_code>package io.swagger.client;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.Invocation;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.Form;
import javax.ws.rs.core.GenericType;
import javax.ws.rs.core.... |
<vulnerable_code>/*
* Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger... |
<vulnerable_code>/*
* Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger... |
<vulnerable_code>/*
* Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger... |
<vulnerable_code>package io.swagger.client;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonTokenId;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JsonDeserializer;
im... |
<vulnerable_code>package io.swagger.client;
import org.threeten.bp.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule;
import java.text.DateFormat;
import javax.ws.rs.ext.ContextResolver;
public class JSON implement... |
<vulnerable_code>/*
* Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger... |
<vulnerable_code>/*
* Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger... |
<vulnerable_code>/*
* Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger... |
<vulnerable_code>package io.swagger.client.api;
import io.swagger.client.ApiException;
import io.swagger.client.ApiClient;
import io.swagger.client.ApiResponse;
import io.swagger.client.Configuration;
import io.swagger.client.Pair;
import javax.ws.rs.core.GenericType;
import io.swagger.client.model.Client;
import j... |
<vulnerable_code>package io.swagger.client.api;
import io.swagger.client.ApiException;
import io.swagger.client.ApiClient;
import io.swagger.client.ApiResponse;
import io.swagger.client.Configuration;
import io.swagger.client.Pair;
import javax.ws.rs.core.GenericType;
import java.math.BigDecimal;
import io.swagger.c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.