text
stringlengths
79
3.72M
<vulnerable_code>"use strict"; var geoip = require('geoip-lite'); <commit_title>[PATCH] feat & refactor: Change underscore to lodash<commit_description><fixed_code> 'use strict'; var geoip = require('geoip-lite');
<vulnerable_code>"use strict"; var imsiList = require('../dat/mcc_mnc.json') , _ = require('underscore'); function addImsi(req) { var getImsiInfoFromReq = function(name) { , mnc = getImsiInfoFromReq('mnc') , info; info = _.filter(imsiList, function(el) { return el.mcc == mcc; }); if (mnc) { ...
<vulnerable_code> item.isExpanded = !item.isExpanded; } }, template: "\n<li class=\"dd-item\" :class=\"{ expanded: item.isExpanded || item.items.length === 0 }\" :data-id=\"item.id\">\n <div class=\"sitemap-item\" :class=\"{ dimmed: item.isUnpublished || item.isScheduled }\">\n <div class=\"handl...
<vulnerable_code> return -EINVAL; } if (*buflen < len) return -ENOBUFS; ia_hdr = *buf;<commit_title>[PATCH] dhcp6: make sure we have enough space for the DHCP6 option<commit_description><fixed_code> return -EINVAL; } if (*buflen <...
<vulnerable_code>{ struct task_struct *rtn = current->group_leader; if ((event->sigev_notify & SIGEV_THREAD_ID ) && (!(rtn = find_task_by_vpid(event->sigev_notify_thread_id)) || !same_thread_group(rtn, current) || (event->sigev_notify & ~SIGEV_THREAD_ID) != SIGEV_SIGNAL)) return NULL; if (((event->sigev_...
<vulnerable_code>#define I32(ptr)\ ((ptr)[0] + ((ptr)[1] << 8) + ((ptr)[2] << 16) + ((ptr)[3] << 24)) int ImagingFliDecode(Imaging im, ImagingCodecState state, UINT8* buf, Py_ssize_t bytes) { UINT8* out = (UINT8*) im->image[y]; data += 1; /* ignore packetcount byte */ for (x = 0; x < state->xsize; x += i) {...
<vulnerable_code> { *q++=(unsigned char) (GetPixelLuma(image,p) >= (QuantumRange/2.0) ? '0' : '1'); if ((q-pixels+1) >= (ssize_t) sizeof(pixels)) { *q++='\n'; (void) WriteBlob(image,q-pixels,pixels);<commit_title>[PATCH] https:...
<vulnerable_code> } INTERNAL_WHITELIST_HASHCODES = new long[] { 0x82E8E13016B73F9EL, 0x863D2DD1E82B9ED9L, 0x8B2081CB3A50BD44L, 0x90003416F28ACD89L, 0x92F252C398C02946L, 0x9E404E583F254FD4L, 0x...
<vulnerable_code> import java.awt.Point; import org.junit.Assert; import junit.framework.TestCase; String text = JSON.toJSONString(point, SerializerFeature.WriteClassName); System.out.println(text); Object obj = JSON.parse(text); Point point2 = (Point) obj; Assert.assertEqual...
<vulnerable_code> int r; struct kvm_vcpu *vcpu, *v; vcpu = kvm_arch_vcpu_create(kvm, id); if (IS_ERR(vcpu)) return PTR_ERR(vcpu);<commit_title>[PATCH] KVM: Improve create VCPU parameter (CVE-2013-4587)<commit_description>In multiple functions the vcpu_id is used as an offset into a bitfield. Ag malicious user co...
<vulnerable_code>% % DefineImageProperty() associates an assignment string of the form % "key=value" with an artifact or options. It is equivelent to % SetImageProperty() % % The format of the DefineImageProperty method is: % { /* Do not 'set' single letter properties - read only shorthand. ...
<vulnerable_code> unsigned long *tietz; if (TIFFGetField(tiff,TIFFTAG_ARTIST,&text) == 1) (void) SetImageProperty(image,"tiff:artist",text,exception); if (TIFFGetField(tiff,TIFFTAG_COPYRIGHT,&text) == 1) (void) SetImageProperty(image,"tiff:copyright",text,exception); if (TIFFGetField(tiff,TIFFTAG_D...
<vulnerable_code> (void) WriteBlobString(image,buffer); (void) CopyMagickString(tuple,"(",MagickPathExtent); if (pixel.colorspace == GRAYColorspace) ConcatenateColorComponent(&pixel,GrayPixelChannel,compliance, tuple); else { ConcatenateColorCom...
<vulnerable_code> DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); factory.setXIncludeAware(false); DocumentBuilder documentBuilder = factory.newDocumentBuilder(); ...
<vulnerable_code> DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); dbf.setXIncludeAware(false); // Default false for java 8. Disable XML Inclusions leading to SSRF - https://portswigger.net...
<vulnerable_code> filter = state_keys_to_include selected_state_ids = await context.get_current_state_ids(filter) # We know this event is not an outlier, so this must be # non-None. assert selected_state_ids is not None<commit_title>[PATCH] Workaround surprising get_current_s...
<vulnerable_code>from ..packages import six, rfc3986 from ..packages.rfc3986.exceptions import RFC3986Exception, ValidationError from ..packages.rfc3986.validators import Validator url_attrs = ['scheme', 'auth', 'host', 'port', 'path', 'query', 'fragment'] # Regex for detecting URLs with schemes. RFC 3986 Section 3.1...
<vulnerable_code> 'http://user\\@google.com', 'http://google\\.com', 'user\\@google.com', 'http://google.com#fragment#', 'http://user@user@google.com/', ]) def test_invalid_url(self, url): with pytest.raises(LocationParseError): ('HTTPS://Example.Com/?Key=V...
<vulnerable_code>import json import csv import validators import requests import logging import metafinder.extractor as metadata_extractor send_notification('reNgine has initiated recon for target {} with engine type {}'.format(domain.name, engine_object.engine_name)) try: current_scan_dir = domain...
<vulnerable_code>def delete_scan(request, id): obj = get_object_or_404(ScanHistory, id=id) if request.method == "POST": delete_dir = obj.domain.name + '_' + \ str(datetime.datetime.strftime(obj.start_scan_date, '%Y_%m_%d_%H_%M_%S')) delete_path = settings.TOOL_LOCATION + 'scan_result...
<vulnerable_code> void event_cb(drachtio::RequestHandler::GlobalInfo *g, curl_socket_t s, int action, const boost::system::error_code & error, int *fdp) { std::shared_ptr<RequestHandler> p = RequestHandler::getInstance() ; std::map<curl_socket_t, boost::asio::ip::t...
<vulnerable_code> } public String readStringBody(int size) throws TException { checkReadLength(size); byte[] buf = new byte[size]; trans_.readAll(buf, 0, size); public byte[] readBinary() throws TException { int size = readI32(); checkReadLength(size); byte[] buf = new byte[size]; tra...
<vulnerable_code> return new byte[0]; } byte[] buf = new byte[length]; trans_.readAll(buf, 0, length); return buf;<commit_title>[PATCH] Java: Check the size of the remaining frame before<commit_description><fixed_code> return new byte[0]; } ensureContainerHasEnough(length, TType.BYT...
<vulnerable_code>import com.facebook.thrift.java.test.MyListStruct; import com.facebook.thrift.java.test.MyMapStruct; import com.facebook.thrift.java.test.MySetStruct; import com.facebook.thrift.protocol.TBinaryProtocol; import com.facebook.thrift.protocol.TCompactProtocol; import com.facebook.thrift.protocol.TProtocol...
<vulnerable_code> def _get_client_ip_from_meta(meta: dict[str, Any]) -> str: """Attempt to get the client's IP by checking common HTTP Headers. Returns none if no IP Could be found""" headers = ( "HTTP_X_FORWARDED_FOR", "HTTP_X_REAL_IP", "REMOTE_ADDR", ) for _header in header...
<vulnerable_code> }, items: [ "security/policy", "security/CVE-2022-23555", "security/CVE-2022-46145", "security/CVE-2022-46172", "security/CVE-2023-26481", ], }, ],<commit_title>[PATCH] securi...
<vulnerable_code> MaxTextExtent); cache_info->type=DiskCache; cache_info->offset=(*offset); if (OpenPixelCache(image,ReadMode,exception) == MagickFalse) return(MagickFalse); *offset+=cache_info->length+page_size-(cache_info->length % page_size);<commit_title>[PATCH] https://github...
<vulnerable_code> const char __user *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; int tmp; if (copy_from_user(buf, buffer, count)) return -EFAULT; tmp = simple_strtol(buf, &end, 0);<commit_title>[PATCH] uml: check length in exitcode_proc_write()<commit_description>We don't cap the si...
<vulnerable_code> segment->nb_index_entries = avio_rb32(pb); length = avio_rb32(pb); if (!(segment->temporal_offset_entries=av_calloc(segment->nb_index_entries, sizeof(*segment->temporal_offset_entries))) || !(segment->flag_entries = av_calloc(segment->nb_index_entries, sizeof(*segment->fl...
<vulnerable_code>class TokenUserInputSchema(_PasswordValidationSchema): """ Schema for validating input for creating a token for a user. """ username = fields.String(required=True, validate=Length(max=_MAX_LEN_NAME)) password = fields.String(required=True) mfa_code = fields.String(validate=Length(max=10...
<vulnerable_code> if ((mididata = (uint8_t *) _WM_BufferFile(midifile, &midisize)) == NULL) { return (NULL); } if (memcmp(mididata,"HMIMIDIP", 8) == 0) { ret = (void *) _WM_ParseNewHmp(mididata, midisize); } else if (memcmp(mididata, "HMI-MIDISONG061595", 18) == 0) { _WM_GLOBAL_ER...
<vulnerable_code> return True if 'expression(' in style: return True if '</noscript' in style: # e.g. '<noscript><style><a title="</noscript><img src=x onerror=alert(1)>">' return True<commit_title>[PATCH] Cleaner: Prevent "@import" from re-occurring in the...
<vulnerable_code> b'<math><style>/* deleted */</style></math>', lxml.html.tostring(clean_html(s))) def test_formaction_attribute_in_button_input(self): # The formaction attribute overrides the form's action and should be # treated as a malicious link attribute<commit_title>[P...
<vulnerable_code> char *LibRaw_file_datastream::gets(char *str, int sz) { LR_STREAM_CHK(); std::istream is(f.get()); is.getline(str, sz); char *LibRaw_buffer_datastream::gets(char *s, int sz) { unsigned char *psrc, *pdest, *str; str = (unsigned char *)s; psrc = buf + streampos; char *LibRaw_bigfile_datast...
<vulnerable_code> url_tuple = urlsplit(url) for entry in self.url_preview_url_blacklist: match = True for attrib in entry: pattern = entry[attrib] value = getattr(url_tuple, attrib) logger.debug( "Matching attrib ...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * duck_client.c -- The siduck client. See * https://tools.ietf.org/html/draft-pardue-quic-siduck-00<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * A duck quacks! The server for the siduck protocol: * https://tools.ietf.org/html/draft-pardue-quic-siduck-00<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed T...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * echo_client.c -- This is really a "line client:" it connects to QUIC server * and sends it stuff, line by line. It works in tandem with echo_server.<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Co...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * echo_server.c -- QUIC server that echoes back input line by line */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * echo_se...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * http_client.c -- A simple HTTP/QUIC client */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * http_client.c -- A simple HTT...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * http_server.c -- A simple HTTP/QUIC server *<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * http_server.c -- A simple HTTP...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * md5_client.c -- This client sends one or more files to MD5 QUIC server * for MD5 sum calculation.<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Te...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * md5_server.c -- Read one or more streams from the client and return * MD5 sum of the payload.<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Techno...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * perf_client.c -- Implements the "perf" client, see * https://tools.ietf.org/html/draft-banks-quic-performance-00<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpee...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #include <assert.h> #ifndef WIN32 #include <arpa/inet.h><commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #include <assert.h> #ifndef WIN...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #include <errno.h> #include <stdio.h> #include <stdlib.h><commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #include <errno.h> #include <s...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #if __GNUC__ #define _GNU_SOURCE /* For struct in6_pktinfo */ #endif<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #if __GNUC__ #d...
<vulnerable_code># -- Project information ----------------------------------------------------- project = u'lsquic' copyright = u'2021, LiteSpeed Technologies' author = u'LiteSpeed Technologies' # The short X.Y version version = u'3.0' # The full version, including alpha/beta/rc tags release = u'3.0.4' # -- General...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* Copyright (c) 2015 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE.chrome file.<commit_title>[PATCH] Release 3.1.0<commit_description...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #line 2 "ls-sfparser.c" #line 2 "ls-sfparser.l" /*<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #line 2 "ls-sfparser.c" #line 2 "ls-s...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* lsquic_adaptive_cc.c -- adaptive congestion controller */ #include <inttypes.h><commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* l...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_alarmset.c -- A set of alarms */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_alarmset.c -- A set of alarm...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_arr.c */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_arr.c */
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE.chrome file.<commit_title>[PATCH] Release 3.1.0<commit_description><fi...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #include <assert.h> #include <inttypes.h> #include <stddef.h><commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #include <assert.h> #inclu...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #include <inttypes.h> #include <stdint.h> #include <stdlib.h><commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #include <inttypes.h> #inc...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * Stream/crypto handshake adapter for the client side. *<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * Stream/crypto handsh...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #include <assert.h> #include <inttypes.h> #include <string.h><commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #include <assert.h> #inclu...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #include <openssl/rand.h> #include <stdint.h> <commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #include <openssl/rand.h> #include <stdin...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #include <assert.h> #include <stdbool.h> #include <string.h><commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #include <assert.h> #includ...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #include <assert.h> #include <string.h> <commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #include <assert.h> #include <string.h>
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_di_error.c -- A placeholder when things go wrong *<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_di_error.c...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_di_hash.c -- Copy incoming data into a hash *<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_di_hash.c -- Co...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_di_nocopy.c -- The "no-copy" data in stream. *<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_di_nocopy.c --...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #include <stddef.h> #include <stdint.h> #include <string.h><commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #include <stddef.h> #include...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_enc_sess_ietf.c -- Crypto session for IETF QUIC */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_enc_sess_i...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_engine.c - QUIC engine */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_engine.c - QUIC engine */
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #ifndef WIN32 #include <arpa/inet.h> #else<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #ifndef WIN32 #include <arpa/inet.h> #else
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_frab_list.c -- List of buffer for simple reading and writing */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsqu...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_frame_reader.c -- Read HTTP frames from stream */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_frame_reade...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_full_conn.c -- A "full" connection object has full functionality */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * ...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_full_conn_ietf.c -- IETF QUIC connection. */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_full_conn_ietf.c...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * Global state */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * Global state */
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #define _GNU_SOURCE /* for memmem */ #include <assert.h><commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #define _GNU_SOURCE ...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_hcso_writer.c - write to outgoing HTTP Control Stream */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_hcso...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * HEADERS stream logic */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * HEADERS stream logic */
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_hspack_valid.c -- Handshake packet validator. *<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_hspack_valid....
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* Various HTTP-related functions. */ #include <stddef.h><commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* Various HTTP-related funct...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * LSQUIC Logger implementation. */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * LSQUIC Logger implementation. */
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_malo.c -- malo allocator implementation. *<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_malo.c -- malo all...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_mini_conn_ietf.c -- Mini connection used by the IETF QUIC */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * Based on Google code released under BSD license here: * https://groups.google.com/forum/#!topic/bbr-dev/3RTgkzi5ZD8<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_packet_common.c -- some common packet-related routines */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_pac...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* Functions to resize packets */ #include <assert.h><commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* Functions to resize packets */...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_parse_Q046.c -- Parsing functions specific to GQUIC Q046 */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_p...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_parse_Q050.c -- Parsing functions specific to GQUIC Q050 */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_p...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #include <assert.h> #include <string.h> #include <sys/queue.h><commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #include <assert.h> #incl...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_parse_gquic_be.c -- Parsing functions specific to big-endian * (now only Q043) GQUIC.<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 Lite...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_parse_ietf_v1.c -- Parsing functions specific to IETF QUIC v1 */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsq...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * Parsing routines shared by all IETF QUIC versions. */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * Parsing routines shar...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_pr_queue.c -- packet request queue. */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_pr_queue.c -- packet r...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_qdec_hdl.c -- QPACK decoder streams handler */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_qdec_hdl.c -- ...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_qenc_hdl.c -- QPACK encoder streams handler */ #define LSQUIC_LOG_CONN_ID lsquic_conn_log_cid(qeh->qeh_conn) #include "lsquic_logger.h" static int qeh_write_type (struct qpack_enc_hdl *qeh) enc_opts = LSQPACK_...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ #include <stdlib.h> #include <stdio.h> #include <errno.h><commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ #include <stdlib.h> #include <...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_rtt.c -- RTT calculation */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_rtt.c -- RTT calculation */
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_send_ctl.c -- Logic for sending and sent packets */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_send_ctl....
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_set.c -- A set implementation. *<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_set.c -- A set implementatio...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * Stream/crypto handshake adapter for the server side. Since on the server * side, the handshake logic is handled in mini conn, this adapter does not<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Cop...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_spi.c - implementation of Stream Priority Iterator. */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_spi.c ...
<vulnerable_code>/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_stock_shi.c */<commit_title>[PATCH] Release 3.1.0<commit_description><fixed_code> /* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_stock_shi.c */