text
stringlengths
79
3.72M
<vulnerable_code> section = "push" def read_config(self, config, **kwargs): push_config = config.get("push", {}) self.push_include_content = push_config.get("include_content", True) pusher_instances = config.get("pusher_instances") or [] def generate_config_section(self, config_dir...
<vulnerable_code> exit=sys.exit, ): url = "%s/_matrix/client/r0/admin/register" % (server_location,) # Get the nonce r = requests.get(url, verify=False)<commit_title>[PATCH 01/15] Speed up remote invite rejection database call (#8815)<commit_description>This is another PR that grew out of #6739. The e...
<vulnerable_code>from synapse.api.errors import Codes, NotFoundError, SynapseError from synapse.http.server import JsonResource from synapse.http.servlet import RestServlet, parse_json_object_from_request from synapse.rest.admin._base import ( admin_patterns, assert_requester_is_admin, historical_admin_path...
<vulnerable_code>from synapse.types import UserID def historical_admin_path_patterns(path_regex): """Returns the list of patterns for an admin endpoint, including historical ones This is a backwards-compatibility hack. Previously, the Admin API was exposed at various paths under /_matrix/client. This fun...
<vulnerable_code> admin_patterns, assert_requester_is_admin, assert_user_is_admin, historical_admin_path_patterns, ) logger = logging.getLogger(__name__) """ PATTERNS = ( historical_admin_path_patterns("/room/(?P<room_id>[^/]+)/media/quarantine") + # This path kept aroun...
<vulnerable_code> admin_patterns, assert_requester_is_admin, assert_user_is_admin, historical_admin_path_patterns, ) from synapse.types import JsonDict, UserID if TYPE_CHECKING: class UsersRestServlet(RestServlet): PATTERNS = historical_admin_path_patterns("/users/(?P<user_id>[^/]*)$") def __...
<vulnerable_code> ) # Test that the admin can still send shutdown url = "admin/shutdown_room/" + room_id request, channel = self.make_request( "POST", url.encode("ascii"), self.assertEqual(200, int(channel.result["code"]), msg=channel.result["body"]) ...
<vulnerable_code> def make_homeserver(self, reactor, clock): self.url = "/_matrix/client/r0/admin/register" self.registration_handler = Mock() self.identity_handler = Mock() # though the MAU limit would stop the user doing so. puppet_token = self._get_token() self.h...
<vulnerable_code> self.register_user("admin", "adminpassword", admin=True) admin_tok = self.login("admin", "adminpassword") url = "/_matrix/client/unstable/admin/account_validity/validity" params = {"user_id": user_id} request_data = json.dumps(params) request, channel = ...
<vulnerable_code>from synapse.config.server import ListenerConfig from synapse.crypto import context_factory from synapse.logging.context import PreserveLoggingContext from synapse.util.async_helpers import Linearizer from synapse.util.daemonize import daemonize_process from synapse.util.rlimit import change_resource_l...
<vulnerable_code># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import logging from typing import TYPE_CHECKING, Optional from synapse.http.servlet import parse_json_object_from_request f...
<vulnerable_code>from typing import Any, Callable, Dict, Iterator, List, Tuple, Union import jinja2 from canonicaljson import iterencode_canonical_json, iterencode_pretty_printed_json from zope.interface import implementer from twisted.internet import defer, interfaces pass else: respond_w...
<vulnerable_code> """ return self._purges_by_id.get(purge_id) async def purge_room(self, room_id: str) -> None: """Purge the given room from the database""" with await self.pagination_lock.write(room_id): # check we know about the room await self.store.get_roo...
<vulnerable_code> class DeleteRoomRestServlet(RestServlet): """Delete a room from server. It is a combination and improvement of shut down and purge room. Shuts down a room by removing all local users from the room. Blocking all future invites and joins to the room is optional. If desired any local...
<vulnerable_code> raise SynapseError(500, "An error was encountered when sending the email") token_expires = ( self.hs.clock.time_msec() + self.hs.config.email_validation_token_lifetime ) await self.store.start_or_continue_validation_session(<commit_title>[PATCH 01/15] S...
<vulnerable_code> "@cache_in_self can only be used on functions starting with `get_`" ) depname = builder.__name__[len("get_") :] building = [False] self._instance_id = random_string(5) self._instance_name = config.worker_name or "master" self.clock = Clock(reactor...
<vulnerable_code> self.fail("some_user was not in %s" % macaroon.inspect()) def test_macaroon_caveats(self): self.hs.clock.now = 5000 token = self.macaroon_generator.generate_access_token("a_user") macaroon = pymacaroons.Macaroon.deserialize(token) @defer.inlineCallbacks ...
<vulnerable_code> def make_homeserver(self, reactor, clock): hs = self.setup_test_homeserver( "red", http_client=None, federation_client=Mock() ) hs.presence_handler = Mock() hs.presence_handler.set_state.return_value = defer.succeed(None) return hs def te...
<vulnerable_code> tok = self.login("kermit", "monkey") # We need to manually add an email address otherwise the handler will do # nothing. now = self.hs.clock.time_msec() self.get_success( self.store.user_add_threepid( user_id=user_id, # We nee...
<vulnerable_code> def read_config(self, config, **kwargs): push_config = config.get("push") or {} self.push_include_content = push_config.get("include_content", True) pusher_instances = config.get("pusher_instances") or [] self.pusher_shard_config = ShardedWorkerHandlingConfig(pusher...
<vulnerable_code> self.failing_since = pusherdict["failing_since"] self.timed_call = None self._is_processing = False # This is the highest stream ordering we know it's safe to process. # When new events arrive, we'll be given a window of new events: we async def _update_badg...
<vulnerable_code># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from synapse.push.presentable_names import calculate_room_name, name_from_member_event from synapse.storage import Storage ...
<vulnerable_code># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from mock import Mock from twisted.internet.defer import Deferred import synapse.rest.admin from synapse.logging.context im...
<vulnerable_code> for table in ( "event_auth", "event_edges", "event_push_actions_staging", "event_reference_hashes", "event_relations", "destination_rooms", "event_backward_extremities", "event_forward_extremities", ...
<vulnerable_code> async def _do_appservice_login( self, login_submission: JsonDict, appservice: ApplicationService ): logger.info( "Got appservice login request with identifier: %r", login_submission.get("identifier"), ) identifier = convert_client_dict_le...
<vulnerable_code> flush_work(&autoload_work); } EXPORT_SYMBOL(snd_seq_device_load_drivers); #else #define queue_autoload_drivers() /* NOP */ #endif /* { struct snd_seq_device *dev = device->device_data; put_device(&dev->dev); return 0; }<commit_title>[PATCH] ALSA: seq: Cancel pending autoload work at unbinding dev...
<vulnerable_code>void *arm_dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs) { pgprot_t prot = __get_dma_pgprot(attrs, pgprot_kernel); void *memory; if (dma_alloc_from_coherent(dev, size, handle, &memory)) static void *arm_coherent_dma_alloc(struct device *dev,...
<vulnerable_code> ND_PRINT((ndo, "\n\t")); ip = (const struct ip *)bp; snapend_save = ndo->ndo_snapend; ip_print(ndo, bp, EXTRACT_16BITS(&ip->ip_len)); ndo->ndo_snapend = snapend_save; }<commit_title>[PATCH] CVE-2017-13012/ICMP: Add a missing bounds check.<commit_description>Check ...
<vulnerable_code>** A JPEG LS scan interleaving samples of several components, ** sample by sample. ** ** $Id: sampleinterleavedlsscan.cpp,v 1.15 2014/11/14 15:41:32 thor Exp $ ** */ if (lines > 8) { lines = 8; } if (m_pFrame->HeightOf() > 0) m_ulRemaining[0] -= lines; assert(lines > 0); assert(m_ucC...
<vulnerable_code>/* ** A JPEG LS scan covering only a single component. ** ** $Id: singlecomponentlsscan.cpp,v 1.18 2014/11/14 15:41:32 thor Exp $ ** */ } if (m_pFrame->HeightOf() > 0) m_ulRemaining[0] -= lines; assert(lines > 0); // Loop over lines and columns do {<commit_title>[PATCH] Fixed handlin...
<vulnerable_code> { if (image->previous == (Image *) NULL) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); (void) ThrowMagickException(exception,GetMagickModule(), CorruptImageError,"ImproperImageHeader","`%s'",image->filename); break;<commit_title>[PATCH]...
<vulnerable_code>'use strict'; const Crawlers = require('./crawler/crawlers'); const Exclusions = require('./crawler/exclusions'); const Headers = require('./crawler/headers'); class Crawler { constructor(request, headers, userAgent) { /** * Init classes */ this._init(); /** * This request must...
<vulnerable_code>from frappe import _ from frappe.core.doctype.comment.comment import update_comments_in_parent_after_request from frappe.middlewares import StaticDataMiddleware from frappe.utils import get_site_name, sanitize_html from frappe.utils.error import make_error_snapshot local_manager = LocalManager([frappe...
<vulnerable_code>}; /* * Create the adapter. */ adapter->slave_tp = transport; adapter->del_base = del_base; /* Done */ *p_tp = &adapter->base; return PJ_SUCCESS; return pjmedia_transport_simulate_lost(adapter->slave_tp, dir, pct_lost); } /* * destroy() is called when the transport is no ...
<vulnerable_code> pj_grp_lock_t *grp_lock = pj_ice_strans_get_grp_lock(tp_ice->ice_st); pj_grp_lock_add_ref(grp_lock); pj_grp_lock_add_handler(grp_lock, pool, tp_ice, &tp_ice_on_destroy); } /* Done */ static void tp_ice_on_destroy(void *arg) { struct transport_ice *tp_ice = (struct t...
<vulnerable_code> &transport_attach2 }; /** * Initialize loopback media transport setting with its default values. { struct transport_loop *tp; pj_pool_t *pool; /* Sanity check */ PJ_ASSERT_RETURN(endpt && p_tp, PJ_EINVAL); tp->base.op = &transport_udp_op; tp->base.type = PJMEDIA_TRANSPOR...
<vulnerable_code>/* Destroy SRTP context */ static void destroy_srtp_ctx(transport_srtp *p_srtp, srtp_context *ctx); /* This function may also be used by other module, e.g: pjmedia/errno.c, * it should have C compatible declaration. /* Set underlying transport */ srtp->member_tp = tp; /* Initialize peer...
<vulnerable_code> pj_status_t status, void *user_data); static pjmedia_transport_op dtls_op = { pj_bool_t pending_start; /* media_start() invoked but DTLS nego not done yet, so start ...
<vulnerable_code> pj_pool_t *pool; pj_ioqueue_t *ioqueue; pj_ioqueue_callback rtp_cb, rtcp_cb; pj_status_t status; pj_sockaddr_get_addr_len(&tp->rtp_addr_name)); } /* Setup RTP socket with the ioqueue */ pj_bzero(&rtp_cb, sizeof(rtp_cb)); rtp_cb.on_read_complete = &on...
<vulnerable_code> return op; } static void mrled(u8 * RESTRICT in, u8 * RESTRICT out, s32 outlen) { s32 op = 0, ip = 0; s32 c, pc = -1; s32 t[256] = { 0 }; s32 run = 0; for (s32 i = 0; i < 32; ++i) { c = in[ip++]; for (s32 j = 0; j < 8; ++j) t[i * 8 + j] = (c >> j) & 1; } ...
<vulnerable_code> return this; // invalid UTF-8? return as-is } }; }<commit_title>[PATCH] 3.0.9<commit_description>Vulnerability fix (#3741)<fixed_code> return this; // invalid UTF-8? return as-is } }; } function fieldSanitizeStep1( field, bHtml=true, bSvg=tru...
<vulnerable_code> flex_groupbit = flex->Decode.capcode - 2029568; if(flex_groupbit < 0) continue; } if (flex->Decode.is_groupmessage && flex->Decode.long_address) { // Invalid (by spec) verbprintf(3, "FLEX: Don't process group messages if a long address\n"); retu...
<vulnerable_code> // Read size and signature std::memset(buf.pData_, 0x0, buf.size_); bufRead = io_->read(buf.pData_, bufMinSize); if (io_->error()) throw Error(kerFailedToReadImageData); if (bufRead < 2) ...
<vulnerable_code>import com.vaadin.flow.server.frontend.BundleValidationUtil; import com.vaadin.flow.server.frontend.FrontendUtils; import com.vaadin.flow.theme.Theme; /** * Goal that builds the frontend bundle. exception); } } BuildFrontendUtil.updateBuildFile(thi...
<vulnerable_code> "jar-resources-source/META-INF/frontend"); jarResourcesSource.mkdirs(); projectFrontendResourcesDirectory = new File(npmFolder, "flow_resources"); <commit_title>[PATCH 1/5] feat: add license check for production bundle (#16728)<commit_description>Collect...
<vulnerable_code>import com.vaadin.flow.server.Constants; import com.vaadin.flow.server.ExecutionFailedException; import com.vaadin.flow.server.InitParameters; import com.vaadin.flow.server.frontend.CvdlProducts; import com.vaadin.flow.server.frontend.FrontendTools; import com.vaadin.flow.server.frontend.FrontendToolsS...
<vulnerable_code>import java.net.URI; import java.net.URISyntaxException; import java.nio.charset.StandardCharsets; import java.util.List; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import com.vaadin.flow.server.frontend.TaskRunNpmInstall; import com.vaadin.flow.server.frontend.insta...
<vulnerable_code>import com.vaadin.flow.server.frontend.scanner.FrontendDependenciesScanner; import com.vaadin.flow.server.webcomponent.WebComponentExporterTagExtractor; import com.vaadin.flow.server.webcomponent.WebComponentExporterUtils; import elemental.json.Json; import elemental.json.JsonArray; } ...
<vulnerable_code><commit_title>[PATCH 1/5] feat: add license check for production bundle (#16728)<commit_description>Collect pro-components from stats.json which are used in the project and check license for those. Closes #16720<fixed_code> /* * Copyright 2000-2022 Vaadin Ltd. * * Licensed under the Apache License,...
<vulnerable_code> } } /** * Adds a shortcut which 'clicks' the {@link Component} which implements * {@link ClickNotifier} interface. The shortcut's event listener is in<commit_title>[PATCH 1/5] feat: add license check for production bundle (#16728)<commit_description>Collect pro-components fro...
<vulnerable_code>@Route(value = "com.vaadin.flow.uitest.ui.ImageClickView", layout = ViewTestLayout.class) public class ImageClickView extends AbstractDivView { public ImageClickView() { Div message = new Div(); message.setText("Before click"); message.setId("message"); Image image...
<vulnerable_code>import org.junit.Assert; import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; public class ImageClickIT extends ChromeBrowserTest { open(); WebElement message = findElement(By.id("message")); WebElement image = findElement(By.id("image")...
<vulnerable_code> */ public static final String FRONTEND_HOTDEPLOY = "frontend.hotdeploy"; /** * Configuration name for enabling ci build for npm/pnpm. */<commit_title>[PATCH 1/5] feat: add license check for production bundle (#16728)<commit_description>Collect pro-components from stats.json whic...
<vulnerable_code> return null; } }<commit_title>[PATCH 1/5] feat: add license check for production bundle (#16728)<commit_description>Collect pro-components from stats.json which are used in the project and check license for those. Closes #16720<fixed_code> return null; } /** * Checks...
<vulnerable_code> new File("/Users/John Doe/Downloads/my-app (21)/my-app"), FileIOUtils.getProjectFolderFromClasspath(url)); } }<commit_title>[PATCH 1/5] feat: add license check for production bundle (#16728)<commit_description>Collect pro-components from stats.json which are used in ...
<vulnerable_code> "com\\.vaadin\\.base\\.devserver\\.DevModeHandlerManagerImpl", "com\\.vaadin\\.base\\.devserver\\.DevServerWatchDog", "com\\.vaadin\\.base\\.devserver\\.DevServerWatchDog\\$WatchDogServer", "com\\.vaadin\\.base\\.devserver\\.IdeIntegration...
<vulnerable_code><commit_title>[PATCH 1/5] feat: add license check for production bundle (#16728)<commit_description>Collect pro-components from stats.json which are used in the project and check license for those. Closes #16720<fixed_code> import { LitElement, html } from 'lit'; export class InFrontend extends LitEl...
<vulnerable_code><commit_title>[PATCH 1/5] feat: add license check for production bundle (#16728)<commit_description>Collect pro-components from stats.json which are used in the project and check license for those. Closes #16720<fixed_code> import { LitElement, html } from 'lit'; export class InResourcesFrontend exte...
<vulnerable_code><commit_title>[PATCH 1/5] feat: add license check for production bundle (#16728)<commit_description>Collect pro-components from stats.json which are used in the project and check license for those. Closes #16720<fixed_code> /* * Copyright 2000-2023 Vaadin Ltd. * * Licensed under the Apache License,...
<vulnerable_code><commit_title>[PATCH 1/5] feat: add license check for production bundle (#16728)<commit_description>Collect pro-components from stats.json which are used in the project and check license for those. Closes #16720<fixed_code> /* * Copyright 2000-2023 Vaadin Ltd. * * Licensed under the Apache License,...
<vulnerable_code> /****************** START CONFIG */ // Do not run the following modules except 'flow-tests' that is handled separatelly in this script const globalExclusions = ['flow-tests/servlet-containers/tomcat10', 'flow-tests/test-multi-war/test-war1', 'flow-tests/test-multi-war/test-war2']; // Set modules or te...
<vulnerable_code> import jakarta.servlet.annotation.HandlesTypes; import java.io.File; import java.io.Serializable; import java.util.HashSet; import java.util.List; import java.util.Optional; import java.util.Set; import org.slf4j.Logger; import org.slf4j.LoggerFactory; private DevModeHandler devModeHandler; ...
<vulnerable_code><commit_title>[PATCH 1/5] feat: add license check for production bundle (#16728)<commit_description>Collect pro-components from stats.json which are used in the project and check license for those. Closes #16720<fixed_code> /* * Copyright 2000-2023 Vaadin Ltd. * * Licensed under the Apache License,...
<vulnerable_code>/** * Watches for the file or sub-directory changes in the given directory. */ public class FileWatcher implements Serializable { private DirectoryWatcher watcher; <commit_title>[PATCH 1/5] feat: add license check for production bundle (#16728)<commit_description>Collect pro-components from stat...
<vulnerable_code> */ package com.vaadin.base.devserver; import java.io.File; import java.io.IOException; import java.util.Optional; * pushes the new version to the browser. * */ public class ThemeLiveUpdater { private FileWatcher watcher; /** * Stops watching the folder and cleans up resources. ...
<vulnerable_code> Use `{mention}` in the message to insert the selected mentions. Use `{stream}` in the message to insert the channel or user name. For example: `[p]streamset message mention "{mention}, {stream} is live!"` """ if message is not None: guild = ctx.guild...
<vulnerable_code>#include <mongoc.h> #include "ogs-dbi.h" int __ogs_dbi_domain; static ogs_mongoc_t self; /* return ret; } int ogs_mongoc_init(const char *db_uri) { bson_t reply; self.client = mongoc_client_new(db_uri); if (!self.client) { ogs_error("Failed to parse DB URI [%s]", db_uri); ...
<vulnerable_code>#include <mongoc.h> #include "ogs-dbi.h" #include <string.h> int __ogs_dbi_domain; static char masked_db_uri[255]; static ogs_mongoc_t self; /* return ret; } const char* ogs_mask_db_uri(const char *db_uri) { bzero(masked_db_uri, sizeof(masked_db_uri)); if (strnlen(db_uri, sizeof(masked_...
<vulnerable_code> return (char *)OGS_INET6_NTOP(addr6, buf); } void ogs_session_data_free(ogs_session_data_t *session_data) { int i; ogs_assert(session_data); for (i = 0; i < session_data->num_of_pcc_rule; i++) OGS_PCC_RULE_FREE(&session_data->pcc_rule[i]); }<commit_title>[PATCH 1/7] mask mong...
<vulnerable_code> #include "ogs-dbi.h" int ogs_dbi_session_data(char *supi, char *dnn, ogs_session_data_t *session_data) { int rv = OGS_OK; bson_error_t error; const bson_t *document; bson_iter_t iter; bson_iter_t child1_iter, child2_iter, child3_iter; bson_iter_t child4_iter, child5_it...
<vulnerable_code> bson_error_t error; const bson_t *document; bson_iter_t iter; bson_iter_t child1_iter, child2_iter, child3_iter, child4_iter; const char *utf8 = NULL; uint32_t length = 0; char *supi_type = NULL; char *supi_id = NULL; ogs_assert(subscription_data); ogs_assert(s...
<vulnerable_code> memset(ip, 0, sizeof *ip); if (paa->pdn_type == OGS_GTP_PDN_TYPE_IPV4V6) { ip->ipv4 = 1; ip->addr = paa->both.addr; ip->ipv6 = 1; memcpy(ip->addr6, paa->both.addr6, OGS_IPV6_LEN); } else if (paa->pdn_type == OGS_GTP_PDN_TYPE_IPV4) { ip->ipv4 = 1; ...
<vulnerable_code>/******************************************************************************* * This file had been created by nas-message.py script v0.2.0 * Please do not modify this file but regenerate it via script. * Created on: 2020-06-30 08:13:45.448896 by acetcom * from 24501-g41.docx *******************...
<vulnerable_code>/******************************************************************************* * This file had been created by nas-message.py script v0.2.0 * Please do not modify this file but regenerate it via script. * Created on: 2020-06-30 08:13:45.459717 by acetcom * from 24501-g41.docx *******************...
<vulnerable_code>/******************************************************************************* * This file had been created by nas-message.py script v0.2.0 * Please do not modify this file but regenerate it via script. * Created on: 2020-06-30 08:13:45.431932 by acetcom * from 24501-g41.docx *******************...
<vulnerable_code>" size = target.length + sizeof(target.length);\n\n" type_list["Session-AMBR"]["decode"] = \ " session_ambr->downlink.bitrate = be16toh(source->downlink.bitrate);\n" \ " session_ambr->uplink.bitrate = be16toh(source->uplink.bitrate);\n\n" type_list["Session-AMBR"]["encode"] = \ " target.d...
<vulnerable_code>} void ogs_nas_build_s_nssai( ogs_nas_s_nssai_t *nas_s_nssai, ogs_s_nssai_t *s_nssai) { int pos; ogs_uint24_t v; ogs_assert(nas_s_nssai); ogs_assert(s_nssai); pos = 0; if (s_nssai->sst) nas_s_nssai->buffer[pos++] = s_nssai->sst; if (s_nssai->sd.v != OGS_...
<vulnerable_code> } bitrate >>= 2; } nas->bitrate = bitrate; }<commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code> } bitrate >>= 2; } nas->value = bitrate; }
<vulnerable_code> break; } ogs_assert(num <= OGS_MAX_NUM_OF_HOSTNAME); hostname[num++] = ogs_yaml_iter_value(&hostname_iter); ...
<vulnerable_code> memset(addr, 0, sizeof *addr); if (paa->pdn_type == OGS_GTP_PDN_TYPE_IPV4V6) { addr->ipv4 = 1; addr->both.addr = paa->both.addr; addr->ipv6 = 1; memcpy(addr->both.addr6, paa->both.addr6, OGS_IPV6_LEN); *len = OGS_IPV4V6_LEN + hdr_len; } else if (paa...
<vulnerable_code>static OGS_POOL(nf_service_pool, ogs_sbi_nf_service_t); static OGS_POOL(xact_pool, ogs_sbi_xact_t); static OGS_POOL(subscription_pool, ogs_sbi_subscription_t); static ogs_sbi_context_t self; ogs_list_init(&self.subscription_list); ogs_pool_init(&subscription_pool, ogs_app()->pool.nf_subscript...
<vulnerable_code>#include "ogs-sbi.h" #include "yuarel.h" static char *ogs_uridup(bool https, ogs_sockaddr_t *addr, ogs_sbi_header_t *h) { char buf[OGS_ADDRSTRLEN]; char uri[OGS_HUGE_LEN]; Guami = ogs_calloc(1, sizeof(*Guami)); ogs_assert(Guami); Guami->plmn_id = ogs_sbi_build_plmn_id(&guami->plmn...
<vulnerable_code> OpenAPI_sm_policy_decision_free(message->SmPolicyDecision); if (message->SmPolicyData) OpenAPI_sm_policy_data_free(message->SmPolicyData); for (i = 0; i < message->num_of_part; i++) { if (message->part[i].pkbuf) } /* URL Param */ if (message->param.nf_type)...
<vulnerable_code> OpenAPI_nf_status_ToString(nf_instance->nf_status), nf_instance->num_of_ipv4, nf_instance->num_of_ipv6); if (strlen(nf_instance->fqdn)) { memset(fqdn, 0, sizeof(fqdn)); fqdn_len = ogs_fqdn_build(fqdn, ogs_free(NFProfile); } ogs_sbi_request_t *og...
<vulnerable_code>#include "ogs-sbi.h" #include "ogs-app.h" bool ogs_sbi_nnrf_handle_nf_profile(ogs_sbi_nf_instance_t *nf_instance, OpenAPI_nf_profile_t *NFProfile, ogs_sbi_stream_t *stream, ogs_sbi_message_t *message) } } return true; }<commit_title>[PATCH 1/7] mask mongo credentials w...
<vulnerable_code> char *supported_features, OpenAPI_list_t *gpsis, OpenAPI_list_t *internal_group_ids, OpenAPI_list_t* vn_group_info, OpenAPI_list_t* shared_vn_group_data_ids, OpenAPI_ambr_rm_t *subscribed_ue_ambr, OpenAPI_nssai_t *nssai, int mps_priority, int mcs_priority, int ac...
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code> #include <stdlib.h> #include <string.h> #include <stdio.h> #include "access_network_id.h" char* OpenAPI_access_network_id_ToString(OpenAPI_access_network_id_e access_network_id) { const char *acce...
<vulnerable_code>#include <stdio.h> #include "additional_qos_flow_info.h" OpenAPI_additional_qos_flow_info_t *OpenAPI_additional_qos_flow_info_create( ) { OpenAPI_additional_qos_flow_info_t *additional_qos_flow_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_additional_qos_flow_info_t)); if (!additional_qos...
<vulnerable_code> #include <stdlib.h> #include <string.h> #include <stdio.h> #include "af_non_external.h" OpenAPI_af_non_external_t *OpenAPI_af_non_external_create( char *af_id, OpenAPI_list_t *allowed_geographic_area, OpenAPI_privacy_check_related_action_e privacy_check_related_action, OpenAPI_code_wo...
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code> #include <stdlib.h> #include <string.h> #include <stdio.h> #include "alternative_qos_profile.h" OpenAPI_alternative_qos_profile_t *OpenAPI_alternative_qos_profile_create( int index, char *gua_...
<vulnerable_code> OpenAPI_rat_type_e rat_type, int urrp_indicator, char *amf_ee_subscription_id, int ue_srvcc_capability, char *nid, char *registration_time, char *vgmlc_address_ipv4, char *vgmlc_address_ipv6, char *vgmlc_fqdn ) { OpenAPI_amf3_gpp_access_registration_t *amf3_g...
<vulnerable_code> OpenAPI_ims_vo_ps_t *ims_vo_ps, OpenAPI_list_t *backup_amf_info, OpenAPI_eps_interworking_info_t *eps_interworking_info, int ue_srvcc_capability ) { OpenAPI_amf3_gpp_access_registration_modification_t *amf3_gpp_access_registration_modification_local_var = OpenAPI_malloc(sizeof(O...
<vulnerable_code> OpenAPI_rat_type_e rat_type, int urrp_indicator, char *amf_ee_subscription_id, char *nid, char *registration_time, char *vgmlc_address_ipv4, char *vgmlc_address_ipv6, char *vgmlc_fqdn ) { OpenAPI_amf_non3_gpp_access_registration_t *amf_non3_gpp_access_registratio...
<vulnerable_code>#include <stdio.h> #include "an_node_type.h" OpenAPI_an_node_type_t *OpenAPI_an_node_type_create( ) { OpenAPI_an_node_type_t *an_node_type_local_var = OpenAPI_malloc(sizeof(OpenAPI_an_node_type_t)); if (!an_node_type_local_var) { return NULL; } return an_node_type_local_va...
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code> #include <stdlib.h> #include <string.h> #include <stdio.h> #include "area_scope.h" OpenAPI_area_scope_t *OpenAPI_area_scope_create( OpenAPI_list_t *eutra_cell_id_list, OpenAPI_list_t *nr_cell_...
<vulnerable_code> OpenAPI_atsss_capability_t *OpenAPI_atsss_capability_create( int atsss_ll, int mptcp ) { OpenAPI_atsss_capability_t *atsss_capability_local_var = OpenAPI_malloc(sizeof(OpenAPI_atsss_capability_t)); } atsss_capability_local_var->atsss_ll = atsss_ll; atsss_capability_local_va...
<vulnerable_code> int success, char *time_stamp, OpenAPI_auth_type_e auth_type, char *serving_network_name ) { OpenAPI_auth_event_t *auth_event_local_var = OpenAPI_malloc(sizeof(OpenAPI_auth_event_t)); auth_event_local_var->time_stamp = time_stamp; auth_event_local_var->auth_type = auth_t...
<vulnerable_code> char *serving_network_name, OpenAPI_resynchronization_info_t *resynchronization_info, char *ausf_instance_id, char *cag_id ) { OpenAPI_authentication_info_request_t *authentication_info_request_local_var = OpenAPI_malloc(sizeof(OpenAPI_authentication_info_request_t)); authen...
<vulnerable_code> char *algorithm_id, char *enc_opc_key, char *enc_topc_key, int vector_generation_in_hss ) { OpenAPI_authentication_subscription_t *authentication_subscription_local_var = OpenAPI_malloc(sizeof(OpenAPI_authentication_subscription_t)); authentication_subscription_local_var->en...
<vulnerable_code><commit_title>[PATCH 1/7] mask mongo credentials when logging (#827)<commit_description><fixed_code> #include <stdlib.h> #include <string.h> #include <stdio.h> #include "authorized_network_slice_info.h" OpenAPI_authorized_network_slice_info_t *OpenAPI_authorized_network_slice_info_create( OpenAPI...