text
stringlengths
79
3.72M
<vulnerable_code> config = self.default_config() config["start_pushers"] = True hs = self.setup_test_homeserver(config=config, proxied_http_client=m) return hs <commit_title>[PATCH] Apply an IP range blacklist to push and key revocation<commit_description><fixed_code> config = s...
<vulnerable_code> # Make a new HomeServer object for the worker self.reactor.lookups["testserv"] = "1.2.3.4" self.worker_hs = self.setup_test_homeserver( http_client=None, homeserver_to_use=GenericWorkerServer, config=self._get_worker_hs_config(), r...
<vulnerable_code> self.make_worker_hs( "synapse.app.federation_sender", {"send_federation": True}, http_client=mock_client, ) user = self.register_user("user", "pass") "worker_name": "sender1", "federation_sender_instances": ["s...
<vulnerable_code> } config["media_storage_providers"] = [provider_config] hs = self.setup_test_homeserver(config=config, http_client=client) return hs <commit_title>[PATCH] Apply an IP range blacklist to push and key revocation<commit_description><fixed_code> } config["m...
<vulnerable_code> hs = self.setup_test_homeserver( "red", http_client=None, federation_client=Mock(), presence_handler=presence_handler, )<commit_title>[PATCH] Apply an IP range blacklist to push and key revocation<commit_description><fixed_code> ...
<vulnerable_code> hs = yield setup_test_homeserver( self.addCleanup, "test", http_client=None, resource_for_client=self.mock_resource, federation=Mock(), federation_client=Mock(),<commit_title>[PATCH] Apply an IP range blacklist to push and ...
<vulnerable_code> def make_homeserver(self, reactor, clock): self.hs = self.setup_test_homeserver( "red", http_client=None, federation_client=Mock(), ) self.hs.get_federation_handler = Mock()<commit_title>[PATCH] Apply an IP range blacklist to push and key revocation<commit_desc...
<vulnerable_code> def make_homeserver(self, reactor, clock): hs = self.setup_test_homeserver( "red", http_client=None, federation_client=Mock(), ) self.event_source = hs.get_event_sources().sources["typing"]<commit_title>[PATCH] Apply an IP range blacklist to push and key revoca...
<vulnerable_code>class BaseRemoteKeyResourceTestCase(unittest.HomeserverTestCase): def make_homeserver(self, reactor, clock): self.http_client = Mock() return self.setup_test_homeserver(http_client=self.http_client) def create_test_resource(self): return create_resource_tree( ...
<vulnerable_code> class E2eRoomKeysHandlerTestCase(unittest.HomeserverTestCase): def make_homeserver(self, reactor, clock): hs = self.setup_test_homeserver("server", http_client=None) self.store = hs.get_datastore() return hs <commit_title>[PATCH] Apply an IP range blacklist to push and key ...
<vulnerable_code> servlets = [room.register_servlets] def make_homeserver(self, reactor, clock): hs = self.setup_test_homeserver("server", http_client=None) return hs def prepare(self, reactor, clock, hs):<commit_title>[PATCH] Apply an IP range blacklist to push and key revocation<commit_de...
<vulnerable_code> config = self.default_config() config["redaction_retention_period"] = "30d" return self.setup_test_homeserver( resource_for_federation=Mock(), http_client=None, config=config ) def prepare(self, reactor, clock, hs):<commit_title>[PATCH] Apply an IP range...
<vulnerable_code> def make_homeserver(self, reactor, clock): hs = self.setup_test_homeserver( resource_for_federation=Mock(), http_client=None ) return hs <commit_title>[PATCH] Apply an IP range blacklist to push and key revocation<commit_description><fixed_code> def make_ho...
<vulnerable_code> self.hs_clock = Clock(self.reactor) self.homeserver = setup_test_homeserver( self.addCleanup, http_client=self.http_client, clock=self.hs_clock, reactor=self.reactor, )<commit_title>[PATCH] Apply an IP range blacklist to push and k...
<vulnerable_code> self.reactor = ThreadedMemoryReactorClock() self.hs_clock = Clock(self.reactor) self.homeserver = setup_test_homeserver( self.addCleanup, http_client=None, clock=self.hs_clock, reactor=self.reactor ) def test_handler_for_request(self):<commit_title>[PATC...
<vulnerable_code>from json import JSONDecodeError from operator import itemgetter from typing import Any, Callable from urllib.parse import parse_qsl, unquote, urlencode, urlparse import configupdater import flask.json def get_safe_url(url): """Given a user-supplied URL, ensure it points to our web server""" ...
<vulnerable_code> "test_url, expected_url", [ ("", "/home"), ("http://google.com", "/home"), ("36539'%3balert(1)%2f%2f166", "/home"), ( "http://localhost:8080/trigger?dag_id=test&origin=36539%27%3balert(1)%2f%2f166&abc=2",<commit_title>[PATCH] Simplify origin string cl...
<vulnerable_code> ("36539'%3balert(1)%2f%2f166", "/home"), ( '"><script>alert(99)</script><a href="', "&#34;&gt;&lt;script&gt;alert(99)&lt;/script&gt;&lt;a href=&#34;", ), ( "%2Ftree%3Fdag_id%3Dexample_bash_operator';alert(33)//", "/home", ...
<vulnerable_code> # Redirect to Setup view return HttpResponseRedirect(reverse("init-db")) return None<commit_title>[PATCH] Define Content-Security-Policy header to block inline<commit_description><fixed_code> # Redirect to Setup view return HttpResponseRedirect(re...
<vulnerable_code>} # django-debug-toolbar settings MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"] # noqa: F405 INSTALLED_APPS += ["debug_toolbar"] # noqa: F405 <commit_title>[PATCH] Define Content-Security-Policy header to block inline<commit_description><fixed_code> } # django-debug-toolbar sett...
<vulnerable_code>htmlescape (const char *restrict src, const int cp) { int len; char *dest, *d; unsigned char *s; if (!src) return NULL; len = strlen (src) + 10; d = malloc (len); s = (unsigned char *)src; dest = d; while (*s++) { const int off = d - dest; if (off >= len - 8) ...
<vulnerable_code> } case SWFACTION_GETURL: { char* url = (char*) buf+1; sprintf (buf_asm, "%s %s", op.name, url); dlen = strlen (url) + 2; break; } } case SWFACTION_SETTARGET: { char* target = (char*) buf+1; sprintf (buf_asm, "%s %s", op.name, target); dlen = 1; break; }<commit_title>...
<vulnerable_code>import org.w3c.dom.NodeList; import org.xml.sax.SAXException; /** * Generic DOM reader for an XML file */ public static Document readDocument(File f) throws IOException, SAXException, ParserConfigurationException { Document document = null; DocumentBuilderFactory factory = DocumentBuilderFacto...
<vulnerable_code>import edu.stanford.nlp.semgraph.semgrex.ssurgeon.pred.*; import edu.stanford.nlp.semgraph.semgrex.SemgrexPattern; import edu.stanford.nlp.util.Generics; import edu.stanford.nlp.util.logging.Redwood; private static Document createPatternXMLDoc(List<SsurgeonPattern> patterns) { try { Docu...
<vulnerable_code>/*global localStorage */ pimcore.registerNS("pimcore.helpers.x"); pimcore.helpers.registerKeyBindings = function (bindEl, ExtJS) { if (!ExtJS) {<commit_title>[PATCH] [Task] Optimized blacklist email input (#14467)<commit_description>* optimized email input * added filter for email address * fix...
<vulnerable_code> icon:"/bundles/pimcoreadmin/img/flat-color-icons/delete.svg", handler:function (grid, rowIndex) { let data = grid.getStore().getAt(rowIndex); pimcore.helpers.deleteConfirm(t('email_blacklist'), data....
<vulnerable_code>import configparser from flask import Flask, render_template, session, request, flash, redirect, url_for, Response, abort, jsonify, send_file import socket import os import random import os script_dir = os.path.dirname(__file__) # <-- absolute dir the script is in rel_path = p...
<vulnerable_code> ret = check_block_validity(inode, map); if (ret != 0) return ret; } return retval; } int i_size_changed = 0; trace_ext4_write_end(inode, pos, len, copied); if (ext4_test_inode_state(inode, EXT4_STATE_ORDERED_MODE)) { ret = ext4_jbd2_file_inode(handle, inode); if (ret) { unlock_page(...
<vulnerable_code><commit_title>[PATCH] Add reproducer for #247<commit_description><fixed_code> # -*- coding: utf-8 -*- import system_tests class TestFirstPoC(system_tests.Case): """ Regression test for the first bug described in: https://github.com/Exiv2/exiv2/issues/247 """ url = "https://github....
<vulnerable_code> if (buf[0]) conf_write(fp, "%s", buf); conf_write(fp, " rx_bufs_multiples = %u", global_data->vrrp_rx_bufs_multiples); #endif }<commit_title>[PATCH] Add command line and configuration option to set umask<commit_description>Issue #1048 identified that files created by keepalived are created with mod...
<vulnerable_code>#include <sched.h> #endif #include <strings.h> #ifdef _WITH_SNMP_ #include "snmp.h" } #endif void init_global_keywords(bool global_active) { install_keyword("vrrp_rx_bufs_policy", &vrrp_rx_bufs_policy_handler); install_keyword("vrrp_rx_bufs_multiplier", &vrrp_rx_bufs_multiplier_handler); #endif }<c...
<vulnerable_code>#include <signal.h> #include <fcntl.h> #include <sys/wait.h> #include <sys/stat.h> #include <unistd.h> #include <getopt.h> }; #define LOG_FACILITY_MAX ((sizeof(LOG_FACILITY) / sizeof(LOG_FACILITY[0])) - 1) /* Control producing core dumps */ static bool set_core_dump_pattern = false; static bool create...
<vulnerable_code> DataBuf chunkId(WEBP_TAG_SIZE+1); chunkId.pData_ [WEBP_TAG_SIZE] = '\0'; io_->read(data, WEBP_TAG_SIZE * 3); uint64_t filesize = Exiv2::getULong(data + WEBP_TAG_SIZE, littleEndian); /* Set up header */ case we have any exif or xmp data, also check ...
<vulnerable_code>@cherrypy.tools.currentuser(userobj=lambda username: UserObject.get_user(username)) @cherrypy.tools.db() @cherrypy.tools.enrich_session() @cherrypy.tools.proxy(remote='X-Real-IP') @cherrypy.tools.secure_headers() class Root(LocationsPage): def __init__(self):<commit_title>[PATCH] Discard `X-Forward...
<vulnerable_code> // [databind#2631]: shaded hikari-config s.add("org.apache.hadoop.shaded.com.zaxxer.hikari.HikariConfig"); // [databind#2634]: ibatis-sqlmap, anteros-core s.add("com.ibatis.sqlmap.engine.transaction.jta.JtaTransactionConfig"); s.add("br.com.anteros.dbcp.AnterosD...
<vulnerable_code> throw new IOException(uri + " returns http " + httpStatusCode); } in = response.getEntity().getContent(); } else { in = uri.toURL().openStream(); } String fileName = FilenameUtils.getName(uri.getPath()); if (isBlank(FilenameUtils.getExtension(fi...
<vulnerable_code> testAuthWhitelist("http://www.example.org/testfile", "http://localhost.*", true, false, true); //Matching regex testAuthWhitelist("http://www.example.org/testfile", "http://localhost.*|http://www.example.org/.*", false, true, true); } <commit_title>[PATCH 3/3] Per discussion on the secur...
<vulnerable_code> in = response.getEntity().getContent(); // This weird path whitelists files which exist *inside this bundle during build*, but likely won't cause issues // at runtime. This will need to be changed if this module ever gets renamed though. } else if (!uri.toString().startsW...
<vulnerable_code> testAuthWhitelist("http://www.example.org/testfile", "http://localhost.*", true, false, true); //Matching regex testAuthWhitelist("http://www.example.org/testfile", "http://localhost.*|http://www.example.org/.*", false, true, true); //Local filesystem should be actively rejected. This ...
<vulnerable_code> private boolean skipCatalogs = DEFAULT_SKIP; private boolean skipAttachments = DEFAULT_SKIP; /** * Creates a new ingest service instance. */ throw new IOException(uri + " returns http " + httpStatusCode); } in = response.getEntity().getContent(); // This w...
<vulnerable_code> Dictionary<String, String> p = new Hashtable<>(); p.put(IngestServiceImpl.DOWNLOAD_SOURCE, "http://localhost.*|http://www.test.com/.*"); service.updated(p); } @After<commit_title>[PATCH 3/3] Per discussion on the security ticket, previous exception<commit_description><fixed_code> D...
<vulnerable_code> _("Duplicate key. This key already exists or is associated to another user.") ) cherrypy.engine.publish('user_attr_changed', self, {'authorizedkeys': True}) def add_access_token(self, name, expiration_time=None, length=16): """<commit_title>[PATC...
<vulnerable_code> self.bus.log('Start Notification plugin') self.bus.publish('schedule_job', self.execution_time, self.notification_job) self.bus.subscribe('access_token_added', self.access_token_added) self.bus.subscribe('user_attr_changed', self.user_attr_changed) self.bus.subsc...
<vulnerable_code> subject='Password changed', message='<html>\n <head></head>\n <body>\n <p>\n <a>Hey admin,</a>\n </p>\n <p>You recently changed the password associated with your Rdiffweb account.</p>\n <p>\n If you did not make this change and believe your account has be...
<vulnerable_code> return 0; } if (strlen(parv[1]) > 400) { sendto_one(sptr, err_str(ERR_SASLTOOLONG), me.name, BadPtr(sptr->name) ? "*" : sptr->name);<commit_title>[PATCH] Fix AUTHENTICATE bug<commit_description><fixed_code> return 0; } if ((parv[1][0] == ':') || strchr(parv[1], ' ')) { sendto_one(sptr, ...
<vulnerable_code> from typing import TYPE_CHECKING from sqlalchemy import select from airflow.api_connexion import security from airflow.api_connexion.parameters import apply_sorting, check_limit, format_parameters from airflow.api_connexion.schemas.dag_warning_schema import ( DagWarningCollection, ) from airflow...
<vulnerable_code> var applyBtn = mxUtils.button(mxResources.get('apply'), function() { var color = input.value; ColorDialog.addRecentColor(color, 12); if (color != 'none' && color.charAt(0) != '#') { color = '#' + color; } applyFunction(color); editorUi.hideDialog(); }); applyBtn.className = 'ge...
<vulnerable_code> return function middleware (req, res, next) { // Strip any null bytes from the url while(req.url.indexOf('%00') !== -1) { req.url = req.url.replace(/\%00/g, ''); } // Figure out the path for the file from the given url var parsed = url.parse(req.url); try {<commit_title...
<vulnerable_code> goto err_exit; } } if ((int) ref_function_name_length < 0) { goto err_exit; } for (j = 0; j < ref_function_name_length; j++) {<commit_title>[PATCH] Fix #11274 attempt. (#11300)<commit_description><fixed_code> goto err_exit; } } if ((int) ref_function_name_length < 0 || ref_...
<vulnerable_code> if (flipped_image != (Image *) NULL) { DuplicateBlob(flipped_image,image); image=DestroyImage(image); image=flipped_image; } }<commit_title>[PATCH] Replace image in list to fix issue reported in #467.<commit_description><fixed_code> ...
<vulnerable_code> goto error; asdl_seq_SET(kwonlyargs, j++, arg); i += 1; /* the name */ if (TYPE(CHILD(n, i)) == COMMA) i += 1; /* the comma, if present */ break; case TYPE_COMMENT: if (!k...
<vulnerable_code> * @returns {string} error - undefined if it is valid */ validate(name, object) { return this.resolve(name).fn(object); }, /**<commit_title>[PATCH] avoid injected code execution<commit_description><fixed_code> * @returns {string} error - undefined if it is valid */ validate(name...
<vulnerable_code> * Defines a small templater functionality for creating functions body. */ /** * @name template * @type function tpl.lines.push( expression .replace(/%i/g, () => 'i') .replace(/\$(\d)/g, (match, index) => `${args[index - 1]}`) .replace(/(%[sd])/g, () => { ...
<vulnerable_code><commit_title>[PATCH] avoid injected code execution<commit_description><fixed_code> /* If an attacker can control the schema file, it could run arbitrary JavaScript code on the victim machine. This is demonstrated by the following POC: const djv = require('djv'); const env = new djv(); const evilSchema...
<vulnerable_code> t->sock.stack = S; t->sock.timestamp = TCP_TIME; pico_socket_set_family(&t->sock, family); t->mss = (uint16_t)(pico_socket_get_mss(&t->sock) - PICO_SIZE_TCPHDR); t->tcpq_in.pool.root = t->tcpq_hold.pool.root = t->tcpq_out.pool.root = &LEAF; t->tcpq_hold.pool.compare = t->tcpq_ou...
<vulnerable_code> const encryptedKey = await encryptStringAsymmetric( publicKey, await window.crypto.subtle.exportKey('raw', encryptedEncryptionParams.key), ) return {<commit_title>[PATCH] Encode key to base64 before encrypting it<commit_description>Signed-off-by: Louis Chemineau <louis@chmn.me><fixed_code> c...
<vulnerable_code> Mockito.when(lookup.lookup(ResourceProvider.class)) .thenReturn(resourceProvider); Mockito.when(context.getAttribute(Lookup.class.getName())) .thenReturn(lookup); getServlet().init(config);<commit_title>[PA...
<vulnerable_code> */ protected StaticFileHandler createStaticFileHandler( VaadinServletService servletService) { return new StaticFileServer(servletService); } protected void servletInitialized() throws ServletException {<commit_title>[PATCH] refactor: use StaticFileHandler as a ser...
<vulnerable_code>import com.vaadin.tests.util.TestUtil; import elemental.json.Json; import net.jcip.annotations.NotThreadSafe; @NotThreadSafe public class ComponentTest { private UI ui;<commit_title>[PATCH] refactor: use StaticFileHandler as a service (#10229)<commit_description><fixed_code> import com.vaadin.te...
<vulnerable_code> public void serviceContainsStreamRequestHandler() throws ServiceException, ServletException { ServletConfig servletConfig = new MockServletConfig(); servletConfig.getServletContext().setAttribute(Lookup.class.getName(), Mockito.mock(Lookup.class)); ...
<vulnerable_code> Assert.assertNull(servlet.getServletConfig()); } private ServletConfig mockConfig() { ServletConfig config = Mockito.mock(ServletConfig.class); ServletContext context = Mockito.mock(ServletContext.class);<commit_title>[PATCH] refactor: use StaticFileHandler as a service...
<vulnerable_code> "com\\.vaadin\\.flow\\.internal\\.JavaScriptSemantics", "com\\.vaadin\\.flow\\.internal\\.nodefeature\\.NodeProperties", "com\\.vaadin\\.flow\\.internal\\.AnnotationReader", "com\\.vaadin\\.flow\\.server\\.communication\\.ServerRpcHandler\...
<vulnerable_code> if (entries >= UINT_MAX / sizeof(*sc->drefs)) return AVERROR_INVALIDDATA; av_free(sc->drefs); sc->drefs = av_mallocz(entries * sizeof(*sc->drefs)); if (!sc->drefs) return AVERROR(ENOMEM);<commit_title>[PATCH] mov: reset dref_count on realloc to keep values consistent.<co...
<vulnerable_code> const char *s = src; *pt++ = '"'; /* save room for trailing quote-char */ dlen -= 2; for (; *s && dlen; s++) {<commit_title>[PATCH] imap_quote_string make room for quotes<commit_description><fixed_code> const char *s = src; *pt++ = '"'; /* save room for quote-chars */ dlen -= 3; ...
<vulnerable_code> /* Only real associations count against the endpoint, so * don't bother for if this is a temporary association. */ if (!asoc->temp) { list_del(&asoc->asocs); /* Decrement the backlog value for a TCP-style listening<commit_title>[PATCH] sctp: Fix sk_ack_backlog wrap-around problem<commit_desc...
<vulnerable_code> return 0; } /* -------------------------------- * pq_startmsgread - begin reading a message from the client.<commit_title>[PATCH] Reject extraneous data after SSL or GSS encryption handshake.<commit_description>The server collects up to a bufferload of data whenever it reads data from the client s...
<vulnerable_code> return STATUS_ERROR; #endif /* * regular startup packet, cancel, etc packet should follow, but not * another SSL negotiation request, and a GSS request should only return STATUS_ERROR; #endif /* * regular startup packet, cancel, etc packet should follow, but not * another GSS ne...
<vulnerable_code> // Register routes app.get( "/i18n/:locale", i18nRoutes.i18n ); app.get( "/i18n/:locale/:phrase", i18nRoutes.translate ); }; /**<commit_title>[PATCH] [FIX] Only register translate route during development<commit_description><fixed_code> // Register routes app.get( "/i18n/:locale", i18nRoutes.i1...
<vulnerable_code>/* {{{ proto string radius_get_vendor_attr(data) */ PHP_FUNCTION(radius_get_vendor_attr) { int res; const void *data; int len; u_int32_t vendor; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &data, &len) == FAILURE) { return; } res = rad_get_vendor_attr(&vendor, &data, (size_t *)...
<vulnerable_code>} int rad_get_vendor_attr(u_int32_t *vendor, const void **data, size_t *len) { struct vendor_attribute *attr; attr = (struct vendor_attribute *)*data; *vendor = ntohl(attr->vendor_value); *data = attr->attrib_data; *len = attr->attrib_len - 2; return (attr->attrib_type); } <commit_title>[PATCH...
<vulnerable_code> if (interfaceClass.isInstance(receiver)) { long interfaceJ9Class = getJ9ClassFromClass(interfaceClass); long receiverJ9Class = getJ9ClassFromClass(receiver.getClass()); return convertITableIndexToVTableIndex(interfaceJ9Class, (int)vmSlot, receiverJ9Class) << VTABLE_ENTRY_SHIFT; } else { ...
<vulnerable_code> break; TR_ASSERT(itableEntry, "Shouldn't call convertITableIndexToVTableIndex without first ensuring the receiver implements the interface"); UDATA *itableArray = (UDATA*)(itableEntry+1); return (itableArray[itableIndex] - sizeof(J9Class))/sizeof(intptr_t); #if 0 // TODO:JSR292: We pr...
<vulnerable_code> if (res) return res; sas_discover_event(dev->port, DISCE_PROBE); return 0; } <commit_title>[PATCH] scsi: libsas: direct call probe and destruct<commit_description>In commit 87c8331fcf72 ("[SCSI] libsas: prevent domain rediscovery competing with ata error handling") introduced disco mutex to preve...
<vulnerable_code> } } static void sas_probe_devices(struct work_struct *work) { struct domain_device *dev, *n; struct sas_discovery_event *ev = to_sas_discovery_event(work); struct asd_sas_port *port = ev->port; clear_bit(DISCE_PROBE, &port->disc.pending); /* devices must be domain members before link recovery ...
<vulnerable_code> return jQuery.prop( elem, name, value ); } // All attributes are lowercase // Grab necessary hook if one is defined if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { hooks = jQuery.attrHooks[ name.toLowerCase() ] ||<commit_title>[PATCH] Docs: Fix an incorrect comment in the attributes mod...
<vulnerable_code> ret = RHN_ERROR; break; } if (!o_base64url_decode((const unsigned char *)r_jwe_get_header_str_value(jwe, "iv"), o_strlen(r_jwe_get_header_str_value(jwe, "iv")), iv, &iv_len)) { y_log_message(Y_LOG_LEVEL_ERROR, "r_jwe_aesgcm_key_unwrap - Error o_base64url_decode iv");...
<vulnerable_code> int row, col, i, j, sh = 0, pred[2], nonz[2]; pana_bits(0); for (row = 0; row < height; row++) { #ifdef LIBRAW_LIBRARY_BUILD checkCancel(); } else if ((nonz[i & 1] = pana_bits(8)) || i > 11) pred[i & 1] = nonz[i & 1] << 4 | pana_bits(4); if ((RAW(row, col) = pred[...
<vulnerable_code> return IThemingPolicy(request) class NetworkResolver(etree.Resolver): """Resolver for network urls """ """ if type == 'rules': parser = etree.XMLParser(recover=False) elif type == 'theme': parser = etree.HTMLParser() elif type == 'compiler': parser...
<vulnerable_code> rqst.rq_nvec = 1; rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov); cifs_small_buf_release(req); rsp = (struct smb2_read_rsp *)rsp_iov.iov_base; if (rc) { io_parms->tcon->tid, ses->Suid, io_parms->offset, io_parms->length); *nbytes = le32_to_cpu(rsp->DataLe...
<vulnerable_code>#endif /* CONFIG_BT_CTLR_PHY */ } } else { /* Drop response with no Local initiated request. */ LL_ASSERT(pdu_rx->llctrl.opcode == PDU_DATA_LLCTRL_TYPE_LENGTH_RSP); } send_length_resp:<commit_title>[PATCH] Bluetooth: controller: split: Fix DLE duplicate requests<commit_description>Fix imp...
<vulnerable_code> for (i = 0; i < conf->subvolume_cnt; i++) { if (mds_subvol && (mds_subvol == conf->subvolumes[i])) continue; if (local->fop == GF_FOP_SETXATTR) { STACK_WIND(frame, dht_setxattr_non_mds_cbk, conf->subvolumes[i], conf->subvolumes[i]->fops...
<vulnerable_code>{ Pixmap blank_pixmap = XCreatePixmap(gui.dpy, gui.wid, 1, 1, 1); GC gc = XCreateGC(gui.dpy, blank_pixmap, (unsigned long)0, (XGCValues*)0); XDrawPoint(gui.dpy, blank_pixmap, gc, 0, 0); XFreeGC(gui.dpy, gc); return XCreatePixmapCursor(gui.dpy, blank_pixmap, blank_pixmap, (XColo...
<vulnerable_code> static int included_patches[] = { /* Add new patch number below this line */ /**/ 338, /**/<commit_title>[PATCH] patch 9.0.0339: no check if the return value of XChangeGC()<commit_description><fixed_code> static int included_patches[] = { /* Add new patch number below this line */ /**/ 33...
<vulnerable_code>load_func( 'BN_CTX_new', [] , BN_CTX ) load_func( 'BN_CTX_free', [ BN_CTX ], None ) load_func( 'BN_cmp', [ BIGNUM, BIGNUM ], ctypes.c_int ) load_func( 'BN_num_bits', [ BIGNUM ], ctypes.c_int ) username = six.b('') up = hash_class(username + six.b(':') + password).digest() ...
<vulnerable_code> /* compute l_data_size with overflow check */ l_data_size = (OPJ_UINT32)(l_tilec->x1 - l_tilec->x0); if ((((OPJ_UINT32)-1) / l_data_size) < (OPJ_UINT32)(l_tilec->y1 - l_tilec->y0)) { opj_event_msg(manager, EVT_ERROR, "Not enough memory for tile data\n"); return OPJ_FALSE; }<commit_titl...
<vulnerable_code> /* room needed to store l_nb_code_blocks code blocks for a precinct*/ OPJ_UINT32 l_nb_code_blocks_size; /* size of data for a tile */ OPJ_UINT32 l_data_size; l_cp = p_tcd->cp; l_tcp = &(l_cp->tcps[p_tile_no]); /*fprintf(stderr, "\tTile compo border = %d,%d,%d,%d\n", l_tilec->x0, l_tilec->y0,l...
<vulnerable_code> }); } if (process.argv.indexOf('--pipe') != -1) { rnUbuntuServer(process.stdin, process.stdout); } else { var server = net.createServer((sock) => { DEBUG && console.error("-- Connection from RN client"); rnUbuntuServer(sock, sock); }).listen(port, function() { console.error("-- Server...
<vulnerable_code>#define ARM_CODE "\x37\x00\xa0\xe3\x03\x10\x42\xe0" // mov r0, #0x37; sub r1, r2, r3 #define THUMB_CODE "\x83\xb0" // sub sp, #0xc // memory address where emulation starts #define ADDRESS 0x10000 uc_close(uc); } int main(int argc, char **argv, char **envp) { // dynamically load shared lib...
<vulnerable_code><commit_title>[PATCH] Rework Internet Card filtering system.<commit_description><fixed_code> package com.typesafe.config.impl; import com.typesafe.config.Config; import com.typesafe.config.ConfigValue; import org.luaj.vm2.ast.Str; import java.util.List; public final class OpenComputersConfigCommentM...
<vulnerable_code><commit_title>[PATCH] Rework Internet Card filtering system.<commit_description><fixed_code> package li.cil.oc.util; import com.google.common.net.InetAddresses; import java.net.InetAddress; // Originally by SquidDev public final class InetAddressRange { private final byte[] min; private fin...
<vulnerable_code>from airflow.jobs.job import Job from airflow.jobs.triggerer_job_runner import TriggererJobRunner, TriggerRunner from airflow.models import TaskInstance, Trigger from airflow.models.crypto import get_fernet from airflow.operators.empty import EmptyOperator from airflow.triggers.base import BaseTrigger,...
<vulnerable_code> } else #endif /* MENU_SELECT */ p = form->value->ptr; l = buf->currentLine; if (!l)<commit_title>[PATCH] Fix null pointer dereference in formUpdateBuffer<commit_description>Bug-Debian: https://github.com/tats/w3m/issues/28<fixed_code> } else #endif /* MENU_SELECT */ if (!form->val...
<vulnerable_code> /* Determine the type of each component. */ if (dec->cdef) { for (i = 0; i < dec->numchans; ++i) { /* Is the channel number reasonable? */ if (dec->cdef->data.cdef.ents[i].channo >= dec->numchans) { jas_eprintf("error: invalid channel number in CDEF box\n");<commit_title>[PATCH] jp2_dec:...
<vulnerable_code><commit_title>[PATCH] Fix #18 SQLInjection vulnerability cleared<commit_description>Pattern and Option DAOs re-written to a common key-value base class. Using composite primary key in place of surrogate key.<fixed_code> /* * * * Copyright (c) 2016. David Sowerby * * * * Licensed under the Apach...
<vulnerable_code>/* * Copyright (c) 2015. David Sowerby * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
<vulnerable_code>/* * Copyright (c) 2015. David Sowerby * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
<vulnerable_code><commit_title>[PATCH] Fix #18 SQLInjection vulnerability cleared<commit_description>Pattern and Option DAOs re-written to a common key-value base class. Using composite primary key in place of surrogate key.<fixed_code> /* * * * Copyright (c) 2016. David Sowerby * * * * Licensed under the Apach...
<vulnerable_code><commit_title>[PATCH] Fix #18 SQLInjection vulnerability cleared<commit_description>Pattern and Option DAOs re-written to a common key-value base class. Using composite primary key in place of surrogate key.<fixed_code> /* * * * Copyright (c) 2016. David Sowerby * * * * Licensed under the Apach...
<vulnerable_code>/* * Copyright (c) 2015. David Sowerby * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
<vulnerable_code><commit_title>[PATCH] Fix #18 SQLInjection vulnerability cleared<commit_description>Pattern and Option DAOs re-written to a common key-value base class. Using composite primary key in place of surrogate key.<fixed_code> /* * * * Copyright (c) 2016. David Sowerby * * * * Licensed under the Apach...