text stringlengths 79 3.72M |
|---|
<vulnerable_code> * The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
* Contributor(s): YetiForce.com
*************************************************************************************/
'use strict';
var App = (window.App = {
Com... |
<vulnerable_code> * The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
* Contributor(s): YetiForce.com
*************************************************************************************/'use strict';function _typeof(obj){"@babel/hel... |
<vulnerable_code>/* {[The file is published on the basis of YetiForce Public License 4.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
'use strict';
class MultiImage {
this.fieldInfo = this.elements.values.data('fieldinfo');
this.options.formats = this.fieldInfo.formats... |
<vulnerable_code>'use strict';
/* {[The file is published on the basis of YetiForce Public License 4.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */'use strict';function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot ... |
<vulnerable_code> * The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
* Contributor(s): YetiForce.com
*************************************************************************************/
'use strict';
var emailMassEditInstance =... |
<vulnerable_code> * The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
* Contributor(s): YetiForce.com
*************************************************************************************/'use strict';$.Class("Vtiger_Helper_Js",{check... |
<vulnerable_code>!function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}};"undefined... |
<vulnerable_code><commit_title>[PATCH] YetiForce CRM ver. 6.4.0 (#16359)<commit_description><fixed_code>
/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
'use strict';
CKEDITOR.dialog.add('base64image-dial... |
<vulnerable_code><commit_title>[PATCH] YetiForce CRM ver. 6.4.0 (#16359)<commit_description><fixed_code>
/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
'use strict';
CKEDITOR.plugins.add('base64image', {... |
<vulnerable_code>/* {[The file is published on the basis of YetiForce Public License 4.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
/*globals jQuery, define, exports, require, document */
(function (factory) {
'use strict';<commit_title>[PATCH] YetiForce CRM ver. 6.4.0 (... |
<vulnerable_code>/* {[The file is published on the basis of YetiForce Public License 4.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
/*globals jQuery, define, exports, require, document */
(function (factory) {
'use strict';
for (i = 0, j = dpc.length; i < j; i++... |
<vulnerable_code>/* {[The file is published on the basis of YetiForce Public License 4.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
/*globals jQuery, define, exports, require, document */
(function (factory) {
'use strict';
App.Components.QuickCreate.createRecord(... |
<vulnerable_code> * Quasar config file
*
* @description Including selected components and other options
* @license YetiForce Public License 4.0
* @author Tomasz Poradzewski <t.poradzewski@yetiforce.com>
*/
window.quasarConfig = {<commit_title>[PATCH] YetiForce CRM ver. 6.4.0 (#16359)<commit_description><fixed_code... |
<vulnerable_code> * The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
* Contributor(s): YetiForce Sp. z o.o.
*************************************************************************************/'use strict';jQuery.Class("Vtiger_Base_... |
<vulnerable_code> * The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
* Contributor(s): YetiForce Sp. z o.o.
*************************************************************************************/
'use strict';
var fieldInfo = fie... |
<vulnerable_code> * The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
* Contributor(s): YetiForce Sp. z o.o.
*************************************************************************************/'use strict';function _createForOfItera... |
<vulnerable_code>!function(){"use strict";function t(t,e,i,n,o,r,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var d,u="function"==typeof i?i.options:i;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,o&&(u.functional=!0)),n&&(u._scopeId=n),r?(d=function(t){(t=t||this.$vnode&&this.$v... |
<vulnerable_code> }
]
],
plugins: [`${dirModules}@babel/plugin-proposal-object-rest-spread`, `${dirModules}@babel/plugin-transform-classes`]
}),
sourcemaps()
]<commit_title>[PATCH] YetiForce CRM ver. 6.4.0 (#16359)<commit_description><fixed_code>
}
]
],
plugins: [... |
<vulnerable_code>/**
* build vue files in dev mode
*
* @license YetiForce Public License 4.0
* @author Tomasz Poradzewski <t.poradzewski@yetiforce.com>
* @author Radosław Skrzypczak <r.skrzypczak@yetiforce.com>
*/<commit_title>[PATCH] YetiForce CRM ver. 6.4.0 (#16359)<commit_description><fixed_code>
/**
* build ... |
<vulnerable_code> * gulpfile.js
*
* @description contains css tasks
* @license YetiForce Public License 4.0
* @author Tomasz Poradzewski <t.poradzewski@yetiforce.com>
*/
<commit_title>[PATCH] YetiForce CRM ver. 6.4.0 (#16359)<commit_description><fixed_code>
* gulpfile.js
*
* @description contains css tasks
* @... |
<vulnerable_code>/* {[The file is published on the basis of YetiForce Public License 4.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
import ChatDialog from './views/Dialog.vue'
import ChatRecordRoom from './views/RecordRoom.vue'
import YfIcon from 'components/YfIcon.vue'
... |
<vulnerable_code>/* {[The file is published on the basis of YetiForce Public License 4.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
import difference from 'lodash.difference'
let timer = false
AppConnector.request({
module: 'Chat',
action: 'ChatAjax',
mode... |
<vulnerable_code>/* {[The file is published on the basis of YetiForce Public License 4.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
import get from 'lodash.get'
export default {
return state.session.buttonCoordinates
},
isSoundNotification(state) {
return state.loc... |
<vulnerable_code>/* {[The file is published on the basis of YetiForce Public License 4.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
import unionby from 'lodash.unionby'
import { mergeDeepReactive } from '../utils/utils.js'
state.local.isSoundNotification = val
},
rem... |
<vulnerable_code>/* {[The file is published on the basis of YetiForce Public License 4.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
export default {
layout: {
drawer: {
fs: '.88rem',
breakpoint: 1023
}
},
session: {
dialog: false,
width: 450,
height: ... |
<vulnerable_code> * Helper methods
*
* @description Helper methods
* @license YetiForce Public License 4.0
* @author Tomasz Poradzewski <t.poradzewski@yetiforce.com>
*/
export function getGroupIcon(roomType) {
if (!sources.length) {
return Vue.observable(target)
}
const isObject = item => {
return item && t... |
<vulnerable_code>/* {[The file is published on the basis of YetiForce Public License 4.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
import ColorPicker from './ColorPicker.vue'
Vue.config.productionTip = false
component: ColorPicker,
mount({ el, currentColor }) {
retu... |
<vulnerable_code> * KnowledgeBase components initializations
*
* @description KnowledgeBase views' instances
* @license YetiForce Public License 4.0
* @author Tomasz Poradzewski <t.poradzewski@yetiforce.com>
*/
methods: {
translate(key) {
return app.vtranslate(key)
}
}
})
window.KnowledgeBase = {
compon... |
<vulnerable_code> * Knowledge base module
*
* @description Knowledge base vuex module
* @license YetiForce Public License 4.0
* @author Tomasz Poradzewski <t.poradzewski@yetiforce.com>
*/
tree: {
topCategory: {
icon: 'mdi-file-tree',
label: 'JS_KB_MAIN_CATEGORIES'
},
categories: {}
}
}
// getters
... |
<vulnerable_code> * DragResize mixins
*
* @description Mixins for drag-resize components
* @license YetiForce Public License 4.0
* @author Tomasz Poradzewski <t.poradzewski@yetiforce.com>
*/
export const keepElementInWindow = {
methods: {
keepElementInWindow() {
this.correctCoordinates(this.coordinates)
}
... |
<vulnerable_code> * Vuex store
*
* @description Vuex store initialization
* @license YetiForce Public License 4.0
* @author Tomasz Poradzewski <t.poradzewski@yetiforce.com>
*/
const debug = process.env.NODE_ENV !== 'production'
if (window.vuexStore === undefined) {
window.vuexStore = new Vuex.Store({
strict: d... |
<vulnerable_code> block_config["props"].pop("type", None)
block_config["props"].pop("name", None)
style = block_config["props"].pop("style", None)
if block_config["props"].get("root_url") is None:
block_config["props"]["root_url"] = f"{root_url}/"
... |
<vulnerable_code>
demo.close()
def test_proxy_does_not_leak_hf_token_externally(self):
gr.context.Context.hf_token = "abcdef"
app = routes.App()
interface = gr.Interface(lambda x: x, "text", "text")
app.configure_app(interface)
with pytest.raises(ValueError):
... |
<vulnerable_code>
Expression*
flexibleCopy(Expression* original, Module& wasm, CustomCopier custom) {
struct Copier : public Visitor<Copier, Expression*> {
Module& wasm;
CustomCopier custom;
if (ret) {
return ret;
}
return Visitor<Copier, Expression*>::visit(curr);
}
Expres... |
<vulnerable_code> Codes.UNABLE_TO_GRANT_JOIN,
)
async def check_host_in_room(self, room_id: str, host: str) -> bool:
with Measure(self._clock, "check_host_in_room"):
return await self._store.is_host_joined(room_id, host)
errcode=Codes.UNABLE_DUE_TO_PARTIAL_ST... |
<vulnerable_code> )
# now check that we are *still* in the room
is_in_room = await self._event_auth_handler.check_host_in_room(
room_id, self.server_name
)
if not is_in_room:
"state_key": target_user_id,
}
if await self._event_auth_han... |
<vulnerable_code> #
# Note that if we were never in the room then we would have already
# dropped the event, since we wouldn't know the room version.
is_in_room = await self._event_auth_handler.check_host_in_room(
room_id, self._server_name
)
if not is_in_room:... |
<vulnerable_code> # If we're not in the room just ditch the event entirely. This is
# probably an old server that has come back and thinks we're still in
# the room (or we've been rejoined to the room by a state reset).
is_in_room = await self.event_auth_handler.check_host... |
<vulnerable_code> # If this is a request over federation, check if the host is in the room or
# has a user who could join the room.
elif origin:
if await self._event_auth_handler.check_host_in_room(
room_id, origin
) or await self._store.is_host_invited(roo... |
<vulnerable_code> async def check_host_in_room(room_id: str, server_name: str) -> bool:
return room_id == ROOM_ID
hs.get_event_auth_handler().check_host_in_room = check_host_in_room
async def get_current_hosts_in_room(room_id: str):
return {member.domain for member in se... |
<vulnerable_code>
switch (eap->type) {
case EAP_FRAME_TYPE_PACKET:
type = *(tptr);
len = EXTRACT_16BITS(tptr+2);
ND_PRINT((ndo, ", %s (%u), id %u, len %u",
tok2str(eap_code_values, "unknown", type),
ND_TCHECK2(*tptr, len);
if (type <= 2) { /* For EAP_REQUE... |
<vulnerable_code>
@WebMethod(name="heapdump.hprof")
public void doHeapDump(StaplerRequest req, StaplerResponse rsp) throws IOException, InterruptedException {
owner.checkPermission(Jenkins.ADMINISTER);
rsp.setContentType("application/octet-stream");
FilePath dump = o... |
<vulnerable_code> return -ENOMEM;
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
/* Just ioremap, as this MDIO block is usually integrated into an
* Ethernet MAC controller register range<commit_title>[PATCH] net: phy: mdio-bcm-unimac: fix potential NULL dereference in<commit_description><fixed_code>
retu... |
<vulnerable_code> file_path = content
data_content = []
with OpenAPILoader._get_file_content(content=content) as file:
yaml_data = yaml.load(file, Loader=yaml.Loader)
for i, (key, value) in enumerate(yaml_data.items()):
string_data = f"{key}: {value}"
... |
<vulnerable_code> parser.add_argument('-vev', '--vault-endpoint-verify',
type=str,
action=VaultEndpointVerifyAction,
help='Can be "true", "false", a path to certificate PEM file or a path to directory with PEM files. '
... |
<vulnerable_code>from unittest import mock
import shutil
import freezegun
from bigflow.build.operate import BuildImageCacheParams
from bigflow.deploy import AuthorizationType
cli(['deploy-dags'])
# then
deploy_dags_folder_mock.assert_called_with(auth_method=AuthorizationType.LOCAL_ACCOUNT,
... |
<vulnerable_code> int32_t ret = 0;
fuse_private_t *private = NULL;
gf_boolean_t start_thread = _gf_false;
glusterfs_graph_t *graph = NULL;
struct pollfd pfd = {0};
graph = data;
gf_log("fuse", GF_LOG_DEBUG, "got event %d on graph %d", event,
((graph) ? graph->id : 0));
swit... |
<vulnerable_code>
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import test_util
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import gen_nn_ops
nn_ops.fractional_max_pool(
rand_mat, [1, 1.5, 1... |
<vulnerable_code>static int rpcapd_discard(SOCKET sock, uint32 len);
static void session_close(struct session *);
int
daemon_serviceloop(SOCKET sockctrl, int isactive, char *passiveClients,
int nullAuthAllowed)
source[nread] = '\0';
plen -= nread;
// XXX - make sure it's *not* a URL; we don't support opening
... |
<vulnerable_code>#include "netdissect.h"
#include "extract.h"
#include "addrtoname.h"
#define VQP_VERSION 1
#define VQP_EXTRACT_VERSION(x) ((x)&0xFF)
const u_char *tptr;
uint16_t vqp_obj_len;
uint32_t vqp_obj_type;
int tlen;
uint8_t nitems;
tptr=pptr;
tlen = len;
vqp_commo... |
<vulnerable_code> filestr = r_file_slurp_line (file, line, 0);
if (filestr) {
int flen = strlen (filestr);
cmdstr = realloc (cmdstr, idx + flen + 8);
memcpy (cmdstr + idx, filestr, flen);
idx += flen;<commit_title>[PATCH] Fix integer overflow in fuzzed dwarf rendering in graphs<commit_descrip... |
<vulnerable_code> mg_http_parse_headers(s, end, hm->headers,
sizeof(hm->headers) / sizeof(hm->headers[0]));
if ((cl = mg_http_get_header(hm, "Content-Length")) != NULL) {
hm->body.len = (size_t) mg_to64(*cl);
hm->message.len = (size_t) req_len + hm->body.len;
}
<commit_title>[PATCH]... |
<vulnerable_code> ASSERT(fetch(&mgr, buf, url, "GET /..ddot HTTP/1.0\n\n") == 301);
ASSERT(fetch(&mgr, buf, url, "GET /..ddot/ HTTP/1.0\n\n") == 200);
ASSERT(cmpbody(buf, "hi\n") == 0);
{
extern char *mg_http_etag(char *, size_t, size_t, time_t);<commit_title>[PATCH] Added check for negative value for HTTP ... |
<vulnerable_code>from graphite.render.views import renderView
from graphite.util import json
from graphite.user_util import isAuthenticated
fieldRegex = re.compile(r'<([^>]+)>')
defaultScheme = {
config = DashboardConfig()
def dashboard(request, name=None):
dashboard_conf_missing = False
try:
return render(re... |
<vulnerable_code>from django.http import HttpResponseBadRequest
from graphite.logger import log
class NormalizeEmptyResultError(Exception):
return msg
# Replace special characters "&", "<" and ">" to HTML-safe sequences.
def escape(s):
s = s.replace("&", "&") # Must be done first!
s = s.replace... |
<vulnerable_code> yield index
def load_module(module_path, member=None):
module_name = splitext(basename(module_path))[0]
try: # 'U' is default from Python 3.0 and deprecated since 3.9<commit_title>[PATCH] prevent xss on dashbord queries<commit_description><fixed_code>
yield index
# Replace special ... |
<vulnerable_code>from graphite.worker_pool.pool import stop_pools
class TestCase(OriginalTestCase):
def tearDown(self):
stop_pools()
" (expected %d)" % (response.status_code, status_code)
)
xss = response.content.find(b"<") != -1 or response.content.find(b">") != -1
... |
<vulnerable_code>except ImportError:
from django.contrib.auth.models import User
class DashboardTest(TestCase):
# Set config to the test config file
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"templates": []}')
def test_dashboard_save_template(self):... |
<vulnerable_code> '<a href="{{downloadUrl}}" class="downloadVersion"><img src="{{downloadIconUrl}}" />' +
'<span class="versiondate has-tooltip" title="{{formattedTimestamp}}">{{relativeTimestamp}}</span>' +
'</a>' +
'<a href="#" class="revertVersion" title="{{revertLabel}}"><img src="{{revertIconUrl}}" /></a>' ... |
<vulnerable_code> fetchStub = sinon.stub(VersionCollection.prototype, 'fetch');
fileInfoModel = new OCA.Files.FileInfoModel({
id: 123,
name: 'test.txt'
});
tabView = new VersionsTabView();
tabView.render();
expect($item.find('.revertVersion').length).toEqual(1);
expect($item.find('.preview').attr('... |
<vulnerable_code>
_check_access('user_create', context, data_dict)
upload = uploader.get_uploader('user')
upload.update_data_dict(data_dict, 'image_url',
'image_upload', 'clear_upload')
user_dictize_context['keep_apikey'] = True
user_dictize_context['keep_email'] = True
... |
<vulnerable_code> user_obj = model.User.get(user["id"])
assert user_obj.password != "pretend-this-is-a-valid-hash"
def _clear_activities():
from ckan import model<commit_title>[PATCH] Perform checks on provided id when creating user<commit_description><fixed_code>
user_obj = model.User.get(... |
<vulnerable_code> * The servlet context for the controller.
*/
public VaadinConnectController(
@Autowired @Qualifier(VAADIN_ENDPOINT_MAPPER_BEAN_QUALIFIER) ObjectMapper vaadinEndpointMapper,
VaadinConnectAccessChecker accessChecker,
EndpointNameChecker endpoin... |
<vulnerable_code> */
@Bean
@Qualifier(VAADIN_ENDPOINT_MAPPER_BEAN_QUALIFIER)
ObjectMapper objectMapper(ApplicationContext context) {
try {
ObjectMapper objectMapper = new ObjectMapper();
JacksonProperties jacksonProperties = context
.getBean(JacksonPro... |
<vulnerable_code><commit_title>[PATCH] fix connect controller tests<commit_description><fixed_code>
package com.vaadin.flow.server.connect;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static or... |
<vulnerable_code>import static org.mockito.Mockito.CALLS_REAL_METHODS;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.only;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
}
@Test
public void should_Us... |
<vulnerable_code> break;
colors=(size_t) (length/2);
datum=(int) colors;
redmap=(int *) AcquireQuantumMemory((size_t) colors,
sizeof(*redmap));
if (redmap == (int *) NULL)
break;
colors=(size_t) (length/2);
... |
<vulnerable_code> hdr->sadb_msg_pid = c->portid;
hdr->sadb_msg_version = PF_KEY_V2;
hdr->sadb_msg_errno = (uint8_t) 0;
hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));
pfkey_broadcast(skb_out, GFP_ATOMIC, BROADCAST_ALL, NULL, c->net);
return 0;<commit_title>[PATCH] af_key: initialize satype in key... |
<vulnerable_code>import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import org.codehaus.plexus.components.io.fileselectors.FileSelector;
import org.codehaus.plexus.c... |
<vulnerable_code> unarchiver.setSourceFile(archiveFile);
unarchiver.setDestFile(output);
unarchiver.extract();
}
@Test
unarchiver.setSourceFile(archiveFile);
unarchiver.setDestFile(output);
unarchiver.extract();
}
@Test<commit_title>[PATCH] Avoid override... |
<vulnerable_code>import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
... |
<vulnerable_code>
idx = ARMV8_PMU_CYCLE_IDX;
} else {
BUG();
}
} else if (r->CRn == 14 && (r->CRm & 12) == 8) {
/* PMEVCNTRn_EL0 */
if (pmu_access_event_counter_el0_disabled(vcpu))
idx = ((r->CRm & 3) << 3) | (r->Op2 & 7);
} else {
BUG();
}
if (!pmu_counter_idx_valid(vcpu, idx))<commit_title>[PA... |
<vulnerable_code> var right = x2lon( map.getExtent().right ).toFixed(5);
var top = y2lat( map.getExtent().top ).toFixed(5);
var bottom = y2lat( map.getExtent().bottom ).toFixed(5);
var baseUrl = 'http://127.0.0.1:8111/load_and_zoom?left='+left+'&right='+right+'&top='+my_top+'&bottom='+bottom;
... |
<vulnerable_code> g_signal_emit (self, signals[END_OF_LIFED_WITH_REBASE], 0, op->remote, flatpak_decomposed_get_ref (op->ref), op->eol, op->eol_rebase, previous_ids, &op->skip);
}
static void
mark_op_resolved (FlatpakTransactionOperation *op,
const char *commit,
GF... |
<vulnerable_code> key->flags |= 1 << KEY_FLAG_IN_QUOTA;
if (flags & KEY_ALLOC_BUILT_IN)
key->flags |= 1 << KEY_FLAG_BUILTIN;
#ifdef KEY_DEBUGGING
key->magic = KEY_DEBUG_MAGIC;<commit_title>[PATCH] KEYS: prevent creating a different user's keyrings<commit_description>It was possible for an unprivileged user to cre... |
<vulnerable_code>/*
* Find a keyring with the specified name.
*
* All named keyrings in the current user namespace are searched, provided they
* grant Search permission directly to the caller (unless this check is
* skipped). Keyrings whose usage points have reached zero or who have been
* revoked are skipped.
... |
<vulnerable_code> * (c) 2014-2019 Evan You
* Released under the MIT License.
*/
var r=Object.freeze({});function n(t){return void 0===t||null===t}function o(t){return void 0!==t&&null!==t}function i(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typ... |
<vulnerable_code>/******/
/******/ var hotApplyOnUpdate = true;
/******/ // eslint-disable-next-line no-unused-vars
/******/ var hotCurrentHash = "87510aa14ce3a80ce2a3";
/******/ var hotRequestTimeout = 10000;
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentChildModule;
getTopBarButtonsGroup: fun... |
<vulnerable_code> getTopBarButtonsGroup: (context) => {
context.commit('clean');
return new Promise((resolve, reject) => {
ajax.methods.$_get(LS.createUrl('admin/questiongroups/sa/getQuestionGroupTopBar', {
sid: context.state.sid || LS.reparsedParameters().combined.sid,
... |
<vulnerable_code> if (calleeResolvedMethod && !calleeResolvedMethod->virtualMethodIsOverridden())
{
TR_VirtualGuardKind kind = TR_ProfiledGuard;
if (_receiverClass != NULL
&& !TR::Compiler->cls.isInterfaceClass(comp(), _receiverClass))
{
kind = TR_InterfaceGuard;
... |
<vulnerable_code> CHECKINT32(idx, len); a->names[i].len = GETINT32(buf+idx); idx += 4;
/* read the data into a buffer */
assert(idx+a->names[i].len <= len);
a->names[i].data = unicode_to_utf8(a->names[i].len, buf+idx);
<commit_title>[PATCH] Handle overflow problem reported in... |
<vulnerable_code> int j = 0;
unsigned char *utf8 = malloc (3 * len/2 + 1); /* won't get any longer than this */
for (i = 0; i < len - 1; i += 2)
{
uint32 c = GETINT16(buf + i);
if (c <= 0x007f)
{
utf8[j++] = 0x00 | ((c & 0x007f) >> 0);
}
else if (c < 0x07ff)
{
utf8[j++] = 0xc0 | ((c & 0x... |
<vulnerable_code> return retval;
}
/*
* Skip over an expression at "*pp".
* Return FAIL for an error, OK otherwise.
// Do not free the first line, the caller can still use it.
*((char_u **)gap->ga_data) = NULL;
// Do not free the last line, "arg" points into it, free it
// later.
vim_free(evalarg->eval_... |
<vulnerable_code> char_u *start, *end;
int *old_eval_lavars = eval_lavars_used;
int eval_lavars = FALSE;
char_u *tofree1 = NULL;
char_u *tofree2 = NULL;
int equal_arrow = **arg == '(';
int white_error = FALSE;
ret = skip_expr_concatenate(arg, &start, &end, evalarg);
if (ret == FAI... |
<vulnerable_code>
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
224,
/**/<commit_title>[PATCH] patch 9.0.0225: using freed memory with multiple line breaks<commit_description><fixed_code>
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2... |
<vulnerable_code> data=np.uint16(10), segment_ids=np.array([]).astype("int64"))
self.evaluate(s)
class UnsortedSegmentTest(SegmentReductionHelper):
<commit_title>[PATCH] Add test case for GitHub isseu 46888.<commit_description>Signed-off-by: Yong Tang <yong.tang.github@outlook.com><fixed_code>
... |
<vulnerable_code> if (LocaleCompare(keyword,"number-meta-channels") == 0)
{
image->number_meta_channels=StringToUnsignedLong(options);
break;
}
break;<commit_title>[PATCH] Added check for incorrect number of meta ... |
<vulnerable_code>package org.glassfish.soteria.mechanisms.jaspic;
import java.util.Map;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.message.AuthException;
/**
* This class functions as a kind of factory-factory for {@link ServerAuthConfig} instances, which are by themselves factor... |
<vulnerable_code>package org.glassfish.soteria.mechanisms.jaspic;
import java.util.Map;
import javax.security.auth.Subject;
import javax.security.auth.callback.CallbackHandler;
/**
* This class functions as a kind of factory for {@link ServerAuthContext} instances, which are delegates for the actual
* {@link Server... |
<vulnerable_code>package org.glassfish.soteria.mechanisms.jaspic;
import java.util.Collections;
import javax.security.auth.Subject;
import javax.security.auth.callback.CallbackHandler;
* <p>
* Since this simple example only has a single SAM, we delegate directly to that one. Note that this {@link ServerAuthContext}... |
<vulnerable_code>import java.security.PrivilegedAction;
import java.util.List;
import java.util.Set;
import javax.security.enterprise.AuthenticationStatus;
import javax.security.auth.Subject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* A set of utility methods f... |
<vulnerable_code>import org.glassfish.soteria.mechanisms.jaspic.Jaspic;
/**
* If an HttpAuthenticationMechanism implementation has been found on the classpath, this
* initializer installs a bridge SAM that delegates the validateRequest, secureResponse and
* cleanSubject methods from the SAM to the HttpAuthenticati... |
<vulnerable_code>{
GF_List *list = NULL, *alt_list = NULL;
GF_NALUFFParam *sl;
u32 i, count;
u32 crc = gf_crc_32(data, size);
if (ctx->codecid==GF_CODECID_HEVC) {
switch (ps_type) {<commit_title>[PATCH] fixed #1892<commit_description><fixed_code>
{
GF_List *list = NULL, *alt_list = NULL;
GF_NALUFFParam *sl;
... |
<vulnerable_code><commit_title>[PATCH 01/32] Implement MSC2858 support (#9183)<commit_description>Fixes #8928.<fixed_code>
# -*- coding: utf-8 -*-
# Copyright 2021 The Matrix.org Foundation C.I.C.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with t... |
<vulnerable_code>from .consent_config import ConsentConfig
from .database import DatabaseConfig
from .emailconfig import EmailConfig
from .federation import FederationConfig
from .groups import GroupsConfig
from .jwt_config import JWTConfig
config_classes = [
ServerConfig,
TlsConfig,
Federa... |
<vulnerable_code>from twisted.web.http import Request
from synapse.api.constants import LoginType
from synapse.api.errors import Codes, RedirectException, SynapseError
from synapse.handlers.ui_auth import UIAuthSessionDataConstants
from synapse.http import get_request_user_agent
from synapse.http.server import respond... |
<vulnerable_code>import urllib
from http import HTTPStatus
from io import BytesIO
from typing import Any, Callable, Dict, Iterator, List, Tuple, Union
import jinja2
from canonicaljson import iterencode_canonical_json
from zope.interface import implementer
from twisted.internet import defer, interfaces
return pres... |
<vulnerable_code>from synapse.api.errors import Codes, LoginError, SynapseError
from synapse.api.ratelimiting import Ratelimiter
from synapse.appservice import ApplicationService
from synapse.http.server import finish_request
from synapse.http.servlet import (
RestServlet,
parse_json_object_from_request,
... |
<vulnerable_code># the query params in TEST_CLIENT_REDIRECT_URL
EXPECTED_CLIENT_REDIRECT_URL_PARAMS = [("<ab c>", ""), ('q" =+"', '"fö&=o"')]
class LoginRestServletTestCase(unittest.HomeserverTestCase):
d["/_synapse/oidc"] = OIDCResource(self.hs)
return d
def test_multi_sso_redirect(self):
... |
<vulnerable_code>from synapse.config.database import DatabaseConnectionConfig
from synapse.config.homeserver import HomeServerConfig
from synapse.config.server import DEFAULT_ROOM_VERSION
from synapse.http.server import HttpServer
from synapse.logging.context import current_context, set_current_context
from synapse.ser... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.