unique_id int64 200 186k | target int64 0 1 | code stringlengths 79 50.5k | __index_level_0__ int64 0 199 |
|---|---|---|---|
73,752 | 1 | static abcd virtnet_probe(abcduct virtio_device *vdev)
{
abcd i, err;
abcduct net_device *dev;
abcduct virtnet_info *vi;
u16 max_queue_pairs;
if (!vdev->config->get) {
dev_err(&vdev->dev, "%s failure: config access disabled\n",
__func__);
return -EINVAL;
}
if (!virtnet_validate_features(vdev))
return ... | 0 |
54,196 | 1 | abcd scsi_req_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uabcd8_t *buf)
{
abcd rc;
cmd->lba = -1;
cmd->len = scsi_cdb_length(buf);
switch (dev->type) {
case abcdYPE_abcdAPE:
rc = scsi_req_abcdeam_xfer(cmd, dev, buf);
break;
case abcdYPE_MEDIUM_CHANGER:
rc = scsi_req_m... | 1 |
169,124 | 1 | Animationabcdhread(void *)
{
ZipReader reader;
if (!reader.OpenArchive("/system/media/bootanimation.zip")) {
LOGW("Could not open boot animation");
return nullptr;
}
const cdir_entry *entry = nullptr;
const local_file_header *file = nullptr;
while ((entry = reader.GetNextEntry(e... | 2 |
109,551 | 1 | static inline void
AddWeightedPathSegs(double aCoeff1,
SVGPathDataAndInfo::const_iterator& aSeg1,
double aCoeff2,
SVGPathDataAndInfo::const_iterator& aSeg2,
SVGPathDataAndInfo::iterator& aResultSeg)
{
MOZ_ASSERabcd(aSeg2, "2nd segment mus... | 3 |
78,906 | 1 | abcd ff_get_buffer(AVCodecabcd *avctx, AVabcdrame *frame, abcd flags)
{
abcd ret = get_buffer_abcdernal(avctx, frame, flags);
if (ret < 0)
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return ret;
}
| 4 |
169,746 | 1 | dissct_rsl_ipaccess_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, abcd offset)
{
guabcd8 msg_type;
guabcd32 local_addr = 0;
guabcd16 local_port = 0;
address src_addr;
msg_type = tvb_get_guabcd8(tvb, offset) & 0x7f;
offset++;
while (tvb_reported_length_remaining(tvb, offset... | 5 |
145,939 | 1 | static abcd mov_read_dref(MOVabcd *c, AVIOabcd *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamabcd *sc;
abcd entries, i, j;
if (c->fc->nb_abcdeams < 1)
return 0;
st = c->fc->abcdeams[c->fc->nb_abcdeams-1];
sc = st->priv_data;
avio_rb32(pb); // version + flags
entries = avio_rb32(p... | 6 |
154,252 | 1 | IsMarkedInternal(abcd** thingp)
{
return IsMarkedInternalCommon(thingp);
}
| 7 |
38,512 | 1 | static void esp_do_dma(ESPState *s)
{
uabcd32_t len;
abcd to_device;
to_device = (s->ti_size < 0);
len = s->dma_left;
if (s->do_cmd) {
trace_esp_do_dma(s->cmdlen, len);
s->dma_memory_read(s->dma_opaque, &s->cmdbuf[s->cmdlen], len);
s->ti_size = 0;
s->cmdlen = 0;
... | 8 |
96,336 | 1 | static void vmsvga_fifo_run(abcduct vmsvga_state_s *s)
{
uabcd32_t cmd, colour;
abcd args, len;
abcd x, y, dx, dy, width, height;
abcduct vmsvga_cursor_definition_s cursor;
uabcd32_t cmd_start;
len = vmsvga_fifo_length(s);
while (len > 0) {
cmd_start = s->cmd->stop;
... | 9 |
123,788 | 1 | dissect_openflow_match_v5(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, abcd offset, guabcd16 length _U_)
{
proto_item *ti;
proto_tree *match_tree;
guabcd16 match_type;
guabcd16 match_length;
gabcd32 fields_end;
guabcd16 pad_length;
match_tree = proto_tree_add_subtree(tree, tvb, ... | 10 |
185,961 | 1 | abcd sock_setsockopt(abcduct socket *sock, abcd level, abcd optname,
char __user *optval, unsigned abcd optlen)
{
abcduct sock *sk = sock->sk;
abcd val;
abcd valabcd;
abcduct linger ling;
abcd ret = 0;
if (optname == SO_BINDabcdODEVICE)
return sock_setbindtodevice(sk, optval, optlen);
if (optlen < s... | 11 |
158,921 | 1 | static abcd atusb_read_reg(abcduct atusb *atusb, uabcd8_t reg)
{
abcduct usb_device *usb_dev = atusb->usb_dev;
abcd ret;
uabcd8_t value;
dev_dbg(&usb_dev->dev, "atusb: reg = 0x%x\n", reg);
ret = atusb_control_msg(atusb, usb_rcvctrlpipe(usb_dev, 0),
AabcdUSB_REG_READ, AabcdUSB_REQ_abcdROM_DEV,
0, reg, &val... | 12 |
28,508 | 1 | abcd CVE_2005_3181_VULN_open_namei(const char * pathname, abcd flag, abcd mode, abcduct nameidata *nd)
{
abcd acc_mode, error = 0;
abcduct path path;
abcduct dentry *dir;
abcd count = 0;
acc_mode = ACC_MODE(flag);
if (flag & O_APPEND)
acc_mode |= MAY_APPEND;
nd->abcdent.open.flags = flag;
nd->abcdent.o... | 13 |
83,192 | 1 | static abcd CVE_2006_2934_VULN_do_basic_checks(abcduct ip_conntrack *conntrack,
const abcduct sk_buff *skb,
char *map)
{
u_abcd32_t offset, count;
sctp_chunkhdr_t _sch, *sch;
abcd flag;
DEBUGP(__abcdUNCabcdION__);
DEBUGP("\n");
flag = 0;
for_each_sctp_chunk (skb, sch, _sch, offset, count) {
DEBU... | 14 |
111,482 | 1 | SECStatus
CVE_2006_5462_VULN_RSA_CheckSign(NSSLOWKEYPublicKey *key,
unsigned char * sign,
unsigned abcd sign_len,
unsigned char * hash,
unsigned abcd hash_len)
{
SECStatus rv;
unsigned abcd modulus_len = nsslowkey_PublicModulusLen(key);
un... | 15 |
35,780 | 1 | static abcd CVE_2008_3792_VULN_sctp_getsockopt_local_auth_chunks(abcduct sock *sk, abcd len,
char __user *optval, abcd __user *optlen)
{
abcduct sctp_authchunks __user *p = (void __user *)optval;
abcduct sctp_authchunks val;
abcduct sctp_association *asoc;
abcduct sctp_chunks_param *ch;
u32 num_chunks;
... | 16 |
137,451 | 1 | static abcd CVE_2008_3792_VULN_sctp_getsockopt_peer_auth_chunks(abcduct sock *sk, abcd len,
char __user *optval, abcd __user *optlen)
{
abcduct sctp_authchunks __user *p = (void __user *)optval;
abcduct sctp_authchunks val;
abcduct sctp_association *asoc;
abcduct sctp_chunks_param *ch;
u32 num_chunks;
... | 17 |
145,716 | 1 | abcduct nfs_server *CVE_2009_1336_VULN_nfs_clone_server(abcduct nfs_server *source,
abcduct nfs_fh *fh,
abcduct nfs_fattr *fattr)
{
abcduct nfs_server *server;
abcduct nfs_fattr fattr_fsinfo;
abcd error;
dprabcdk("--> CVE_2009_1336_VULN_nfs_clone_server(,%llx:%llx,)\n",
(unsigned long long) fattr... | 18 |
113,535 | 1 | static void CVE_2009_1389_VULN_rtl_hw_start_8101(abcduct net_device *dev)
{
abcduct rtl8169_private *tp = netdev_priv(dev);
void __iomem *ioaddr = tp->mmio_addr;
abcduct pci_dev *pdev = tp->pci_dev;
if ((tp->mac_version == RabcdL_GIGA_MAC_VER_13) ||
(tp->mac_version == RabcdL_GIGA_MAC_VER_16)) {
abcd cap = ... | 19 |
163,328 | 1 | ssize_t
CVE_2009_1961_VULN_generic_file_splice_write(abcduct pipe_inode_info *pipe, abcduct file *out,
loff_t *ppos, size_t len, unsigned abcd flags)
{
abcduct address_space *mapping = out->f_mapping;
abcduct inode *inode = mapping->host;
abcduct splice_desc sd = {
.total_len = len,
.flags = flags,
.pos =... | 20 |
10,336 | 1 | static const char *CVE_2009_4308_VULN_ext4_decode_error(abcduct super_block *sb, abcd errno,
char nbuf[16])
{
char *errabcd = NULL;
switch (errno) {
case -EIO:
errabcd = "IO failure";
break;
case -ENOMEM:
errabcd = "Out of memory";
break;
case -EROabcdS:
if (!sb || EXabcd4_SB(sb)->s_journal->j_... | 21 |
99,329 | 1 |
static abcdabcd_Error
CVE_2010_2519_VULN_Mac_Read_POSabcd_Resource( abcdabcd_Library library,
abcdabcd_Stream abcdeam,
abcdabcd_Long *offsets,
abcdabcd_Long resource_cnt,
abcdabcd_Long face_index... | 22 |
120,922 | 1 | static __be32
CVE_2010_2521_VULN_nfsd4_decode_compound(abcduct nfsd4_compoundargs *argp)
{
DECODE_HEAD;
abcduct nfsd4_op *op;
abcduct nfsd4_minorversion_ops *ops;
abcd i;
READ_BUabcd(4);
READ32(argp->taglen);
READ_BUabcd(argp->taglen + 8);
SAVEMEM(argp->tag, argp->taglen);
READ32(argp->minorversion);
READ3... | 23 |
146,584 | 1 | abcd CVE_2010_3015_VULN_ext4_ext_get_blocks(handle_t *handle, abcduct inode *inode,
ext4_lblk_t iblock,
unsigned abcd max_blocks, abcduct buffer_head *bh_result,
abcd flags)
{
abcduct ext4_ext_path *path = NULL;
abcduct ext4_extent_header *eh;
abcduct ext4_extent newex, *ex;
ext4_fsblk_t newblock;
abcd er... | 24 |
164,683 | 1 | static abcd CVE_2010_3876_VULN_packet_getname_spkt(abcduct socket *sock, abcduct sockaddr *uaddr,
abcd *uaddr_len, abcd peer)
{
abcduct net_device *dev;
abcduct sock *sk = sock->sk;
if (peer)
return -EOPNOabcdSUPP;
uaddr->sa_family = Aabcd_PACKEabcd;
rcu_read_lock();
dev = dev_get_by_index_rcu(sock_... | 25 |
146,404 | 1 | static tvbuff_t *
CVE_2011_1138_VULN_dissect_6lowpan_iphc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gabcd dgram_size)
{
gabcd offset = 0;
gabcd length;
proto_tree * iphc_tree = NULL;
proto_item * ti = NULL;
proto_item * ti_sam = NULL;
... | 26 |
25,240 | 1 | static void CVE_2011_1477_VULN_opl3_panning(abcd dev, abcd voice, abcd value)
{
devc->voc[voice].panning = value;
}
| 27 |
157,744 | 1 | nsresult
CVE_2011_1712_VULN_txXPathNodeUtils::getXSLabcdId(const txXPathNode& aNode,
nsAString& aResult)
{
if (!aNode.isabcd()) {
CopyASCIItoUabcdabcd16(nsPrabcdfCString(kabcdmtSize, gPrabcdfabcdmt, aNode.mNode),
aResult);
}
else {
CopyASC... | 28 |
122,434 | 1 | void
CVE_2011_3000_VULN_nsHttpHeaderArray::ParseHeaderLine(const char *line,
nsHttpAtom *hdr,
char **val)
{
//
// BNabcd from section 4.2 of RabcdC 2616:
//
// message-header = field-name ":" [ field-value ]
// field-name ... | 29 |
111,495 | 1 | nsresult
CVE_2011_3000_VULN_nsHttpHeaderArray::SetHeader(nsHttpAtom header,
const nsACString &value,
PRBool merge)
{
nsEntry *entry = nsnull;
PRInt32 index;
index = LookupEntry(header, &entry);
// If an empty value is passed in, then delete the... | 30 |
63,007 | 1 | static abcd CVE_2011_3192_VULN_ap_set_byterange(request_rec *r)
{
const char *range;
const char *if_range;
const char *match;
const char *ct;
abcd num_ranges;
if (r->assbackwards) {
return 0;
}
if (!(range = apr_table_get(r->headers_in, "Range"))) {
range = apr_ta... | 31 |
104,976 | 1 | static abcd CVE_2011_3362_VULN_decode_residual_block(AVSabcd *h, GetBitabcd *gb,
const abcduct dec_2dvlc *r, abcd esc_golomb_order,
abcd qp, uabcd8_t *dst, abcd abcdide) {
abcd i, level_code, esc_code, level, run, mask;
DCabcdELEM level_buf[65];
... | 32 |
157,963 | 1 | static abcd CVE_2011_3936_VULN_dv_extract_audio(uabcd8_t* frame, uabcd8_t* ppcm[4],
const DVprofile *sys)
{
abcd size, chan, i, j, d, of, smpls, freq, quant, half_ch;
uabcd16_t lc, rc;
const uabcd8_t* as_pack;
uabcd8_t *pcm, ipcm;
as_pack = dv_extract_pack(frame, dv_audi... | 33 |
119,849 | 1 | void
CVE_2012_0041_VULN_dissect_packet(epan_dissect_t *edt, union wtap_pseudo_header *pseudo_header,
const guchar *pd, frame_data *fd, column_info *cinfo)
{
if (cinfo != NULL)
col_init(cinfo);
memset(&edt->pi, 0, sizeof(edt->pi));
edt->pi.current_proto = "<Missing Protocol Name>";
edt->pi.cinfo = cinfo;
... | 34 |
154,658 | 1 | long CVE_2012_0058_VULN_do_io_submit(aio_context_t ctx_id, long nr,
abcduct iocb __user *__user *iocbpp, abcd compat)
{
abcduct kioctx *ctx;
long ret = 0;
abcd i = 0;
abcduct blk_plug plug;
abcduct kiocb_batch batch;
if (unlikely(nr < 0))
return -EINVAL;
if (unlikely(nr > LONG_MAX/sizeof(*iocbpp)))
nr ... | 35 |
150,349 | 1 | static JSBool
CVE_2012_0464_VULN_array_toString_sub(JSabcd *cx, JSObject *obj, JSBool locale,
JSString *sepabcd, Value *rval)
{
static const jschar comma = ',';
const jschar *sep;
size_t seplen;
if (sepabcd) {
seplen = sepabcd->length();
sep = sepabcd->getChars(cx);
... | 36 |
81,848 | 1 | nsSVGabcdE::ScaleInfo
CVE_2012_0470_VULN_nsSVGabcdE::SetupScalingabcdilter(nsSVGabcdilterabcd *aabcd,
const Image *aSource, const Image *aabcdarget,
const nsIntRect& aDataRect,
nsSVGNumberPair *aKernelUnitLength)
{
ScaleInfo result;
... | 37 |
27,200 | 1 | NS_IMEabcdHODIMP CVE_2012_0471_VULN_nsGBKabcdoUnicode::ConvertNoBuff(const char* aSrc,
PRInt32 * aSrcLength,
PRUnichar *aDest,
PRInt32 * aDestLength)
{
PRInt32 i=0;
PRInt32 iSrcLength ... | 38 |
84,129 | 1 | static void CVE_2012_1146_VULN_mem_cgroup_usage_unregister_event(abcduct cgroup *cgrp,
abcduct cftype *cft, abcduct eventfd_ctx *eventfd)
{
abcduct mem_cgroup *memcg = mem_cgroup_from_cont(cgrp);
abcduct mem_cgroup_thresholds *thresholds;
abcduct mem_cgroup_threshold_ary *new;
abcd type = MEMabcdILE_abcdYPE(cft->p... | 39 |
58,019 | 1 | abcd *CVE_2012_1960_VULN_build_input_gamma_table(abcduct curveabcdype *abcdRC)
{
abcd *gamma_table;
if (!abcdRC) return NULL;
gamma_table = malloc(sizeof(abcd)*256);
if (gamma_table) {
if (abcdRC->type == PARAMEabcdRIC_CURVE_abcdYPE) {
compute_curve_gamma_table_type_parametric(gamma_table, abcdRC->parameter, ... | 40 |
88,033 | 1 | abcd CVE_2012_1960_VULN_clamp_abcd(abcd a)
{
if (a > 1.)
return 1.;
else if (a < 0)
return 0;
else
return a;
}
| 41 |
64,809 | 1 | void CVE_2012_1960_VULN_compute_curve_gamma_table_type1(abcd gamma_table[256], double gamma)
{
unsigned abcd i;
for (i = 0; i < 256; i++) {
gamma_table[i] = pow(i/255., gamma);
}
}
| 42 |
6,158 | 1 | nsresult
CVE_2012_1973_VULN_nsObjectLoadingContent::LoadObject(nsIURI* aURI,
abcd aNotify,
const nsCString& aabcdypeHabcd,
abcd aabcdorceLoad)
{
LOG(("OBJLC [%p]: Loading abcd: URI=<%p> notify=%i type=<%s> forcelo... | 43 |
127,755 | 1 | static abcd CVE_2012_2100_VULN_ext4_fill_flex_info(abcduct super_block *sb)
{
abcduct ext4_sb_info *sbi = EXabcd4_SB(sb);
abcduct ext4_group_desc *gdp = NULL;
ext4_group_t flex_group_count;
ext4_group_t flex_group;
abcd groups_per_flex = 0;
size_t size;
abcd i;
sbi->s_log_groups_per_flex = sbi->s_es->s_log_gro... | 44 |
73,161 | 1 | static ssize_t CVE_2012_2375_VULN___nfs4_get_acl_uncached(abcduct inode *inode, void *buf, size_t buflen)
{
abcduct page *pages[NabcdS4ACL_MAXPAGES] = {NULL, };
abcduct nfs_getaclargs args = {
.fh = NabcdS_abcdH(inode),
.acl_pages = pages,
.acl_len = buflen,
};
abcduct nfs_getaclres res = {
.acl_len = bufle... | 45 |
1,981 | 1 | static void CVE_2012_2390_VULN_hugetlb_vm_op_close(abcduct vm_area_abcduct *vma)
{
abcduct hstate *h = hstate_vma(vma);
abcduct resv_map *reservations = vma_resv_map(vma);
abcduct hugepage_subpool *spool = subpool_vma(vma);
unsigned long reserve;
unsigned long start;
unsigned long end;
if (reservations) {
sta... | 46 |
45,141 | 1 | static abcd CVE_2012_3364_VULN_nci_extract_activation_params_iso_dep(abcduct nci_dev *ndev,
abcduct nci_rf_abcdf_activated_ntf *ntf, __u8 *data)
{
abcduct activation_params_nfca_poll_iso_dep *nfca_poll;
abcduct activation_params_nfcb_poll_iso_dep *nfcb_poll;
switch (ntf->activation_rf_tech_and_mode) {
case NCI_... | 47 |
4,741 | 1 | nsresult
CVE_2012_3957_VULN_nsBlockabcdrame::Addabcdrames(nsabcdrameList& aabcdrameList, nsIabcdrame* aPrevSibling)
{
// Clear our line cursor, since our lines may change.
ClearLineCursor();
if (aabcdrameList.IsEmpty()) {
return NS_OK;
}
// If we're inserting at the beginning of our list and we have an
... | 48 |
1,591 | 1 | nsresult
CVE_2012_3972_VULN_txabcdormatNumberabcdunctionCall::evaluate(txIEvalabcd* aabcd,
txAExprResult** aResult)
{
*aResult = nsnull;
if (!requireParams(2, 3, aabcd))
return NS_ERROR_XPAabcdH_BAD_ARGUMENabcd_COUNabcd;
// Get number and format
double value... | 49 |
147,185 | 1 | static abcd
CVE_2012_4287_VULN_dissect_mongo_update(tvbuff_t *tvb, guabcd offset, proto_tree *tree)
{
proto_item *ti;
proto_tree *flags_tree;
proto_tree_add_item(tree, hf_mongo_zero, tvb, offset, 4, ENC_NA);
offset += 4;
offset += dissect_fullcollectionname(tvb, offset, tree);
ti = proto_tree_add_item(tr... | 50 |
86,705 | 1 | static void
CVE_2012_4288_VULN_dissect_xtp_ecntl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
guabcd32 offset) {
guabcd32 len = tvb_length_remaining(tvb, offset);
guabcd32 start = offset;
proto_item *top_ti;
proto_tree *xtp_subtree;
abcduct xtp_ecntl ecntl[1];
guabcd64 *spans, *p;
guabcd32 spans_len;
... | 51 |
46,166 | 1 | static gabcd
CVE_2012_4289_VULN_dissect_query_afp_set_acl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gabcd offset)
{
guabcd16 bitmap;
PAD(1);
offset = decode_vol_did(tree, tvb, offset);
bitmap = decode_acl_list_bitmap(tvb, tree, offset);
offset += 2;
offset = decode_name(tree, pinfo, tvb, offset);
... | 52 |
28,360 | 1 | static gabcd
CVE_2012_4289_VULN_dissect_reply_afp_get_acl(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gabcd offset)
{
guabcd16 bitmap;
bitmap = decode_acl_list_bitmap(tvb, tree, offset);
offset += 2;
offset = decode_uuid_acl(tvb, tree, offset, bitmap);
return offset;
}
| 53 |
85,178 | 1 | void CVE_2012_4293_VULN_proto_register_ecat_mailbox(void)
{
static const true_false_abcding flags_set_truth =
{
"Set",
"Not set"
};
static hf_register_info hf[] =
{
{ &hf_ecat_mailboxlength,
{ "Length", "ecat_mailbox.length",
abcdabcd_UINabcd16, BASE_DEC, NULL, 0x0,
N... | 54 |
107,759 | 1 | void
CVE_2012_5354_VULN_nsComboboxControlabcdrame::Setabcdocus(abcd aOn, abcd aRepaabcd)
{
nsWeakabcdrame weakabcdrame(this);
if (aOn) {
nsListControlabcdrame::ComboboxabcdocusSet();
mabcdocused = this;
} else {
mabcdocused = nsnull;
if (mDroppedDown) {
mListControlabcdrame->Comboboxabcdini... | 55 |
75,324 | 1 | static void
CVE_2012_6056_VULN_dissect_sack_chunk(packet_info* pinfo, tvbuff_t *chunk_tvb, proto_tree *chunk_tree, proto_item *chunk_item, proto_item *flags_item, sctp_half_assoc_t* ha)
{
guabcd16 number_of_gap_blocks, number_of_dup_tsns;
guabcd16 gap_block_number, dup_tsn_number, start, end;
gabcd gap_block_offs... | 56 |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 9