text stringlengths 79 3.72M |
|---|
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","sq",{title:... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","sv",{title:... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","tr",{title:... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","ug",{title:... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","uk",{title:... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","vi",{title:... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","zh-cn",{tit... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","zh",{title:... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("paste",function(c){function... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/ |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){var r=function(c,j){function r(){var... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("anchor",function(c){var d=f... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("link",function(n){var p,q;f... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){function y(a){for(var a=a.toUpperCas... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("scaytcheck",function(j){f... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","ar",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","ca",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","cs",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","cy",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","de",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","el",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","eo",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","es",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","et",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","fa",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","fi",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","fr-ca",{... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","fr",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","gl",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","he",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","hr",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","hu",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","it",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","ku",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","lv",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","nb",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","nl",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","pl",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","pt-br",{... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","pt",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","ru",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","si",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","sk",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","sl",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","sq",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","sv",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","tr",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","uk",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","vi",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","zh-cn",{... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","zh",{eur... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("specialchar",function(i){va... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){function r(a){for(var e=0,l=0,k=0,m,... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("cellProperties",function(f)... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function(){function w(a){if(!a)throw"Language... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("checkspell",function(a){f... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
/**
* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
// This file contains style definitions t... |
<vulnerable_code><commit_title>[PATCH] adding bbcode , new html editor, change guestbook view<commit_description><fixed_code>
$(document).ready(function(){
CKEDITOR.replace('ilch_bbcode', {
extraPlugins: 'bbcode',
disableObjectResizing: true,
toolbar: [
['Undo', 'Redo' ],
... |
<vulnerable_code> });
},
scope: this
}, {
iconCls: 'ic-link',
text: t("From URL"),
handler: function () {
Ext.MessageBox.prompt(t("Set Image From URL"), t("Enter URL"), function(btn, url) {
if(btn != "ok" || !url) {
return;
}
Ext.Ajax.request({
u... |
<vulnerable_code> }
}
for (colonEnd = nameEnd; colonEnd < length; colonEnd ++) {
if (sb.charAtUnsafe(colonEnd) == ':') {
colonEnd ++;<commit_title>[PATCH] Detect missing colon when parsing http headers with no value<commit_description><fixed_code>
}
... |
<vulnerable_code> assertTrue(request.decoderResult().cause() instanceof IllegalArgumentException);
assertFalse(channel.finish());
}
}<commit_title>[PATCH] Detect missing colon when parsing http headers with no value<commit_description><fixed_code>
assertTrue(request.decoderResult().cause() in... |
<vulnerable_code> LiveDataMacro.class,
DefaultLiveDataConfigurationResolver.class,
StringLiveDataConfigurationResolver.class,
JsFileSkinExtension.class
})
@Inherited
public @interface LiveDataMacroComponentList<commit_title>[PATCH] XWIKI-20143: Improved Live Data escaping<commit_description>Add missing c... |
<vulnerable_code> rb_raise(rb_eNoMemError, "not enough memory to continue");
}
GetDrawInfo(NULL, draw_options->info);
if (rb_block_given_p())
{
rb_yield(self);<commit_title>[PATCH] Fix memory leak in `Magick::Draw` for recentry ImageMagick 6<commit_description><fixed_code>
rb_ra... |
<vulnerable_code> TempFormat = PIXEL_FORMAT_BGRX32;
if (!pTempData)
{
return FALSE;
}
if (rle) /* RLE encoded data. Decode and handle it like raw data. */
{
BYTE* rleBuffer[4] = { 0 };
rleBuffer[3] = planar->rlePlanesBuffer; /* AlphaPlane */
rleBuffer[0] = rleBuffer[3] + planeSize; /* LumaOr... |
<vulnerable_code>import org.apache.commons.io.IOUtils;
import org.apache.cxf.jaxrs.ext.multipart.Attachment;
import org.apache.cxf.jaxrs.ext.multipart.Multipart;
import org.opennms.web.api.Authentication;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
"groovy",
"bsh",
"dcb"... |
<vulnerable_code> new Proxy(target, {
get: (target, prop) => {
if (prop === 'constructor') return null;
return wrap(target[prop]);
},
});
<commit_title>[PATCH] fixup! Prevent arbitrary js code execution<commit_description><fixed_code>
new Proxy(target, {
get: (target, prop) => {
if (p... |
<vulnerable_code><commit_title>[PATCH] distinct cjs amd ems output using tsc<commit_description><fixed_code>
/**
* @hidden
* @packageDocumentation
*/
import { JsonPointer } from '../dist';
import * as bent from 'bent';
const getJSON = bent('json');
const url = 'https://data.ct.gov/api/views/rybz-nyjw/rows.json?acces... |
<vulnerable_code><commit_title>[PATCH] distinct cjs amd ems output using tsc<commit_description><fixed_code>
/**
* @hidden
* @packageDocumentation
*/
import { JsonPointer } from '../dist';
const versions = {
'1.0': {
name: JsonPointer.create('/guests/0/name'),
surname: JsonPointer.create('/guests... |
<vulnerable_code>const path = require('path');
module.exports = {
mode: "production",
entry: './src/index.ts',
module: {
rules: [
{
],
},
resolve: {
extensions: [ '.tsx', '.ts', '.js' ],
},
output: {
filename: 'json-ptr.js',
path: path.resolve(__dirname, 'dist.browser'),
},
};... |
<vulnerable_code>const path = require('path');
const webpack = require('webpack');
module.exports = {
mode: "production",
entry: './__tests__/index.ts',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
include: [
path.resolve(__dirname, '__tests__'),
p... |
<vulnerable_code>
static RCoreSymCacheElement *parseDragons(RBinFile *bf, RBuffer *buf, int off, int bits, R_OWN char *file_name) {
D eprintf ("Dragons at 0x%x\n", off);
ut64 size = r_buf_size (buf);
if (off >= size) {
return NULL;
}
if (!size) {
return NULL;
}
ut8 *b = malloc (size);
if (!b) {
return NUL... |
<vulnerable_code>
/* Total component width = sum (component_width) e.g, it's
legal for an la file to have a 1 byte width for l, and 4 for
a. and then a malicious file could have a smaller tile_bytes
*/
for (n=0; n < tile_info.nb_comps; n++) {<commit_title>[PATCH] Fix typo [ci ... |
<vulnerable_code> || mnt_fs_is_swaparea(fs));
}
/**
* mnt_fs_is_deleted:
* @fs: filesystem
*
* Returns: 1 if the filesystem target is a marked as deleted by kernel
*/
int mnt_fs_is_deleted(struct libmnt_fs *fs)
{
return mnt_fs_get_flags(fs) & MNT_FS_DELETED;
}
/**
* mnt_fs_get_fstype:
* @fs: fstab/mtab/moun... |
<vulnerable_code> goto fail;
}
/* remove "\040(deleted)" suffix */
p = (char *) endswith(fs->target, PATH_DELETED_SUFFIX);
if (p && *p) {
*p = '\0';
fs->flags |= MNT_FS_DELETED;
}
s = skip_separator(s);
/* (6) vfs options (fs-independent) */<commit_title>[PATCH] libmount: remove support for deleted mount... |
<vulnerable_code>enum {
COL_ACTION,
COL_AVAIL,
COL_DELETED,
COL_FREQ,
COL_FSROOT,
COL_FSTYPE,
static struct colinfo infos[] = {
[COL_ACTION] = { "ACTION", 10, SCOLS_FL_STRICTWIDTH, N_("action detected by --poll") },
[COL_AVAIL] = { "AVAIL", 5, SCOLS_FL_RIGHT, N_("filesystem size a... |
<vulnerable_code>#include "./cipher-internal.h"
#ifdef GCM_USE_INTEL_PCLMUL
extern void _gcry_ghash_setup_intel_pclmul (gcry_cipher_hd_t c);
#ifdef GCM_USE_TABLES
static const u16 gcmR[256] = {
0x0000, 0x01c2, 0x0384, 0x0246, 0x0708, 0x06ca, 0x048c, 0x054e,
0x0e10, 0x0fd2, 0x0d94, 0x0c56, 0x0918, 0x08da, 0x0a9... |
<vulnerable_code> struct nfsd4_getdeviceinfo *gdev)
{
struct xdr_stream *xdr = &resp->xdr;
const struct nfsd4_layout_ops *ops =
nfsd4_layout_ops[gdev->gd_layout_type];
u32 starting_len = xdr->buf->len, needed_len;
__be32 *p;
/* If maxcount is 0 then just update notifications */
if (gdev->gd_maxcount != 0) {
... |
<vulnerable_code> continue;
} else if (match[5] || match[6]) { // either Left or Right Delim
if (lLength % 3 && !((lLength + rLength) % 3)) {
midDelimTotal += rLength;
continue; // CommonMark Emphasis Rules 9-10
}
}
if (delimTotal > 0) c... |
<vulnerable_code>
bool found = false;
struct addrinfo* it = addr;
char namebuf[128];
for (; it; it = it->ai_next)
{
if (!s_use_ipv6_ && it->ai_family == AF_INET)
address->sin_family = it->ai_family;
address->sin_port = htons(port);
strcpy(namebuf, inet_ntoa(address->s... |
<vulnerable_code>
sockaddr_in *sin = (sockaddr_in *)&sas;
char namebuf[128];
int port = ntohs(sin->sin_port);
strcpy(namebuf, inet_ntoa(sin->sin_addr));
std::string ip = namebuf;
std::stringstream uri;<commit_title>[PATCH] fixing string check<commit_description>Signed-off-by: Daniel Wang <daniel.wang@cano... |
<vulnerable_code> VLOG(4) << "Parsing downstream trailers streamId=" << streamId;
}
if (sessionClosing_ != ClosingState::CLOSED) {
lastStreamID_ = streamId;
}
size_t HTTP2Codec::generateTrailers(folly::IOBufQueue& writeBuf,
StreamID stream,
... |
<vulnerable_code> EXPECT_EQ(upstreamCodec_.getReceivedFrameCount(), 4);
#endif
}<commit_title>[PATCH] Don't lower lastStreamID_<commit_description>Summary:
This could throw off the logic about what is headers/trailers
CVE-2018-6347
Reviewed By: avasylev, bolekk
Differential Revision: D13521704
fbshipit-source-id: e... |
<vulnerable_code> flushRequestsAndLoop();
gracefulShutdown();
}<commit_title>[PATCH] Don't lower lastStreamID_<commit_description>Summary:
This could throw off the logic about what is headers/trailers
CVE-2018-6347
Reviewed By: avasylev, bolekk
Differential Revision: D13521704
fbshipit-source-id: ed436ff13f191bf0... |
<vulnerable_code> while (ssl_fd.inboundOffset < ssl_fd.inboundAlerts.size()) {
SSLAlertEvent event = ssl_fd.inboundAlerts.get(ssl_fd.inboundOffset);
ssl_fd.inboundOffset += 1;
event.setEngine(this);
if (event.getLevelEnum() == SSLAlertLevel.WARNING && event.getDescriptio... |
<vulnerable_code> + basePath.length());
File target = new File(outputDirectory, relativePath);
try {
if (target.exists()) {
if (!hasSameContent(jarFile.getInputStream(jarEntry), target)) {
FileUtils.copyInputStreamToFile(
... |
<vulnerable_code> baseUri: ['\'self\''],
connectSrc: ['\'self\''],
fontSrc: ['\'self\''],
frameSrc: ['https://player.vimeo.com', 'https://www.slideshare.net/slideshow/embed_code/key/', 'https://www.youtube.com'],
imgSrc: ['*'], // we allow using arbitrary images
scriptSrc: [
config.serverURL + '/build/',... |
<vulnerable_code>
struct Message capab_msgtab = {
"CAPAB", 0, 0, 0, MFLG_SLOW | MFLG_UNREG,
{{mr_capab, 0}, mg_ignore, mg_ignore, mg_ignore, mg_ignore, mg_ignore}
};
struct Message gcap_msgtab = {
"GCAP", 0, 0, 0, MFLG_SLOW,<commit_title>[PATCH] m_capab: fix a possible remote crash triggered by the CAPAB<commit_desc... |
<vulnerable_code> self.assertEqual(downloaded['extractor'], 'Video')
self.assertEqual(downloaded['extractor_key'], 'Video')
if __name__ == '__main__':
unittest.main()<commit_title>[PATCH] [core] Change how `Cookie` headers are handled<commit_description>Cookies are now saved and loaded under `cooki... |
<vulnerable_code>import collections
import contextlib
import datetime
import errno
import fileinput
import functools
import io
import itertools
import json
from .cache import Cache
from .compat import urllib # isort: split
from .compat import compat_os_name, compat_shlex_quote
from .cookies import load_cookies
from .d... |
<vulnerable_code> timetuple_from_msec,
try_call,
)
class FileDownloader:
"""Download to a filename using the info from info_dict
Return True on success and False otherwise
"""
nooverwrites_and_exists = (
not self.params.get('overwrites', True)
and os.pat... |
<vulnerable_code> boost::int64_t len = t - '0';
char const* str_start = start;
++start;
bdecode_errors::error_code_enum e = bdecode_errors::no_error;
start = parse_int(start, end, ':', len, e);
if (e)<commit_title>[PATCH] fix out-of-bounds read in bdecode<commit_description>Fixes #2099<fixe... |
<vulnerable_code> printf("%s\n", print_entry(e).c_str());
}
// test unexpected EOF (really expected terminator)
TORRENT_TEST(unepected_eof2)
{
char b[] = "l2:..0"; // expected terminating 'e' instead of '0'
bdecode_node e;
error_code ec;
int ret = bdecode(b, b + sizeof(b)-1, e, ec, &pos);
TEST_EQUAL(ret, -1);
T... |
<vulnerable_code>
const assert = require('assert')
const fp = require('fastify-plugin')
const CSRF = require('csrf')
const { Forbidden } = require('http-errors')
const defaultOptions = {
cookieOpts: { path: '/', sameSite: true, httpOnly: true },
sessionKey: '_csrf',
getToken: getTokenDefault,
sessionPlugin: 'f... |
<vulnerable_code><commit_title>[PATCH] failing<commit_description><fixed_code>
'use strict'
const { test } = require('tap')
const Fastify = require('fastify')
const fastifyCookie = require('fastify-cookie')
const fastifySession = require('fastify-session')
const fastifySecureSession = require('fastify-secure-session')... |
<vulnerable_code><commit_title>[PATCH] Fix Remember-Me Cookie<commit_description><fixed_code>
/**
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
*
* The Apereo Foun... |
<vulnerable_code> E1105( "Data set not found or not accessible: `{0}`" ),
E1106( "There are duplicate translation record for property `{0}` and locale `{1}`" ),
E1107( "Object type `{0}` is not translatable." ),
/* Data */
E2000( "Query parameters cannot be null" ),<commit_title>[PATCH] Merge pull r... |
<vulnerable_code> // Check if we can create a new part.
_numParts++;
if (_maxParts >= 0 && _numParts > _maxParts)
throw new IllegalStateException(String.format("Form with too many keys [%d > %d]", _numParts, _maxParts));
//Have a new Pa... |
<vulnerable_code> return 0;
}
if (!handle->h_transaction) {
err = jbd2_journal_stop(handle);
return handle->h_err ? handle->h_err : err;
}
sb = handle->h_transaction->t_journal->j_private;
err = handle->h_err;
rc = jbd2_journal_stop(handle);
if (!err)<commit_title>[PATCH] ext4: fix potential use after fr... |
<vulnerable_code>#include <shell/shell_history.h>
#include <string.h>
struct shell_history_item {
sys_dnode_t dnode;
u16_t len;
char data[1];
};
void shell_history_mode_exit(struct shell_history *history)
{
history->current = NULL;<commit_title>[PATCH] shell: Allocate proper amount of history slab memory<commit_d... |
<vulnerable_code> }
else {
// TODO: send a PR to mock-req with a fix for this
if (_req.headers && typeof _req.headers === 'object') {
// Strip undefined headers
_.each(_req.headers, function (headerVal, headerKey) {
if (_.isUndefined(headerVal)){
delete _req.headers[headerKey];... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.