text
stringlengths
79
3.72M
<vulnerable_code> function constructClipObj(wbBox) { return { x: wbBox.x, y: wbBox.y, width: wbBox.width, height: wbBox.height, }; } exports.checkElement = checkElement;<commit_title>[PATCH 002/112] exclude non-url related text from link dropdown<commit_description><fixed_code> function ...
<vulnerable_code> async uploadSinglePresentationTest() { await this.modPage.waitForSelector(e.whiteboard, ELEMENT_WAIT_LONGER_TIME); await this.modPage.waitForSelector(e.skipSlide); await waitAndClearDefaultPresentationNotification(this.modPage); await uploadSinglePresentation(this.modPage, e.pdfFileN...
<vulnerable_code>const { expect } = require('@playwright/test'); const path = require('path'); const e = require('../core/elements'); const { ELEMENT_WAIT_LONGER_TIME } = require('../core/constants'); async function checkSvgIndex(test, element) { const check = await test.page.evaluate(([el, slideImg]) => { }); } ...
<vulnerable_code> await this.hasElement(e.unmuteMicButton); } async muteYourselfBytalkingIndicator() { await connectMicrophone(this); await this.waitAndClick(e.talkingIndicator); await this.hasElement(e.wasTalking);<commit_title>[PATCH 002/112] exclude non-url related text from link dropdown<commit_...
<vulnerable_code> test('Mute yourself by clicking the talking indicator', async ({ browser, page }) => { const audio = new Audio(browser, page); await audio.init(true, false); await audio.muteYourselfBytalkingIndicator(); }); // https://docs.bigbluebutton.org/2.6/release-tests.html#talking...
<vulnerable_code> await this.modPage.hasElement(e.warningNoUserAssigned); //await this.modPage.hasElementDisabled(e.modalConfirmButton); const modalConfirmButton = await this.modPage.getLocator(e.modalConfirmButton); await expect(modalConfirmButton, 'Getting error when trying to create a breakout room w...
<vulnerable_code> await this.modPage.waitAndClick(e.closeModal); // closing the audio modal await this.modPage.waitAndClick(e.actions); await this.modPage.checkElementCount(e.actionsItem, 9); await this.modPage.getLocatorByIndex(e.actionsItem, 1).click(); const wbBox = await this.modPage.getElementB...
<vulnerable_code> } async dragDropSelector(selector, position) { await this.page.locator(selector).dragTo(this.page.locator(position)); } async checkElementCount(selector, count) {<commit_title>[PATCH 002/112] exclude non-url related text from link dropdown<commit_description><fixed_code> } async drag...
<vulnerable_code> await this.modPage.waitAndClick(e.focusOnPresentation); await this.modPage.waitAndClick(e.confirmButton); const modPageCameraDockLocator = await this.modPage.getLocator(e.cameraDock); await expect(this.modPage.page).toHaveScreenshot('moderator1-focus-on-presentation.png', { maxDi...
<vulnerable_code> await this.modPage.waitAndClick(e.focusOnVideo); await this.modPage.waitAndClick(e.confirmButton); const modPageCameraDockLocator = await this.modPage.getLocator(e.cameraDock); await expect(this.modPage.page).toHaveScreenshot('moderator1-focus-on-video.png', { maxDiffPixels: 1000...
<vulnerable_code>const { test } = require('@playwright/test'); const { FocusOnPresentation } = require('./focusOnPresentation'); const { FocusOnVideo } = require('./focusOnVideo'); const { MultiUsers } = require('../user/multiusers'); const { encodeCustomParams } = require('../customparameters/util'); const { PARAMETER...
<vulnerable_code> async typeOnLastChoiceInput() { const lastInput = this.modPage.getLocatorByIndex(e.pollOptionItem, -1); await lastInput.fill(this.newInputText); } async checkLastOptionText() {<commit_title>[PATCH 002/112] exclude non-url related text from link dropdown<commit_description><fixed_code> ...
<vulnerable_code> async presentationFullscreen() { await this.modPage.waitForSelector(e.whiteboard, ELEMENT_WAIT_LONGER_TIME); const presentationLocator = await this.modPage.getLocator(e.presentationContainer); const height = parseInt(await getCurrentPresentationHeight(presentationLocator)); await th...
<vulnerable_code> await notesLocator.type(e.message); const showMoreButtonLocator = getShowMoreButtonLocator(this.modPage); await showMoreButtonLocator.click(); const exportButtonLocator = getExportButtonLocator(this.modPage); await exportButtonLocator.click(); const exportPlainTextLocator = g...
<vulnerable_code> }; // 100% const zoomOutButtonLocator = await this.modPage.getLocator(e.zoomOutButton); await expect(zoomOutButtonLocator).toBeDisabled(); const resetZoomButtonLocator = await this.modPage.getLocator(e.resetZoomButton); await expect(resetZoomButtonLocator).toContainText(default...
<vulnerable_code>import stringHash from 'string-hash'; import { check } from 'meteor/check'; import Logger from '/imports/startup/server/logger'; import GuestUsers from '/imports/api/guest-users/'; import updatePositionInWaitingQueue from '../methods/updatePositionInWaitingQueue'; const COLOR_LIST = [ '#7b1fa2', '#6...
<vulnerable_code>import Meetings from '/imports/api/meetings'; import VoiceUsers from '/imports/api/voice-users/'; import addUserPsersistentData from '/imports/api/users-persistent-data/server/modifiers/addUserPersistentData'; import stringHash from 'string-hash'; import flat from 'flat'; import { lowercaseTrim } from ...
<vulnerable_code> let validSlideNum = slideNumber; if (validSlideNum > Presentation?.pages?.length) validSlideNum = 1; const Slide = Slides.findOneAsync({ meetingId, podId, presentationId: Presentation.id,<commit_title>[PATCH 002/112] exclude non-url related text from link dropdown<commit_...
<vulnerable_code>import handleChangeRole from './handlers/changeRole'; import handleUserPinChanged from './handlers/userPinChanged'; import handleUserInactivityInspect from './handlers/userInactivityInspect'; RedisPubSub.on('PresenterAssignedEvtMsg', handlePresenterAssigned); RedisPubSub.on('UserJoinedMeetingEvtMsg', ...
<vulnerable_code><commit_title>[PATCH 002/112] exclude non-url related text from link dropdown<commit_description><fixed_code> import { check } from 'meteor/check'; import setMobile from '/imports/api/users/server/modifiers/setMobile'; export default async function handleChangeMobileFlag(payload, meetingId) { check(...
<vulnerable_code>import { check } from 'meteor/check'; import Logger from '/imports/startup/server/logger'; import setMobile from '../modifiers/setMobile'; import { extractCredentials } from '/imports/api/common/server/helpers'; export default function setMobileUser() { try { const { meetingId, requesterUserId }...
<vulnerable_code> let annotationsStreamListener = null; function handleAddedAnnotation({ meetingId, whiteboardId, userId, annotation, }) { const query = addAnnotationQuery(meetingId, whiteboardId, userId, annotation, Annotations); Annotations.upsert(query.selector, query.modifier); } annotationsStream...
<vulnerable_code> font-size: ${fontSizeLarge}; border-radius: 5px; position: absolute; z-index: 9999; text-align: center; `; <commit_title>[PATCH 002/112] exclude non-url related text from link dropdown<commit_description><fixed_code> font-size: ${fontSizeLarge}; border-radius: 5px; position: absolute; ...
<vulnerable_code> case 0xa6: // if_acmpne case 0xa7: // goto case 0xa8: // jsr if (len > 1) { snprintf (output, outlen, "%s 0x%04"PFMT64x, JAVA_OPS[idx].name, (addr + (short)USHORT (bytes, 1))); output[outlen - 1] = 0; return update_bytes_consumed (JAVA_OPS[idx].size); }<commit_title>[PATCH] Fix oob...
<vulnerable_code> Assert.assertFalse(childModel.mayUpdateFromClient("baz", "a")); } @Test public void listChildPropertyUpdateFilter_setFilterBeforeChild() { ElementPropertyMap map = createSimplePropertyMap(); Assert.assertFalse(childModel.mayUpdateFromClient("baz", "a")); } ...
<vulnerable_code> author_email='python-virtualenv@groups.google.com', url='http://www.pip-installer.org', license='MIT', install_requires=['backports.ssl_match_hostname'], packages=['pip', 'pip.commands', 'pip.vcs'], package_data={'pip': ['*.pem']}, entry_points=dict(console_scr...
<vulnerable_code>rfbBool ReadFromRFBServer(rfbClient* client, char *out, unsigned int n) { #undef DEBUG_READ_EXACT #ifdef DEBUG_READ_EXACT char* oout=out; if (i <= 0) { if (i < 0) { if (errno == EWOULDBLOCK || errno == EAGAIN) { /* TODO: ProcessXtEvents(); */ WaitForMessage(client, 100...
<vulnerable_code> client->destPort = 5900; client->connectTimeout = DEFAULT_CONNECT_TIMEOUT; client->CurrentKeyboardLedState = 0; client->HandleKeyboardLedState = (HandleKeyboardLedStateProc)DummyPoint;<commit_title>[PATCH] libvncclient: handle half-open TCP connections<commit_description>When a connection i...
<vulnerable_code> exthdr->len = (2 + len) / 8 - 1; exthdr->next = next; last_nextheader = &exthdr->next; memcpy((uint8_t*)exthdr + 2, hc06_ptr, len); hc06_ptr += len; uncomp_hdr_len += (exthdr->len + 1) * 8;<commit_title>[PATCH] Check ext header length before copying into the uip buffer.<commit_d...
<vulnerable_code> if(ret != GNUTLS_E_SUCCESS) inf_gnutls_set_error(&error, ret); else if(verify & GNUTLS_CERT_INVALID) inf_gnutls_certificate_verification_set_error(&error, verify); } } /* Look up the host in our database of pinned certificates if we could not<commit_title>[PATCH] F...
<vulnerable_code> * Provides a mustache spec based HTML escaper which is the default in normal mustache. * <p> * The escaper simply escapes: * <ul> * <li>'&quot;'</li> * <li>'&gt;'</li> * <li>'&lt;'</li> * <li>'&amp;'</li> * </ul> * * <em>N.B. Unlike many XML escapers this escaper does not differentiate attri...
<vulnerable_code> Html; private static final String QUOT = "&quot;"; private static final String GT = "&gt;"; private static final String LT = "&lt;"; private static final String AMP = "&amp;"; @Override public <A extends Output<E>, E extends Exception> void append(A a, CharSequence s) throws E { for (int...
<vulnerable_code><commit_title>[PATCH] Fix #157 add more aggressive html5 escaping<commit_description><fixed_code> package io.jstach.examples.htmlescaper; import static org.junit.Assert.assertEquals; import org.junit.Test; import io.jstach.jstache.JStache; public class HtmlEscapeTest { @JStache(template = """ ...
<vulnerable_code><commit_title>[PATCH] Fix #157 add more aggressive html5 escaping<commit_description><fixed_code> @org.eclipse.jdt.annotation.NonNullByDefault package io.jstach.examples.htmlescaper;
<vulnerable_code> String actual = JStachio.render(m); String expected = """ bingo LambdaSectionParent[stuff=ignore] """; assertEquals(expected, actual); }<commit_title>[PATCH] Fix #157 add more aggressive html5 escaping<commit_description><fixed_code> String actual = JStachio.render(m); String...
<vulnerable_code> /* Set tile size. */ flags=ParseAbsoluteGeometry(image_info->extract,&geometry); parameters.cp_tdx=(int) geometry.width; parameters.cp_tdy=(int) geometry.width;<commit_title>[PATCH] https://github.com/ImageMagick/ImageMagick/issues/1518<commit_description><fixed_co...
<vulnerable_code>function SessionManager(options, serializeUser) { if (typeof options == 'function') { serializeUser = options; return cb(err); } if (options.keepSessionInfo) { Object.assign(req.session, prevSession); } if (!req.session[self._key]) { req.session[sel...
<vulnerable_code> */ clone_image->colors=image->colors; length=(size_t) image->colors; clone_image->colormap=(PixelPacket *) AcquireQuantumMemory(length, sizeof(*clone_image->colormap)); if (clone_image->colormap == (PixelPacket *) NULL) {<commit_title>[PATCH] https://github...
<vulnerable_code> @pytest.mark.usefixtures("patch_app") def test_rendered_template_secret(*args, admin_client, create_dag_run, task_secret): """ Test that the Rendered View contains the values from RenderedTaskInstanceFields """ Variable.set("my_secret", "foo") Variable.set("spam", "egg") <commit_ti...
<vulnerable_code> /* Windows and OS/2 declare filler so that rows are a multiple of * word length (32 bits == 4 bytes) */ rowbytes = ((Bitmap_Head.biWidth * Bitmap_Head.biBitCnt - 1) / 32) * 4 + 4; <commit_title>[PATCH] Check for overflow in row bytes<commit_description>Fixes CVE-2019-19004<fixed_code> /* W...
<vulnerable_code> length = await make_deferred_yieldable( readBodyWithMaxSize(response, output_stream, max_size) ) except SynapseError: # This can happen e.g. because the body is too large. raise except Exception as e: raise Syna...
<vulnerable_code>from twisted.web.http_headers import Headers from twisted.web.iweb import IAgent, IResponse from synapse.http.client import readBodyWithMaxSize from synapse.logging.context import make_deferred_yieldable from synapse.util import Clock, json_decoder from synapse.util.caches.ttlcache import TTLCache ...
<vulnerable_code>import synapse.metrics import synapse.util.retryutils from synapse.api.errors import ( FederationDeniedError, HttpResponseException, RequestSendFailed, ) from synapse.http import QuieterFileBodyProducer from synapse.http.client import ( BlacklistingAgentWrapper, BlacklistingReactorW...
<vulnerable_code> if (dtd) { parser->m_dtd = dtd; parser->m_isParamEntity = XML_TRUE; } else { parser->m_dtd = dtdCreate(&parser->m_mem); parser->m_isParamEntity = XML_FALSE; if (parser->m_dtd == NULL) { FREE(parser, parser->m_dataBuf); FREE(parser, parser->m_atts);<commit_title>[PAT...
<vulnerable_code> threshold_image=CloneImage(image,0,0,MagickTrue,exception); if (threshold_image == (Image *) NULL) return((Image *) NULL); status=SetImageStorageClass(threshold_image,DirectClass,exception); if (status == MagickFalse) {<commit_title>[PATCH] https://github.com/ImageMagick/ImageMagick/iss...
<vulnerable_code> binary_program=(unsigned char **) AcquireMagickMemory( binary_program_size); for (i = 0; i < num_devices; i++) binary_program[i]=AcquireQuantumMemory(MagickMax(*(program_sizes+i),1), sizeof(**binary_program)); status=clEnv->library->clGetProgramInfo(clEnv->pr...
<vulnerable_code> private static void validateHeaderNameElement(byte value) { switch (value) { case 0x00: case '\t': case '\n': private static void validateHeaderNameElement(char value) { switch (value) { case 0x00: case '\t': case '\n':<commit_ti...
<vulnerable_code> int valueStart; int valueEnd; nameStart = findNonWhitespace(sb, 0, false); for (nameEnd = nameStart; nameEnd < length; nameEnd ++) { char ch = sb.charAtUnsafe(nameEnd); // https://tools.ietf.org/html/rfc7230#section-3.2.4 } name ...
<vulnerable_code> */ package io.netty.handler.codec.http; import io.netty.buffer.Unpooled; import io.netty.channel.embedded.EmbeddedChannel; import io.netty.handler.codec.TooLongFrameException; assertFalse(channel.finish()); } @Test public void testWhitespace() { String requestStr = "GET /...
<vulnerable_code> c.release(); assertFalse(channel.finish()); } }<commit_title>[PATCH] Merge pull request from GHSA-wx5j-54mm-rqqq<commit_description>Motivation: We should validate that only OWS is allowed before / after a header name and otherwise throw. At the moment we just "strip" everything exc...
<vulnerable_code> skb->ip_summed = CHECKSUM_NONE; /* Check if there is enough headroom to insert fragment header. */ if ((skb_headroom(skb) < frag_hdr_sz) && pskb_expand_head(skb, frag_hdr_sz, 0, GFP_ATOMIC)) goto out; <commit_title>[PATCH] ipv6: udp: fix the wrong headroom check<commit_description>At this po...
<vulnerable_code> ctx->stack = stack->next; v = stack->value; free (stack); return (v); snprintf(error_buffer, error_buffer_size, "%s", internal_err_str); YA_FREE(&(handle->alloc), internal_err_str); } yajl_free (handle); return NULL; } <commit_tit...
<vulnerable_code> return nullptr; } bool CModules::LoadModule(const CString& sModule, const CString& sArgs, CModInfo::EModuleType eType, CUser* pUser, CIRCNetwork* pNetwork, CString& sRetMsg) { sRetMsg = ""; if (FindModule(sModule) != nullptr) { s...
<vulnerable_code> sc_log(ctx, "Found padding byte %02x", pad_byte); if (pad_byte == 0 || pad_byte > block_size) LOG_FUNC_RETURN(ctx, SC_ERROR_WRONG_PADDING); sdata = priv->sym_plain_buffer + block_size - pad_byte; for (i = 0; i < pad_byte; i++) if (sdata[i] != pad_byte) LOG_FUNC_RETURN(ct...
<vulnerable_code> if (req.query.symbol) { const url = req.query.url + req.query.symbol; return needle.get(url, (error, newResponse) => { if (!error && newResponse.statusCode === 200) { res.writeHead(200, { "Content-Type": "text/...
<vulnerable_code> "%smessage ignored because it contains a payload type (%s) unexpected by state %s", excuse, enum_show(&ikev1_payload_names, np), st->st_state->name); if (!md->encrypted) { SEND_NOTIFICATION(INVALID_PAYLOAD_TYPE); }<commit_title>[PATCH] security: Fix for CVE-2020-...
<vulnerable_code> */ elgg.provide('elgg.config.translations'); /** * Analagous to the php version. Merges translations for a * given language into the current translations map.<commit_title>[PATCH 02/23] Style fixes to match 1.8 widgets<commit_description><fixed_code> */ elgg.provide('elgg.config.translations'); ...
<vulnerable_code> LPCTSTR szResult = NULL; bool retval = false; HMODULE hDll = ::LoadLibrary( TEXT("DBGHELP.DLL") ); //that wont work on older windows version than XP, #care :) if (hDll) {<commit_title>[PATCH] Fixes security vulnerability<commit_description>Fix #12113, close #12114<fixed_code> LPCTSTR szResult =...
<vulnerable_code> //---------------------------------------------// // Dlg theme texture function for xp and vista // //---------------------------------------------// _hUXTheme = ::LoadLibrary(TEXT("uxtheme.dll")); if (_hUXTheme) _enableThemeDialogTextureFuncAddr = (WNDPROC)::GetProcAddress(_hUXTheme, "EnableThe...
<vulnerable_code> ); } else { var input = $('input[data-tag-id="' + id + '"]'); input.replaceWith('<span data-tag-id="' + id + '">' + input.val() + '</span>'); } }); var input = $('input[data-tag-id]:focus'); var id = input.data('tag-id'); ...
<vulnerable_code> static int set_acl(struct archive *a, int fd, const char *name, struct archive_acl *abstract_acl, int ae_requested_type, const char *tname) { int acl_type = 0; return (ARCHIVE_FAILED); } acl = acl_init(entries); if (acl == (acl_t)NULL) { archive_set_error(a, errno, else if (acl_set...
<vulnerable_code> return (ARCHIVE_FAILED); } richacl = richacl_alloc(entries); if (richacl == NULL) { archive_set_error(a, errno, #if ARCHIVE_ACL_LIBACL static int set_acl(struct archive *a, int fd, const char *name, struct archive_acl *abstract_acl, int ae_requested_type, const char *tname) { int acl...
<vulnerable_code> static int set_acl(struct archive *a, int fd, const char *name, struct archive_acl *abstract_acl, int ae_requested_type, const char *tname) { aclent_t *aclent; if (entries == 0) return (ARCHIVE_OK); switch (ae_requested_type) { case ARCHIVE_ENTRY_ACL_TYPE_POSIX1E: cmd = SETACL; re...
<vulnerable_code> int buffer_caret = 0; int bitmap_caret = 0; int i = 0; int j = 0; uint8_t encoded_pixels; if(overflow2(tga->width, tga->height)) { while( bitmap_caret < image_block_size ) { if ((decompression_buffer[buffer_caret] & TGA_RLE_FLAG) == TGA_RLE_FLAG) { encoded_pixels = ( ( decompression...
<vulnerable_code> dp = (const struct ip6_frag *)bp; ip6 = (const struct ip6_hdr *)bp2; ND_TCHECK(dp->ip6f_offlg); if (ndo->ndo_vflag) { ND_PRINT((ndo, "frag (0x%08x:%d|%ld)",<commit_title>[PATCH] CVE-2017-13031/Check for the presence of the entire IPv6<commit_description><fixed_code> dp = (const struct ip6_frag...
<vulnerable_code> expect(await adapter.find('tasks', 't2')).toBeNull() }, ], [ 'can run mixed batches', async _adapter => {<commit_title>[PATCH] Fix destroyDeletedRecords vulnerability<commit_description><fixed_code> expect(await adapter.find('tasks', 't2')).toBeNull() }, ], [ 'de...
<vulnerable_code> } private List<OraclePackage> getAllRealOraclePackage(OBridgeConfiguration c) { String query = "select object_name from user_objects where object_type = 'PACKAGE' and object_name like '" + c.getPackagesLike() + "'"; return jdbcTemplate.query(query, (resultSet, i) -> { ...
<vulnerable_code> // don't copy it if we already have the file if (stat(fname, &s) == 0) return; if (stat("/etc/skel/.zshrc", &s) == 0) { copy_file("/etc/skel/.zshrc", fname, u, g, 0644); fs_logger("clone /etc/skel/.zshrc"); } else { // don't copy it if we already have the file if (stat(fname, &s)...
<vulnerable_code>md_split_simple_pairing_mark(MD_CTX* ctx, int mark_index, SZ n) { MD_MARK* mark = &ctx->marks[mark_index]; int new_mark_index = mark_index + (mark->end - mark->beg - 1); MD_MARK* dummy = &ctx->marks[new_mark_index]; MD_ASSERT(mark->end - mark->beg > n);<commit_title>[PATCH] Fix md_spli...
<vulnerable_code>static bool identifyCallsites( Function *F, llvh::DenseSet<CallInst *> &callSites) { for (auto *CU : F->getUsers()) { if (auto *CI = llvh::dyn_cast<CallInst>(CU)) { if (!isDirectCallee(F, CI))<commit_title>[PATCH] Treat usages of arguments.callee as unknown callsites<commit_descript...
<vulnerable_code>// CHECK-NEXT: %3 = ReturnInst undefined : undefined // CHECK-NEXT:function_end // CHECK:function foo#1#2(p1 : number)#3 : string // CHECK-NEXT:S{foo#1#2()#3} = [] // CHECK-NEXT:%BB0: // CHECK-NEXT: %0 = CreateScopeInst %S{foo#1#2()#3}<commit_title>[PATCH] Treat usages of arguments.callee as unknown...
<vulnerable_code><commit_title>[PATCH] Treat usages of arguments.callee as unknown callsites<commit_description>Summary: arguments.callee in non-strict mode are indirect references to the current function. As such, make sure that call site inference bails if there's any possibility such a reference is made. This is ine...
<vulnerable_code>import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; import com.fasterxml.jackson.databind.node.TextNode; /** * Provides CWL parsing for workflows to gather an overview * @throws IOException */ private JsonNode yamlPathToJson(Path...
<vulnerable_code> continue; } auto up = fncStarts.upper_bound(bAddr); --up; Address bFnc = *up; continue; } auto up = fncStarts.upper_bound(pAddr); --up; Address pFnc = *up; <commit_title>[PATCH] Try to fix issue #637<commit_description>Reference: https://github.com/avast/retdec/iss...
<vulnerable_code>import org.graylog2.indexer.retention.RetentionStrategyBindings; import org.graylog2.indexer.rotation.RotationStrategyBindings; import org.graylog2.inputs.transports.NettyTransportConfiguration; import org.graylog2.messageprocessors.MessageProcessorModule; import org.graylog2.migrations.MigrationsModul...
<vulnerable_code>import org.graylog2.lookup.adapters.dnslookup.ADnsAnswer; import org.graylog2.lookup.adapters.dnslookup.DnsAnswer; import org.graylog2.lookup.adapters.dnslookup.DnsClient; import org.graylog2.lookup.adapters.dnslookup.DnsLookupType; import org.graylog2.lookup.adapters.dnslookup.PtrDnsAnswer; import org...
<vulnerable_code>import com.google.common.net.InetAddresses; import com.google.common.net.InternetDomainName; import io.netty.buffer.ByteBuf; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.nio.NioDatagramChannel; import io.netty.handler.codec.dns.DefaultDnsPtrRecord; import io.netty.handl...
<vulnerable_code><commit_title>[PATCH] Merge pull request from GHSA-g96c-x7rh-99r3<commit_description>* Add support for randomizing DNS Lookup source port * Clarify purpose of lease * Skip initial refresh Previously, the pool was being refreshed immediately upon initialization. Now, the refresh waits until the `pool...
<vulnerable_code><commit_title>[PATCH] Merge pull request from GHSA-g96c-x7rh-99r3<commit_description>* Add support for randomizing DNS Lookup source port * Clarify purpose of lease * Skip initial refresh Previously, the pool was being refreshed immediately upon initialization. Now, the refresh waits until the `pool...
<vulnerable_code><commit_title>[PATCH] Merge pull request from GHSA-g96c-x7rh-99r3<commit_description>* Add support for randomizing DNS Lookup source port * Clarify purpose of lease * Skip initial refresh Previously, the pool was being refreshed immediately upon initialization. Now, the refresh waits until the `pool...
<vulnerable_code><commit_title>[PATCH] Merge pull request from GHSA-g96c-x7rh-99r3<commit_description>* Add support for randomizing DNS Lookup source port * Clarify purpose of lease * Skip initial refresh Previously, the pool was being refreshed immediately upon initialization. Now, the refresh waits until the `pool...
<vulnerable_code> struct tipc_crypto *tx = tipc_net(net)->crypto_tx; struct tipc_key key; spin_lock(&tx->lock); key = tx->key; WARN_ON(!key.active || tx_key != key.active); /* Free the active key */ tipc_crypto_key_set_state(tx, key.passive, 0, key.pending); tipc_crypto_key_detach(tx->aead[key.active], &tx->lo...
<vulnerable_code> // decode the chunk bool bGood = false; if ( tEXt ) { bGood = tEXtToDataBuf(data+name_l,dataOffset-name_l,dataBuf); } if ( zTXt || iCCP ) { bGood = zlibTo...
<vulnerable_code> `json.dump(data, indent=0)` and add the stringified JSON. \ Check - `https://docs.embedchain.ai/data-sources/json`" ) @staticmethod def load_data(content): """Load a json file. Each data point is a key value pair."""<c...
<vulnerable_code># field-vchar ] FIELD_VCHAR = "[" + VCHAR + OBS_TEXT + "]" FIELD_CONTENT = FIELD_VCHAR + "([ \t" + VCHAR + OBS_TEXT + "]+" + FIELD_VCHAR + "){,1}" FIELD_VALUE = "(" + FIELD_CONTENT + "){0,}" HEADER_FIELD = re.compile( tobytes( "^(?P<name>" + TOKEN + "):" + OWS + "(?P<valu...
<vulnerable_code> self.assertIn("FOO", self.parser.headers) self.assertEqual(self.parser.headers["FOO"], "abrowser/0.001 (C O M M E N T)") class Test_split_uri(unittest.TestCase): def _callFUT(self, uri):<commit_title>[PATCH 1/4] Remove catastrophic backtracking in regex<commit_description>This upd...
<vulnerable_code> self.assertIn("FOO", self.parser.headers) self.assertEqual(self.parser.headers["FOO"], "abrowser/0.001 (C O M M E N T)") def test_parse_header_short_values(self): from waitress.parser import ParsingError <commit_title>[PATCH 1/4] Remove catastrophic backtracking in regex<co...
<vulnerable_code> def test_received_bad_transfer_encoding(self): from waitress.utilities import ServerNotImplemented data = ( b"GET /foobar HTTP/1.1\r\n" b"Transfer-Encoding: foo\r\n" self.parser.parse_header(data) self.assertEqual(self.parser.body_rcv.__class...
<vulnerable_code>package org.xwiki.velocity.introspection; import java.io.File; import java.util.HashMap; import java.util.HashSet; import java.util.Map; private void prepareWhitelistClass() { Set<String> whitelist = new HashSet<>(); whitelist.add(GETNAME); whitelist.add("getsimpleName...
<vulnerable_code> * * @version $Id$ */ public class SecureIntrospectorTest { @Mock private Logger logger; class CustomFile extends File { public CustomFile(String s) { super(s);<commit_title>[PATCH] XWIKI-5168: Don't allow some methods in velocity introspector<commit_descripti...
<vulnerable_code><commit_title>[PATCH] =?UTF-8?q?Parameter=20verification=20/=20=E5=8F=82?=<commit_description><fixed_code> webpackJsonp([1],{"+NZg":function(t,e){},"/BJT":function(t,e){},"/Ph2":function(t,e){},"0G7g":function(t,e){},"1A4y":function(t,e){},"1nff":function(t,e){},"2eZB":function(t,e){},"5RRq":function(t...
<vulnerable_code> createExecutorService(); listenerNotifier = ClientListenerNotifier.create(codec, marshaller, transportFactory); transportFactory.start(codec, configuration, defaultCacheTopologyId, listenerNotifier); synchronized (cacheName2RemoteCache) { RemoteCacheImpl<?, ?> remoteCac...
<vulnerable_code> return builder.maxRetries(retriesPerServer); } @Override public ConfigurationBuilder withProperties(Properties properties) { return builder.withProperties(properties);<commit_title>[PATCH] ISPN-7781 Add java deserial white list for client<commit_description>* Added new option to H...
<vulnerable_code> private final int maxRetries; private final NearCacheConfiguration nearCache; private final List<ClusterConfiguration> clusters; Configuration(ExecutorFactoryConfiguration asyncExecutorFactory, Class<? extends FailoverRequestBalancingStrategy> balancingStrategyClass, FailoverRequestBalanci...
<vulnerable_code> import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Properties; private int valueSizeEstimate = ConfigurationProperties.DEFAULT_VALUE_SIZE; private int maxRetries = ConfigurationProperties.DEFAULT_MAX_RETRIES; priva...
<vulnerable_code>package org.infinispan.client.hotrod.configuration; import java.util.Properties; import org.infinispan.client.hotrod.ProtocolVersion; */ ConfigurationBuilder maxRetries(int maxRetries); /** * Configures this builder using the specified properties */<commit_title>[PATCH] ISPN-7781 A...
<vulnerable_code> private final TransportFactory transportFactory; private final Consumer<WrappedByteArray> failoverClientListener = this::failoverClientListener; protected ClientListenerNotifier( ExecutorService executor, Codec codec, Marshaller marshaller, TransportFactory transportFactory...
<vulnerable_code> public static final String SASL_PROPERTIES_PREFIX = "infinispan.client.hotrod.sasl_properties"; public static final Pattern SASL_PROPERTIES_PREFIX_REGEX = Pattern.compile('^' + ConfigurationProperties.SASL_PROPERTIES_PREFIX + '.'); // defaults <commit_title>[PATCH] ISPN-7781 Add java...
<vulnerable_code>package org.infinispan.client.hotrod.impl.iteration; import java.util.Set; /** */ public interface KeyTracker { boolean track(byte[] key, short status); void segmentsFinished(byte[] finishedSegments); <commit_title>[PATCH] ISPN-7781 Add java deserial white list for client<commit_description>...
<vulnerable_code>package org.infinispan.client.hotrod.impl.iteration; import java.util.Set; /** class NoOpSegmentKeyTracker implements KeyTracker { @Override public boolean track(byte[] key, short status) { return true; } <commit_title>[PATCH] ISPN-7781 Add java deserial white list for client<commit_d...