Datasets:
project string | commit_id string | target int64 | func string | idx float64 | CWE string | CVE string | dataset string | CWE_multilabel list | CWE_multiclass string | label_cwe_multiclass int64 | label_cwe_multilabel list | has_cwe bool | stratify string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
psi-im/iris | 02e976d4426a1319a7af7d26d7aba9d8c6077570 | 0 | void JT_Register::unreg(const Jid &j)
{
d->type = 2;
to = j.isEmpty() ? client()->host() : j.full();
iq = createIQ(doc(), "set", to.full(), id());
QDomElement query = doc()->createElement("query");
query.setAttribute("xmlns", "jabber:iq:register");
iq.appendChild(query);
// this may be useful
if(!d->form.key()... | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
qemu | 7b320a8e67a534925048cbabfa51431e0349dafd | 1 | static uint32_t get_cmd(ESPState *s, uint32_t maxlen)
{
uint8_t buf[ESP_CMDFIFO_SZ];
uint32_t dmalen, n;
int target;
target = s->wregs[ESP_WBUSID] & BUSID_DID;
if (s->dma) {
dmalen = MIN(esp_get_tc(s), maxlen);
if (dmalen == 0) {
return 0;
}
if (s->dma_me... | null | CWE-476 | CVE-2020-35504 | diversevul | [
"CWE-476"
] | CWE-476 | 8 | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
wireshark | e2745d741ec11f395d41c0aafa24df9dec136399 | 1 | static int
dissect_channel_switch_wrapper(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset,
guint32 tag_len)
{
int tmp_sublen;
const guint8 ids[] = { TAG_COUNTRY_INFO, TAG_WIDE_BW_CHANNEL_SWITCH,
TAG_VHT_TX_PWR_ENVELOPE };
/*
Decode three subelement in IE-196(Channel... | null | CWE-20 | CVE-2016-4078 | megavul | [
"CWE-20"
] | CWE-20 | 14 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
linux | a2cdd07488e666aa93a49a3fc9c9b1299e27ef3c | 0 | static int rtl8xxxu_start(struct ieee80211_hw *hw)
{
struct rtl8xxxu_priv *priv = hw->priv;
struct rtl8xxxu_rx_urb *rx_urb;
struct rtl8xxxu_tx_urb *tx_urb;
unsigned long flags;
int ret, i;
ret = 0;
init_usb_anchor(&priv->rx_anchor);
init_usb_anchor(&priv->tx_anchor);
init_usb_anchor(&priv->int_anchor);
pri... | 65,762 | null | null | crossvul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
android | 2b6f22dc64d456471a1dc6df09d515771d1427c8 | 0 | void h264bsdCroppingParams(storage_t *pStorage, u32 *croppingFlag,
u32 *leftOffset, u32 *width, u32 *topOffset, u32 *height)
{
/* Variables */
/* Code */
ASSERT(pStorage);
if (pStorage->activeSps && pStorage->activeSps->frameCroppingFlag)
{
*croppingFlag = 1;
*leftOffset = 2 * pStora... | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
capnproto | 25d34c67863fd960af34fc4f82a7ca3362ee74b9 | 1 | inline PointerReader ListReader::getPointerElement(ElementCount index) const {
// If the list elements have data sections we need to skip those. Note that for pointers to be
// present at all (which already must be true if we get here), then `structDataSize` must be a
// whole number of words, so we don't have to... | null | CWE-125 | CVE-2022-46149 | megavul | [
"CWE-125"
] | CWE-125 | 0 | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
mesa | 02c3dad0f3b4d26e0faa5cc51d06bc50d693dcdc | 1 | static char *
alloc_shm(struct dri_sw_displaytarget *dri_sw_dt, unsigned size)
{
char *addr;
/* 0600 = user read+write */
dri_sw_dt->shmid = shmget(IPC_PRIVATE, size, IPC_CREAT | 0600);
if (dri_sw_dt->shmid < 0)
return NULL;
addr = (char *) shmat(dri_sw_dt->shmid, 0, 0);
/* mark the segment im... | null | CWE-732 | CVE-2019-5068 | megavul | [
"CWE-732"
] | CWE-732 | 31 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
wireshark | 7b6e197da4c497e229ed3ebf6952bae5c426a820 | 1 | static int
call_dissector_work(dissector_handle_t handle, tvbuff_t *tvb, packet_info *pinfo_arg,
proto_tree *tree, gboolean add_proto_name, void *data)
{
packet_info *pinfo = pinfo_arg;
const char *saved_proto;
guint16 saved_can_desegment;
int len;
guint saved_layers_len = 0;
if (han... | null | CWE-674 | CVE-2019-12295 | megavul | [
"CWE-674"
] | CWE-674 | 22 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
php-src | 97eff7eb57fc2320c267a949cffd622c38712484 | 1 | PHP_FUNCTION(locale_compose)
{
smart_str loc_name_s = {0};
smart_str *loc_name = &loc_name_s;
zval* arr = NULL;
HashTable* hash_arr = NULL;
int result = 0;
intl_error_reset( NULL TSRMLS_CC );
if(zend_parse_parameters( ZEND_NUM_ARGS() TSRMLS_CC, "a",
&arr) == FAILURE)
{
intl_error_set( NULL, U_... | 2,816 | CWE-125 | null | crossvul | [
"CWE-125"
] | CWE-125 | 0 | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
sctplab/usrsctp | 790a7a2555aefb392a5a69923f1e9d17b4968467 | 0 | size_t
sctp_auth_get_chklist_size(const sctp_auth_chklist_t *list)
{
if (list == NULL)
return (0);
else
return (list->num_chunks);
} | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
Exiv2/exiv2 | fe70939f54476e99046245ca69ff27012401f759 | 1 | DataBuf LoaderTiff::getData() const
{
const ExifData &exifData = image_.exifData();
ExifData preview;
// copy tags
for (ExifData::const_iterator pos = exifData.begin(); pos != exifData.end(); ++pos) {
if (pos->groupName() == group_) {
/*
... | null | CWE-190, CWE-125 | CVE-2018-12264 | megavul | [
"CWE-190",
"CWE-125"
] | CWE-125 | 0 | [
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
gvfs | f81ff2108ab3b6e370f20dcadd8708d23f499184 | 0 | try_replace_checked_etag (SoupSession *session, SoupMessage *msg,
gpointer user_data)
{
GVfsJob *job = G_VFS_JOB (user_data);
GVfsBackendHttp *op_backend = job->backend_data;
if (msg->status_code == SOUP_STATUS_PRECONDITION_FAILED)
{
g_vfs_job_failed (G_VFS_JOB (job),
... | null | null | null | diversevul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
linux | c40f7d74c741a907cfaeb73a7697081881c497d0 | 0 | static inline unsigned long group_faults(struct task_struct *p, int nid)
{
if (!p->numa_group)
return 0;
return p->numa_group->faults[task_faults_idx(NUMA_MEM, nid, 0)] +
p->numa_group->faults[task_faults_idx(NUMA_MEM, nid, 1)];
} | 265,156 | null | null | crossvul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
tensorflow | 1970c2158b1ffa416d159d03c3370b9a462aee35 | 1 | TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
TF_LITE_ENSURE_EQ(context, NumInputs(node), 3);
TF_LITE_ENSURE_EQ(context, NumOutputs(node), 2);
const TfLiteTensor* lookup = GetInput(context, node, 0);
TF_LITE_ENSURE_EQ(context, NumDimensions(lookup), 1);
TF_LITE_ENSURE_EQ(context, lookup->t... | 254,981 | CWE-125 | null | crossvul | [
"CWE-125"
] | CWE-125 | 0 | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
swoole-src | 4cdbce5d9bf2fe596bb6acd7d6611f9e8c253a76 | 0 | static CPINLINE int swoole_string_new(size_t size, seriaString *str, zend_uchar type)
{
int total = ZEND_MM_ALIGNED_SIZE(_STR_HEADER_SIZE + size + 1);
str->total = total;
//escape the header for later
str->offset = _STR_HEADER_SIZE;
//zend string addr
str->buffer = ecalloc(1, total);
if (!st... | 146,361 | null | null | crossvul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
Chrome | c63f2b7fe4fe2977f858a8e36d5f48db17eff2e7 | 0 | void ExtensionTtsController::SpeakNextUtterance() {
| 175,780 | null | null | bigvul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
Chrome | e9372a1bfd3588a80fcf49aa07321f0971dd6091 | 0 | Frame* V8Proxy::retrieveFrameForCurrentContext()
{
v8::Handle<v8::Context> context = v8::Context::GetCurrent();
if (context.IsEmpty())
return 0;
return retrieveFrame(context);
}
| 310,155 | null | null | bigvul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
connman | b0ec6eb4466acc57a9ea8be52c17b674b6ea0618 | 0 | static void process_newaddr(unsigned char family, unsigned char prefixlen,
int index, struct ifaddrmsg *msg, int bytes)
{
const char *label = NULL;
void *src;
char ip_string[INET6_ADDRSTRLEN];
if (family == AF_INET) {
struct in_addr ipv4_addr = { INADDR_ANY };
extract_ipv4_addr(msg, bytes, &label, &ipv4_a... | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
grpc | c6ec1155d026c91b1badb07ef1605bb747cff064 | 1 | static void internal_set_time(grpc_error **err, grpc_error_times which,
gpr_timespec value) {
uint8_t slot = (*err)->times[which];
if (slot == UINT8_MAX) {
slot = get_placement(err, sizeof(value));
if (slot == UINT8_MAX) {
const char *time_str = fmt_time(value);
gpr... | null | CWE-787 | CVE-2017-9431 | megavul | [
"CWE-787"
] | CWE-787 | 6 | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
Zerocoin/libzerocoin | ce103a09ec079d0a0ed95475992348bed6e860de | 0 | const uint256 CoinSpend::signatureHash(const SpendMetaData &m) const {
CHashWriter h(0,0);
h << m << serialCommitmentToCoinValue << accCommitmentToCoinValue << commitmentPoK << accumulatorPoK;
return h.GetHash();
} | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
qemu | 31ab2b4a46eb9761feae9457387eb5ee523f5afd | 0 | static MemoryRegionSection phys_page_find(target_phys_addr_t index)
{
uint16_t *p = phys_page_find_alloc(index, 0);
uint16_t s_index = phys_section_unassigned;
MemoryRegionSection section;
target_phys_addr_t delta;
if (p) {
s_index = *p;
}
section = phys_sections[s_index];... | 324,764 | null | null | devign | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
wernsey/bitmap | 1c88bbd728da6bff8f4533bcfdb0dfef4ed8038b | 1 | int bm_putc(Bitmap *b, int x, int y, char c) {
char text[2] = {c, 0};
assert(b);
return bm_puts(b, x, y, text);
} | null | CWE-476 | CVE-2018-17073 | megavul | [
"CWE-476"
] | CWE-476 | 8 | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
dpdk | e7debf602633feb26227cdc8cc7fdd1b1b40946a | 1 | vhost_backend_cleanup(struct virtio_net *dev)
{
if (dev->mem) {
free_mem_region(dev);
rte_free(dev->mem);
dev->mem = NULL;
}
rte_free(dev->guest_pages);
dev->guest_pages = NULL;
if (dev->log_addr) {
munmap((void *)(uintptr_t)dev->log_addr, dev->log_size);
dev->log_addr = 0;
}
if (dev->inflight_info)... | null | CWE-190 | CVE-2020-10726 | diversevul | [
"CWE-190"
] | CWE-190 | 3 | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
FFmpeg | a6c49f18abacb9bf52d4d808a2a56561a5b5445c | 1 | static void windowing_and_mdct_ltp(AACContext *ac, float *out,
float *in, IndividualChannelStream *ics)
{
const float *lwindow = ics->use_kb_window[0] ? ff_aac_kbd_long_1024 : ff_sine_1024;
const float *swindow = ics->use_kb_window[0] ? ff_aac_kbd_short_128 : ff_... | 319,080 | CWE-Noinfo | null | devign | [
"CWE-Noinfo"
] | CWE-Noinfo | 20 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
mujs | 77ab465f1c394bb77f00966cd950650f3f53cb24 | 0 | int js_isdefined(js_State *J, int idx) { return stackidx(J, idx)->type != JS_TUNDEFINED; } | null | null | null | diversevul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
xen-project/xen | d3c151fd3a4365fc6107198bfc975807d40d157d | 0 | int hvm_set_cr0(unsigned long value)
{
struct vcpu *v = current;
struct domain *d = v->domain;
unsigned long gfn, old_value = v->arch.hvm_vcpu.guest_cr[0];
struct page_info *page;
HVM_DBG_LOG(DBG_LEVEL_VMMU, "Update CR0 value = %lx", value);
if ( (u32)value != value )
{
HVM_DBG_LOG... | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
linux | aa9f7d5172fac9bf1f09e678c35e287a40a7b7dd | 0 | static int migrate_to_node(struct mm_struct *mm, int source, int dest,
int flags)
{
nodemask_t nmask;
LIST_HEAD(pagelist);
int err = 0;
nodes_clear(nmask);
node_set(source, nmask);
/*
* This does not "check" the range but isolates all pages that
* need migration. Between passing in the full user addr... | 151,152 | null | null | crossvul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
bash | 955543877583837c85470f7fb8a97b7aa8d45e6c | 1 | _rl_get_string_variable_value (name)
const char *name;
{
static char numbuf[32];
char *ret;
if (_rl_stricmp (name, "bell-style") == 0)
{
switch (_rl_bell_preference)
{
case NO_BELL:
return "none";
case VISIBLE_BELL:
return "visible";
case AUDIBLE_BELL:
default:
return "... | null | CWE-862 | CVE-2019-9924 | diversevul | [
"CWE-862"
] | CWE-862 | 57 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0... | true | 1_1 |
wireshark | 2c13e97d656c1c0ac4d76eb9d307664aae0e0cf7 | 0 | capture_ppi(const guchar *pd, int len, packet_counts *ld)
{
guint32 dlt;
guint ppi_len;
ppi_len = pletoh16(pd+2);
if(ppi_len < PPI_V0_HEADER_LEN || !BYTES_ARE_IN_FRAME(0, len, ppi_len)) {
ld->other++;
return;
}
dlt = pletoh32(pd+4);
/* XXX - We should probably combine ... | 212,059 | null | null | crossvul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
gpg/libgcrypt | a4c561aab1014c3630bc88faf6f5246fee16b020 | 1 | static inline void
do_prefetch_tables (const void *gcmM, size_t gcmM_size)
{
/* Modify counters to trigger copy-on-write and unsharing if physical pages
* of look-up table are shared between processes. Modifying counters also
* causes checksums for pages to change and hint same-page merging algorithm
* that... | null | CWE-668 | CVE-2019-12904 | megavul | [
"CWE-668"
] | CWE-668 | 109 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
spice | ca5bbc5692e052159bce1a75f55dc60b36078749 | 0 | SPICE_GNUC_VISIBLE int spice_server_init(SpiceServer *reds, SpiceCoreInterface *core)
{
int ret;
ret = do_spice_init(reds, core);
if (reds->config->renderers->len == 0) {
reds_add_renderer(reds, default_renderer);
}
if (reds->config->video_codecs->len == 0) {
reds_set_video_codecs_f... | null | null | null | diversevul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
libevent | 96f64a022014a208105ead6c8a7066018449d86d | 0 | static void
search_request_finished(struct evdns_request *const handle) {
ASSERT_LOCKED(handle->current_req->base);
if (handle->search_state) {
search_state_decref(handle->search_state);
handle->search_state = NULL;
}
if (handle->search_origname) {
mm_free(handle->search_origname);
handle->search_origname =... | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
marcobambini/gravity | 00e53c362677ba9363e89e859a54027581c60cf2 | 1 | static bool list_exec (gravity_vm *vm, gravity_value_t *args, uint16_t nargs, uint32_t rindex) {
if ((nargs != 2) || (!VALUE_ISA_INT(GET_VALUE(1)))) RETURN_ERROR("An Int value is expected as argument of List allocate.");
uint32_t n = (uint32_t)VALUE_AS_INT(GET_VALUE(1));
gravity_list_t *list = gravity_... | null | CWE-119 | CVE-2017-1000074 | megavul | [
"CWE-119"
] | CWE-119 | 4 | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
torvalds/linux | 96b340406724d87e4621284ebac5e059d67b2194 | 1 | static int
fst_get_iface(struct fst_card_info *card, struct fst_port_info *port,
struct ifreq *ifr)
{
sync_serial_settings sync;
int i;
/* First check what line type is set, we'll default to reporting X.21
* if nothing is set as IF_IFACE_SYNC_SERIAL implies it can't be
* changed
*/
switch (port->hwif)... | null | CWE-399 | CVE-2014-1444 | megavul | [
"CWE-399"
] | CWE-399 | 7 | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
naviserver | a5c3079f1d8996d5f34c9384a440acf3519ca3bb | 0 | GetSockStateName(SockState sockState)
{
int sockStateInt = (int)sockState;
static const char *sockStateStrings[] = {
"SOCK_READY",
"SOCK_MORE",
"SOCK_SPOOL",
"SOCK_ERROR",
"SOCK_CLOSE",
"SOCK_CLOSETIMEOUT",
"SOCK_READTIMEOUT",
"SOCK_WRITETIMEOUT",
... | 108,002 | null | null | cvefixes | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
android | 7e4405a7a12750ee27325f065b9825c25b40598c | 0 | Crypto* DOMWindow::crypto() const
{
if (!m_crypto)
m_crypto = Crypto::create();
return m_crypto.get();
} | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
gpac | ea1eca00fd92fa17f0e25ac25652622924a9a6a0 | 1 |
static JSValue js_sys_basecode_ex(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, Bool is_dec, Bool is_16)
{
u32 out_size=0;
u8 *out_ptr = NULL;
JSValue res;
GF_Err e;
if (!argc) return GF_JS_EXCEPTION(ctx);
if (is_dec) {
u32 len;
const char *str = JS_ToCString(ctx, argv[0]);
if (!str... | null | CWE-787 | null | diversevul | [
"CWE-787"
] | CWE-787 | 6 | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
wireshark | 086003c9d616906e08bbeeab9c17b3aa4c6ff850 | 0 | static int
dissect_lte_rrc_SupportedBandCombination_v1090(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
ett_lte_rrc_SupportedBandCombin... | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
mongo | 035cf2afc04988b22cb67f4ebfd77e9b344cb6e0 | 0 | static UChar32 ctrlUpArrowKeyRoutine(UChar32 c) {
return thisKeyMetaCtrl | CTRL | UP_ARROW_KEY;
} | 133,727 | null | null | crossvul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
linux | b5fdf5c6e6bee35837e160c00ac89327bdad031b | 1 | max3421_urb_done(struct usb_hcd *hcd)
{
struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
unsigned long flags;
struct urb *urb;
int status;
status = max3421_hcd->urb_done;
max3421_hcd->urb_done = 0;
if (status > 0)
status = 0;
urb = max3421_hcd->curr_urb;
if (urb) {
max3421_hcd->curr_urb = NULL;
sp... | 7,072 | CWE-416 | null | cvefixes | [
"CWE-416"
] | CWE-416 | 16 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
radareorg/radare2 | ba919adb74ac368bf76b150a00347ded78b572dd | 1 | static void axfm(RCore *core) {
RVecAnalRef *refs = r_anal_xrefs_get_from (core->anal, UT64_MAX);
if (refs && !RVecAnalRef_empty (refs)) {
RVecAnalRef_sort (refs, compare_ref);
ut64 last_addr = UT64_MAX;
RAnalRef *ref;
R_VEC_FOREACH (refs, ref) {
const bool is_first = ref->addr != last_addr;
const char... | null | CWE-787 | CVE-2023-4322 | megavul | [
"CWE-787"
] | CWE-787 | 6 | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
kernel/git/klassert/ipsec-next | 6b4db2e528f650c7fb712961aac36455468d5902 | 0 | static int
devlink_nl_reload_actions_performed_snd(struct devlink *devlink, u32 actions_performed,
enum devlink_command cmd, struct genl_info *info)
{
struct sk_buff *msg;
void *hdr;
msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL);
if (!msg)
return -ENOMEM;
hdr = genlmsg_put(msg, info->snd_portid, info->s... | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
wireshark | ab8a33ef083b9732c89117747a83a905a676faf6 | 0 | gboolean
tvb_offset_exists(const tvbuff_t *tvb, const gint offset)
{
guint abs_offset;
int exception;
DISSECTOR_ASSERT(tvb && tvb->initialized);
exception = compute_offset(tvb, offset, &abs_offset);
if (exception)
return FALSE;
/* compute_offset only throws an exception on >, not >= because of the
* comm... | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
linux | d80b64ff297e40c2b6f7d7abc1b3eba70d22a068 | 0 | static int task_switch_interception(struct vcpu_svm *svm)
{
u16 tss_selector;
int reason;
int int_type = svm->vmcb->control.exit_int_info &
SVM_EXITINTINFO_TYPE_MASK;
int int_vec = svm->vmcb->control.exit_int_info & SVM_EVTINJ_VEC_MASK;
uint32_t type =
svm->vmcb->control.exit_int_info & SVM_EXITINTINFO_TYPE_MA... | null | null | null | diversevul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
php-src | 97eff7eb57fc2320c267a949cffd622c38712484 | 1 | static int append_key_value(smart_str* loc_name, HashTable* hash_arr, char* key_name)
{
zval** ele_value = NULL;
if(zend_hash_find(hash_arr , key_name , strlen(key_name) + 1 ,(void **)&ele_value ) == SUCCESS ) {
if(Z_TYPE_PP(ele_value)!= IS_STRING ){
/* element value is not a string */
return FAILURE;
}
... | 8,294 | CWE-125 | null | crossvul | [
"CWE-125"
] | CWE-125 | 0 | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
Chrome | ee7579229ff7e9e5ae28bf53aea069251499d7da | 0 | ScopedGLErrorSuppressor::ScopedGLErrorSuppressor(
const char* function_name, ErrorState* error_state)
: function_name_(function_name),
error_state_(error_state) {
ERRORSTATE_COPY_REAL_GL_ERRORS_TO_WRAPPER(error_state_, function_name_);
}
| 173,898 | null | null | bigvul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
facebook/proxygen | 0a00c43d64c58a85e6250120f2377302675b0fe3 | 1 | void HTTPSessionBase::setControlMessageRateLimitParams(
uint32_t maxControlMsgsPerInterval,
uint32_t maxDirectErrorHandlingPerInterval,
uint32_t maxHeadersPerInterval,
std::chrono::milliseconds controlMsgIntervalDuration,
std::chrono::milliseconds directErrorHandlingIntervalDuration,
std::chrono... | null | CWE-400 | CVE-2023-44487 | megavul | [
"CWE-400"
] | CWE-400 | 1 | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
Espruino | 51380baf17241728b6d48cdb84140b931e3e3cc5 | 0 | NO_INLINE JsVar *jspeStatementReturn() {
JsVar *result = 0;
JSP_ASSERT_MATCH(LEX_R_RETURN);
if (lex->tk != ';' && lex->tk != '}') {
// we only want the value, so skip the name if there was one
result = jsvSkipNameAndUnLock(jspeExpression());
}
if (JSP_SHOULD_EXECUTE) {
JsVar *resultVar = jspeiFind... | 293,531 | null | null | crossvul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
ClusterLabs/pacemaker | 5d71e65049 | 0 | void
crm_client_init(void)
{
if (client_connections == NULL) {
crm_trace("Creating client hash table");
client_connections = g_hash_table_new(g_direct_hash, g_direct_equal);
}
} | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
ImageMagick | d3144a8be81aed6e635de68f0d8e97881638a398 | 0 | static Image *ReadMATImageV4(const ImageInfo *image_info,Image *image,
ExceptionInfo *exception)
{
typedef struct {
unsigned char Type[4];
unsigned int nRows;
unsigned int nCols;
unsigned int imagf;
unsigned int nameLen;
} MAT4_HDR;
long
ldblk;
EndianType
endian;
Image
*ro... | null | null | null | diversevul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
linux | fdf5af0daf8019cec2396cdef8fb042d80fe71fa | 0 | static void tcp_dsack_set(struct sock *sk, u32 seq, u32 end_seq)
{
struct tcp_sock *tp = tcp_sk(sk);
if (tcp_is_sack(tp) && sysctl_tcp_dsack) {
int mib_idx;
if (before(seq, tp->rcv_nxt))
mib_idx = LINUX_MIB_TCPDSACKOLDSENT;
else
mib_idx = LINUX_MIB_TCPDSACKOFOSENT;
NET_INC_STATS_BH(sock_net(sk), mib_... | 306,067 | null | null | crossvul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
php-src | b7fa67742cd8d2b0ca0c0273b157f6ffee9ad6e2 | 1 | static zval *spl_array_read_dimension_ex(int check_inherited, zval *object, zval *offset, int type TSRMLS_DC) /* {{{ */
{
zval **ret;
if (check_inherited) {
spl_array_object *intern = (spl_array_object*)zend_object_store_get_object(object TSRMLS_CC);
if (intern->fptr_offset_get) {
zval *rv;
if (!offset) {
... | null | CWE-Other | CVE-2015-6832 | diversevul | [
"CWE-Other"
] | CWE-Other | 9 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
postgres | 804b6b6db4dcfc590a468e7be390738f9f7755fb | 0 | ri_HashPreparedPlan(RI_QueryKey *key, SPIPlanPtr plan)
{
RI_QueryHashEntry *entry;
bool found;
/*
* On the first call initialize the hashtable
*/
if (!ri_query_cache)
ri_InitHashTables();
/*
* Add the new plan. We might be overwriting an entry previously found
* invalid by ri_FetchPreparedPlan.
*/
... | null | null | null | diversevul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
binutils-gdb | c2f5dc30afa34696f2da0081c4ac50b958ecb0e9 | 1 | static void
display_rel_file (bfd *abfd, bfd *archive_bfd)
{
long symcount;
void *minisyms;
unsigned int size;
struct size_sym *symsizes;
asymbol *synthsyms = NULL;
if (! dynamic)
{
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
{
non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
ret... | null | CWE-772 | CVE-2018-20002 | megavul | [
"CWE-772"
] | CWE-772 | 47 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
pymumu/smartdns | 56d0332bf91104cfc877635f6c82e9348587df04 | 0 | static int _dns_encode_OPT(struct dns_context *context, struct dns_rrs *rrs)
{
int ret = 0;
int opt_code = 0;
int qclass = 0;
char domain[DNS_MAX_CNAME_LEN];
struct dns_context data_context;
int rr_len = 0;
int ttl = 0;
struct dns_opt *dns_opt = NULL;
_dns_init_context_by_rrs(rrs, &data_context);
ret = _dns_... | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
linux | 36ae3c0a36b7456432fedce38ae2f7bd3e01a563 | 1 | kvm_irqfd(struct kvm *kvm, struct kvm_irqfd *args)
{
if (args->flags & ~(KVM_IRQFD_FLAG_DEASSIGN | KVM_IRQFD_FLAG_RESAMPLE))
return -EINVAL;
if (args->flags & KVM_IRQFD_FLAG_DEASSIGN)
return kvm_irqfd_deassign(kvm, args);
return kvm_irqfd_assign(kvm, args);
} | 6,519 | CWE-20 | null | crossvul | [
"CWE-20"
] | CWE-20 | 14 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
php/php-src | 7245bff300d3fa8bacbef7897ff080a6f1c23eba | 1 | static spl_filesystem_object * spl_filesystem_object_create_info(spl_filesystem_object *source, char *file_path, int file_path_len, int use_copy, zend_class_entry *ce, zval *return_value TSRMLS_DC) /* {{{ */
{
spl_filesystem_object *intern;
zval *arg1;
zend_error_handling error_handling;
if (!file_path || !file_pa... | null | CWE-190 | CVE-2016-5770 | megavul | [
"CWE-190"
] | CWE-190 | 3 | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
erlang/otp | f74cdcfa2967a946f5e9e4de4c5c2fb9def31f84 | 1 | PCRE_EXP_DEFN pcre * PCRE_CALL_CONVENTION
erts_pcre_compile2(const char *pattern, int options, int *errorcodeptr,
const char **errorptr, int *erroroffset, const unsigned char *tables)
#else
PCRE_EXP_DEFN pcre * PCRE_CALL_CONVENTION
pcre_compile2(const char *pattern, int options, int *errorcodeptr,
const char **erro... | null | CWE-119 | CVE-2016-10253 | megavul | [
"CWE-119"
] | CWE-119 | 4 | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
openssl | 103b171d8fc282ef435f8de9afbf7782e312961f | 1 | static int
dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority)
{
DTLS1_RECORD_DATA *rdata;
pitem *item;
/* Limit the size of the queue to prevent DOS attacks */
if (pqueue_size(queue->q) >= 100)
return 0;
rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA));
item = pitem_new(priority, rda... | null | CWE-119 | CVE-2015-0206 | megavul | [
"CWE-119"
] | CWE-119 | 4 | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
ffmpeg | 673fce6d40d9a594fb7a0ea17d296b7d3d9ea856 | 1 | static av_cold void uninit(AVFilterContext *ctx)
{
TileContext *tile = ctx->priv;
av_frame_free(&tile->out_ref);
av_frame_free(&tile->prev_out_ref);
} | null | CWE-401 | CVE-2020-22051 | megavul | [
"CWE-401"
] | CWE-401 | 18 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
GNOME/glib | ade71fb544391b2e33e1859645726bfee0d5eaaf | 1 | GVariant *
g_variant_get_child_value (GVariant *value,
gsize index_)
{
g_return_val_if_fail (index_ < g_variant_n_children (value), NULL);
g_return_val_if_fail (value->depth < G_MAXSIZE, NULL);
if (~g_atomic_int_get (&value->state) & STATE_SERIALISED)
{
g_variant_lock (va... | null | CWE-502 | CVE-2023-32665 | megavul | [
"CWE-502"
] | CWE-502 | 86 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
FreeRDP | 6ade7b4cbfd71c54b3d724e8f2d6ac76a58e879a | 0 | BOOL license_read_binary_blob(wStream* s, LICENSE_BLOB* blob)
{
UINT16 wBlobType;
if (Stream_GetRemainingLength(s) < 4)
return FALSE;
Stream_Read_UINT16(s, wBlobType); /* wBlobType (2 bytes) */
Stream_Read_UINT16(s, blob->length); /* wBlobLen (2 bytes) */
if (Stream_GetRemainingLength(s) < blob->length)
... | 125,320 | null | null | crossvul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
wireshark | 086003c9d616906e08bbeeab9c17b3aa4c6ff850 | 0 | static int
dissect_lte_rrc_SystemInformationBlockType1_v1250_IEs(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
ett_lte_rrc_SystemInformationBlockType1_v1250_IEs, Sys... | null | null | null | megavul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
libgcrypt | 88e1358962e902ff1cbec8d53ba3eee46407851a | 0 | montgomery_ladder (mpi_point_t prd, mpi_point_t sum,
mpi_point_t p1, mpi_point_t p2, gcry_mpi_t dif_x,
mpi_ec_t ctx)
{
ec_addm (sum->x, p2->x, p2->z, ctx);
ec_subm (p2->z, p2->x, p2->z, ctx);
ec_addm (prd->x, p1->x, p1->z, ctx);
ec_subm (p1->z, p1->x, p1->z, ctx);
ec_mulm... | null | null | null | diversevul | [] | null | -1 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | false | 0_0 |
optee_os | 34a08bec755670ea0490cb53bbc68058cafc69b6 | 1 | TEE_Result syscall_authenc_init(unsigned long state, const void *nonce,
size_t nonce_len, size_t tag_len,
size_t aad_len, size_t payload_len)
{
TEE_Result res;
struct tee_cryp_state *cs;
struct tee_ta_session *sess;
struct tee_obj *o;
struct tee_cryp_obj_secret *key;
res = tee_ta_get_current_session(&sess)... | 5,211 | CWE-Noinfo | null | cvefixes | [
"CWE-Noinfo"
] | CWE-Noinfo | 20 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
linux | f26967b9f7a830e228bb13fb41bd516ddd9d789d | 1 | int log_replay(struct ntfs_inode *ni, bool *initialized)
{
int err;
struct ntfs_sb_info *sbi = ni->mi.sbi;
struct ntfs_log *log;
struct restart_info rst_info, rst_info2;
u64 rec_lsn, ra_lsn, checkpt_lsn = 0, rlsn = 0;
struct ATTR_NAME_ENTRY *attr_names = NULL;
struct ATTR_NAME_ENTRY *ane;
struct RESTART_TABLE ... | null | CWE-416 | null | diversevul | [
"CWE-416"
] | CWE-416 | 16 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | true | 1_1 |
VulnBridge
VulnBridge is a unified function-level benchmark for software vulnerability detection and CWE classification. It integrates seven public C/C++ vulnerability datasets under a common schema, applies function-level deduplication, normalizes binary and CWE labels, derives frequency-based Top-K CWE variants, and provides fixed stratified train/validation/test splits.
The benchmark is designed for two tasks:
- Binary vulnerability detection: predict whether a function is vulnerable.
- CWE classification: predict the CWE weakness category for CWE-annotated vulnerable functions.
Dataset Summary
After unification and deduplication, VulnBridge contains 744,650 functions, 52,936 vulnerable functions, 333 CWE types, and 7,749 CVEs. The public modeling variants are:
| Variant | Train | Validation | Test | Total | #CWE | Vulnerable % | Head coverage % | Shrink vs Full % |
|---|---|---|---|---|---|---|---|---|
| Top-10 | 36,088 | 4,511 | 4,511 | 45,110 | 10 | 39.6 | 60.5 | 20.0 |
| Top-20 | 40,468 | 5,058 | 5,059 | 50,585 | 20 | 46.1 | 79.5 | 10.3 |
| Top-50 | 43,740 | 5,467 | 5,468 | 54,675 | 50 | 50.2 | 93.9 | 3.0 |
| Full | 45,100 | 5,638 | 5,638 | 56,376 | 174 | 51.7 | N/A | 0.0 |
Repository Files
The Hugging Face repository uses one directory per VulnBridge variant:
| Variant | Train | Validation | Test | CWE mapping |
|---|---|---|---|---|
| Top-10 | top10/top10_train.jsonl |
top10/top10_val.jsonl |
top10/top10_test.jsonl |
top10/top10_mapping |
| Top-20 | top20/top20_train.jsonl |
top20/top20_val.jsonl |
top20/top20_test.jsonl |
top20/top20_mapping |
| Top-50 | top50/top50_train.jsonl |
top50/top50_val.jsonl |
top50/top50_test.jsonl |
top50/top50_mapping |
| Full | full/full_train.jsonl |
full/full_val.jsonl |
full/full_test.jsonl |
full/full_mapping |
Source Datasets
VulnBridge is constructed from the following public function-level vulnerability sources:
| Dataset | Year | Functions | Vulnerable | Vulnerable % | Vulnerable with CWE | #CWE | #CVE | Language |
|---|---|---|---|---|---|---|---|---|
| Devign | 2019 | 26,037 | 11,888 | 45.7 | N/A | N/A | N/A | C/C++ |
| ReVeal | 2020 | 18,169 | 1,664 | 9.2 | N/A | N/A | N/A | C/C++ |
| CrossVul | 2023 | 134,126 | 6,884 | 5.1 | 6,833 | 107 | 224 | C/C++ |
| CVEfixes | 2022 | 168,089 | 8,932 | 5.3 | 8,343 | 121 | 104 | C/C++ |
| BigVul | 2020 | 264,919 | 11,823 | 4.5 | 8,783 | 91 | 181 | C/C++ |
| MegaVul | 2024 | 353,873 | 11,557 | 3.3 | 11,556 | 312 | 5,620 | C/C++ |
| DiverseVul | 2023 | 523,956 | 41,377 | 7.9 | 22,382 | 155 | 2,336 | C/C++ |
| VulnBridge | 2026 | 744,650 | 52,936 | 7.1 | 28,188 | 333 | 7,749 | C/C++ |
Data Format
Each split is distributed as JSON Lines using the folder and file names listed above. A typical record has the following fields:
{
"id": "top20_train_000001",
"func": "int example(...) { ... }",
"label_bin": 1,
"CWE": ["CWE-787"],
"CWE_multiclass": "CWE-787",
"label_cwe_multiclass": 0,
"source": "BigVul",
"cve": "CVE-XXXX-YYYY"
}
Recommended fields:
| Field | Type | Description |
|---|---|---|
id |
string | Stable sample identifier. |
func |
string | Function-level C/C++ source code. |
label_bin |
integer | Binary vulnerability label: 1 vulnerable, 0 non-vulnerable. |
CWE |
list[string] or null | Original normalized CWE label(s), when available. |
CWE_multiclass |
string or null | Selected single CWE class for multiclass classification. |
label_cwe_multiclass |
integer | Integer class id for CWE classification; use -1 when unavailable or ignored. |
source |
string | Original source dataset name. |
cve |
string or null | CVE identifier when available. |
For CWE classification, samples with label_cwe_multiclass = -1 should be
ignored in the CWE loss and CWE metrics, while they may still be used for binary
vulnerability detection.
Loading the Dataset
The dataset repository is AnnyNguyen/VulnBridge.
from datasets import load_dataset
dataset = load_dataset("AnnyNguyen/VulnBridge", "top20")
train = dataset["train"]
valid = dataset["validation"]
test = dataset["test"]
print(train[0].keys())
To load a different CWE coverage variant:
top10 = load_dataset("AnnyNguyen/VulnBridge", "top10")
top50 = load_dataset("AnnyNguyen/VulnBridge", "top50")
full = load_dataset("AnnyNguyen/VulnBridge", "full")
Intended Use
VulnBridge is intended for research on:
- Function-level software vulnerability detection.
- CWE weakness classification.
- Benchmarking pre-trained code encoders and source-code classifiers.
- Studying class imbalance, label normalization, deduplication, and long-tail CWE behavior under fixed evaluation splits.
The dataset is not a production vulnerability scanner and should not be used as the sole basis for security decisions.
Construction Pipeline
VulnBridge is built through the following stages:
- Source merging into a common function-level record format.
- Function-level deduplication before splitting to reduce cross-split leakage.
- Binary vulnerability label normalization.
- CWE label normalization into a shared schema.
- Frequency-based Top-K CWE variant construction.
- Fixed stratified 80/10/10 train/validation/test splitting.
Unresolved or inconsistent CWE labels are excluded from CWE training and evaluation but retain their binary vulnerability labels.
Limitations
- The benchmark currently covers C/C++ functions only.
- CWE labels are inherited from public vulnerability datasets and may contain residual source-label noise.
- Function-level deduplication reduces but cannot fully eliminate all semantic overlap or labeling inconsistencies.
- CWE labels are long-tailed; macro-averaged metrics should be reported alongside accuracy.
Ethical and Security Considerations
The dataset contains source code associated with software vulnerabilities. It is released for defensive research, benchmarking, and reproducibility. Users should respect the licenses and terms of the upstream datasets and avoid using the data to facilitate harmful exploitation.
Citation
If you use VulnBridge, please cite:
@inproceedings{nguyen2026vulnbridge,
title = {VulnBridge: A Unified Function-Level Benchmark for Vulnerability Detection and CWE Classification},
author = {Nguyen, Anh Thi-Hoang and Nguyen, Dung Ha and Cam, Nguyen Tan},
booktitle = {Proceedings of ISWTA 2026},
year = {2026}
}
License
This benchmark is derived from multiple public datasets. Before public release, please verify redistribution rights and license compatibility for every upstream source. If in doubt, publish only normalized metadata, splits, and scripts, and provide instructions for users to reconstruct the dataset from the upstream sources.
- Downloads last month
- -