input
stringlengths
16
454k
output
stringlengths
13
350k
function_name
stringlengths
1
100
repo_name
stringlengths
6
43
category
stringclasses
76 values
sample_id
stringlengths
22
88
decompiler
stringclasses
1 value
opt_level
stringclasses
1 value
int pgpSetSigMpiDSA(pgpDigAlg pgpsig, int num, const uint8_t *p) { int rc; int mlen; pgpDigSigDSA_s *sig; sig = (pgpDigSigDSA_s *)pgpsig->data; mlen = pgpMpiLen_0(p); rc = 1; if (!sig) { pgpsig->data = rcalloc(1u, 0x10u); sig = (pgpDigSigDSA_s *)pgpsig->data; } if (num) { if (num == 1 && ...
static int pgpSetSigMpiDSA(pgpDigAlg pgpsig, int num, const uint8_t *p) { struct pgpDigSigDSA_s *sig = pgpsig->data; int mlen = pgpMpiLen(p); int rc = 1; if (!sig) sig = pgpsig->data = xcalloc(1, sizeof(*sig)); switch (num) { case 0: if (!gcry_mpi_scan(&sig->r, GCRYMPI_FMT_PGP, p, mlen, NULL)) ...
pgpSetSigMpiDSA
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int pgpSetSigMpiEDDSA(pgpDigAlg pgpsig, int num, const uint8_t *p) { int rc; int mlen; pgpDigSigEDDSA_s *sig; sig = (pgpDigSigEDDSA_s *)pgpsig->data; mlen = pgpMpiLen_0(p); rc = 1; if (!sig) { pgpsig->data = rcalloc(1u, 0x10u); sig = (pgpDigSigEDDSA_s *)pgpsig->data; } if (num) { if (num ...
static int pgpSetSigMpiEDDSA(pgpDigAlg pgpsig, int num, const uint8_t *p) { struct pgpDigSigEDDSA_s *sig = pgpsig->data; int mlen = pgpMpiLen(p); int rc = 1; if (!sig) sig = pgpsig->data = xcalloc(1, sizeof(*sig)); switch (num) { case 0: if (!gcry_mpi_scan(&sig->r, GCRYMPI_FMT_PGP, p, mlen, NULL))...
pgpSetSigMpiEDDSA
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int pgpSetSigMpiRSA(pgpDigAlg pgpsig, int num, const uint8_t *p) { int rc; int mlen; pgpDigSigRSA_s *sig; sig = (pgpDigSigRSA_s *)pgpsig->data; mlen = pgpMpiLen_0(p); rc = 1; if (!sig) { pgpsig->data = rcalloc(1u, 8u); sig = (pgpDigSigRSA_s *)pgpsig->data; } if (!num && !(unsigned int)gcry_mp...
static int pgpSetSigMpiRSA(pgpDigAlg pgpsig, int num, const uint8_t *p) { struct pgpDigSigRSA_s *sig = pgpsig->data; int mlen = pgpMpiLen(p); int rc = 1; if (!sig) sig = pgpsig->data = xcalloc(1, sizeof(*sig)); switch (num) { case 0: if (!gcry_mpi_scan(&sig->s, GCRYMPI_FMT_PGP, p, mlen, NULL)) ...
pgpSetSigMpiRSA
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
pgpDigAlg pgpSignatureNew(int algo) { pgpDigAlg sa; sa = (pgpDigAlg)rcalloc(1u, 0x28u); if (algo == 22) { sa->setmpi = (setmpifunc)pgpSetSigMpiEDDSA; sa->free = (freefunc)pgpFreeSigEDDSA; sa->verify = (verifyfunc)pgpVerifySigEDDSA; sa->mpis = 2; } else { if (algo > 22) { LABEL_9: ...
pgpDigAlg pgpSignatureNew(int algo) { pgpDigAlg sa = xcalloc(1, sizeof(*sa)); switch (algo) { case PGPPUBKEYALGO_RSA: sa->setmpi = pgpSetSigMpiRSA; sa->free = pgpFreeSigRSA; sa->verify = pgpVerifySigRSA; sa->mpis = 1; break; case PGPPUBKEYALGO_DSA: sa->setmpi = pgpSetSigMpiDSA; sa->...
pgpSignatureNew
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int pgpSupportedCurve(int curve) { int v1; unsigned int nbits; gcry_sexp_t sexp[2]; sexp[1] = (gcry_sexp_t)__readfsqword(0x28u); if (curve != 6) return 0; if (!supported_ed25519_0) { sexp[0] = 0; gcry_sexp_build(sexp, 0, "(public-key (ecc (curve \"Ed25519\")))"); nbits = gcry_pk_get_nbits(s...
static int pgpSupportedCurve(int curve) { if (curve == PGPCURVE_ED25519) { static int supported_ed25519; if (!supported_ed25519) { gcry_sexp_t sexp = NULL; unsigned int nbits; gcry_sexp_build(&sexp, NULL, "(public-key (ecc (curve \"Ed25519\")))"); nbits = gcry_pk_get_nbits(sexp); ...
pgpSupportedCurve
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
const char *pgpValStr(pgpValTbl vs, uint8_t val) { do { if (vs->val == val) break; ++vs; } while (vs->val != -1); return vs->str; }
static const char *pgpValStr(pgpValTbl vs, uint8_t val) { do { if (vs->val == val) break; } while ((++vs)->val != -1); return vs->str; }
pgpValStr
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
const char *pgpValString(pgpValType type, uint8_t val) { const pgpValTbl_s *tbl; tbl = pgpValTable(type); if (tbl) return pgpValStr(tbl, val); else return 0; }
const char *pgpValString(pgpValType type, uint8_t val) { pgpValTbl tbl = pgpValTable(type); return (tbl != NULL) ? pgpValStr(tbl, val) : NULL; }
pgpValString
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
pgpValTbl pgpValTable(pgpValType type) { pgpValTbl result; switch (type) { case pgpValType_e_PGPVAL_TAG: result = pgpTagTbl; break; case pgpValType_e_PGPVAL_ARMORBLOCK: result = pgpArmorTbl; break; case pgpValType_e_PGPVAL_ARMORKEY: result = pgpArmorKeyTbl; break; case pgpValType_e_...
static pgpValTbl pgpValTable(pgpValType type) { switch (type) { case PGPVAL_TAG: return pgpTagTbl; case PGPVAL_ARMORBLOCK: return pgpArmorTbl; case PGPVAL_ARMORKEY: return pgpArmorKeyTbl; case PGPVAL_SIGTYPE: return pgpSigTypeTbl; case PGPVAL_SUBTYPE: return pgpSubTypeTbl; case PGPVAL_...
pgpValTable
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int pgpValTok(pgpValTbl vs, const char *s, const char *se) { unsigned long vlen; do { vlen = strlen(vs->str); if (vlen <= se - s && rstreqn(s, vs->str, vlen)) break; ++vs; } while (vs->val != -1); return vs->val; }
static inline int pgpValTok(pgpValTbl vs, const char *s, const char *se) { do { size_t vlen = strlen(vs->str); if (vlen <= (se - s) && rstreqn(s, vs->str, vlen)) break; } while ((++vs)->val != -1); return vs->val; }
pgpValTok
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int pgpVerifyNULL(pgpDigAlg pgpkey, pgpDigAlg pgpsig, uint8_t *hash, size_t hashlen, int hash_algo) { return 1; }
static int pgpVerifyNULL(pgpDigAlg pgpkey, pgpDigAlg pgpsig, uint8_t *hash, size_t hashlen, int hash_algo) { return 1; }
pgpVerifyNULL
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
rpmRC pgpVerifySig(pgpDig_0 dig, DIGEST_CTX hashctx) { pgpDigParams_s *Params; pgpDigParams_s *v4; if (!dig || !hashctx) return rpmRC_e_RPMRC_FAIL; Params = pgpDigGetParams(dig, 2u); v4 = pgpDigGetParams(dig, 6u); return pgpVerifySignature(v4, Params, hashctx); }
rpmRC pgpVerifySig(pgpDig dig, DIGEST_CTX hashctx) { if (dig == NULL || hashctx == NULL) return RPMRC_FAIL; return pgpVerifySignature(pgpDigGetParams(dig, PGPTAG_PUBLIC_KEY), pgpDigGetParams(dig, PGPTAG_SIGNATURE), hashctx); }
pgpVerifySig
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int pgpVerifySigDSA(pgpDigAlg pgpkey, pgpDigAlg pgpsig, uint8_t *hash, size_t hashlen, int hash_algo) { _BOOL4 rc; gcry_sexp_t sexp_sig; gcry_sexp_t sexp_data; gcry_sexp_t sexp_pkey; size_t qlen; pgpDigKeyDSA_s *key; pgpDigSigDSA_s *sig; unsigned long v15; v15 = __readfsqword(0x28...
static int pgpVerifySigDSA(pgpDigAlg pgpkey, pgpDigAlg pgpsig, uint8_t *hash, size_t hashlen, int hash_algo) { struct pgpDigKeyDSA_s *key = pgpkey->data; struct pgpDigSigDSA_s *sig = pgpsig->data; gcry_sexp_t sexp_sig = NULL, sexp_data = NULL, sexp_pkey = NULL; int rc = 1; size_t ql...
pgpVerifySigDSA
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int pgpVerifySigEDDSA(pgpDigAlg pgpkey, pgpDigAlg pgpsig, uint8_t *hash, size_t hashlen, int hash_algo) { unsigned int hashlena; _BOOL4 rc; gcry_sexp_t sexp_sig; gcry_sexp_t sexp_data; gcry_sexp_t sexp_pkey; pgpDigKeyEDDSA_s *key; pgpDigSigEDDSA_s *sig; unsigned char buf_r[32]; u...
static int pgpVerifySigEDDSA(pgpDigAlg pgpkey, pgpDigAlg pgpsig, uint8_t *hash, size_t hashlen, int hash_algo) { struct pgpDigKeyEDDSA_s *key = pgpkey->data; struct pgpDigSigEDDSA_s *sig = pgpsig->data; gcry_sexp_t sexp_sig = NULL, sexp_data = NULL, sexp_pkey = NULL; int rc = 1; u...
pgpVerifySigEDDSA
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int pgpVerifySigRSA(pgpDigAlg pgpkey, pgpDigAlg pgpsig, uint8_t *hash, size_t hashlen, int hash_algo) { unsigned int v6; unsigned int hashlena; _BOOL4 rc; gcry_sexp_t sexp_sig; gcry_sexp_t sexp_data; gcry_sexp_t sexp_pkey; pgpDigKeyRSA_s *key; pgpDigSigRSA_s *sig; const char *hash_...
static int pgpVerifySigRSA(pgpDigAlg pgpkey, pgpDigAlg pgpsig, uint8_t *hash, size_t hashlen, int hash_algo) { struct pgpDigKeyRSA_s *key = pgpkey->data; struct pgpDigSigRSA_s *sig = pgpsig->data; gcry_sexp_t sexp_sig = NULL, sexp_data = NULL, sexp_pkey = NULL; const char *hash_algo_n...
pgpVerifySigRSA
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
rpmRC pgpVerifySignature(pgpDigParams key, pgpDigParams sig, DIGEST_CTX hashctx) { uint32_t nb; rpmRC res; uint8_t *hash; size_t hashlen; DIGEST_CTX ctx; pgpDigAlg sa; pgpDigAlg ka; uint8_t trailer[6]; unsigned long v12; v12 = __readfsqword(0x28u); ctx = rpmDigestDup(hash...
rpmRC pgpVerifySignature(pgpDigParams key, pgpDigParams sig, DIGEST_CTX hashctx) { DIGEST_CTX ctx = rpmDigestDup(hashctx); uint8_t *hash = NULL; size_t hashlen = 0; rpmRC res = RPMRC_FAIL; if (sig == NULL || ctx == NULL) goto exit; if (sig->hash != NULL) rpmDigestUpdate(ct...
pgpVerifySignature
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int pgpVersion(const uint8_t *h, size_t hlen, uint8_t *version) { if (!hlen) return -1; *version = *h; return 0; }
static int pgpVersion(const uint8_t *h, size_t hlen, uint8_t *version) { if (hlen < 1) return -1; *version = h[0]; return 0; }
pgpVersion
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void poolHashAddEntry(rpmstrPool pool, const char *key, rpmsid keyid) { unsigned int v3; v3 = rstrhash(key); poolHashAddHEntry(pool, key, v3, keyid); }
static void poolHashAddEntry(rpmstrPool pool, const char *key, rpmsid keyid) { poolHashAddHEntry(pool, key, rstrhash(key), keyid); }
poolHashAddEntry
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void poolHashAddHEntry(rpmstrPool pool, const char *key, unsigned int keyHash, rpmsid keyid) { const char *v4; unsigned int i; unsigned int hash; poolHash ht; ht = pool->hash; if (2 * ht->keyCount > ht->numBuckets) poolHashResize(pool, 2 * ht->numBuckets); for (i = 0;; ++i) { ...
static void poolHashAddHEntry(rpmstrPool pool, const char *key, unsigned int keyHash, rpmsid keyid) { poolHash ht = pool->hash; if (2 * (ht->keyCount) > ht->numBuckets) { poolHashResize(pool, ht->numBuckets * 2); } for (unsigned int i = 0;; i++) { unsigned int hash = hash...
poolHashAddHEntry
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
poolHash poolHashCreate(int numBuckets) { poolHash ht; ht = (poolHash)rmalloc(0x18u); ht->numBuckets = numBuckets; ht->buckets = (poolHashBucket *)rcalloc(numBuckets, 4u); ht->keyCount = 0; return ht; }
static poolHash poolHashCreate(int numBuckets) { poolHash ht; ht = xmalloc(sizeof(*ht)); ht->numBuckets = numBuckets; ht->buckets = xcalloc(numBuckets, sizeof(*ht->buckets)); ht->keyCount = 0; return ht; }
poolHashCreate
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void poolHashEmpty(poolHash ht) { unsigned int i; if (ht->keyCount) { for (i = 0; i < ht->numBuckets; ++i) ht->buckets[i].keyid = 0; ht->keyCount = 0; } }
static void poolHashEmpty(poolHash ht) { unsigned int i; if (ht->keyCount == 0) return; for (i = 0; i < ht->numBuckets; i++) { ht->buckets[i].keyid = 0; } ht->keyCount = 0; }
poolHashEmpty
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
poolHash poolHashFree(poolHash ht) { if (ht) { poolHashEmpty(ht); ht->buckets = (poolHashBucket *)rfree(ht->buckets); rfree(ht); } return 0; }
static poolHash poolHashFree(poolHash ht) { if (ht == NULL) return ht; poolHashEmpty(ht); ht->buckets = _free(ht->buckets); ht = _free(ht); return NULL; }
poolHashFree
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void poolHashPrintStats(rpmstrPool pool) { const char *v1; unsigned int v2; signed int i; int collisions; unsigned int maxcollisions; unsigned int j; unsigned int keyHash; poolHash ht; ht = pool->hash; collisions = 0; maxcollisions = 0; for (i = 0; i < ht->numBuckets; ++i) { v1 = id2str(poo...
static void poolHashPrintStats(rpmstrPool pool) { poolHash ht = pool->hash; int i; int collisions = 0; int maxcollisions = 0; for (i = 0; i < ht->numBuckets; i++) { unsigned int keyHash = rstrhash(id2str(pool, ht->buckets[i].keyid)); for (unsigned int j = 0;; j++) { unsigned int hash = hashbuck...
poolHashPrintStats
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void poolHashResize(rpmstrPool pool, int numBuckets) { const char *v2; int i; unsigned int j; unsigned int keyHash; unsigned int hash; poolHash ht; poolHashBucket *buckets; ht = pool->hash; buckets = (poolHashBucket *)rcalloc(numBuckets, 4u); for (i = 0; i < ht->numBuckets; ++i) { if (ht->bucke...
static void poolHashResize(rpmstrPool pool, int numBuckets) { poolHash ht = pool->hash; poolHashBucket *buckets = xcalloc(numBuckets, sizeof(*ht->buckets)); for (int i = 0; i < ht->numBuckets; i++) { if (!ht->buckets[i].keyid) continue; unsigned int keyHash = rstrhash(id2str(pool, ht->buckets[i].ke...
poolHashResize
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void poolLock(rpmstrPool pool, int write) { if (write) pthread_rwlock_wrlock(&pool->lock); else pthread_rwlock_rdlock(&pool->lock); }
static inline void poolLock(rpmstrPool pool, int write) { if (write) pthread_rwlock_wrlock(&pool->lock); else pthread_rwlock_rdlock(&pool->lock); }
poolLock
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void poolUnlock(rpmstrPool pool) { pthread_rwlock_unlock(&pool->lock); }
static inline void poolUnlock(rpmstrPool pool) { pthread_rwlock_unlock(&pool->lock); }
poolUnlock
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void popMacro(rpmMacroContext mc, const char *n) { size_t pos; rpmMacroEntry *mep; rpmMacroEntry me; unsigned long v5; v5 = __readfsqword(0x28u); mep = findEntry(mc, n, 0, &pos); if (mep) { me = *mep; if (!me) __assert_fail("me", "macro.c", 0x6B2u, "popMacro"); mc->tab[pos] = me->prev; ...
static void popMacro(rpmMacroContext mc, const char *n) { size_t pos; rpmMacroEntry *mep = findEntry(mc, n, 0, &pos); if (mep == NULL) return; rpmMacroEntry me = *mep; assert(me); mc->tab[pos] = me->prev; if (me->prev == NULL) { mc->n--; memmove(mc->tab + pos, mc->tab + pos + 1, sizeof(me)...
popMacro
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int prefix_array(const char *dirname, char **array, size_t n) { size_t i; _BYTE *v4; size_t dirlen; size_t eltlen; char *v9; dirlen = strlen(dirname); if (dirlen == 1) dirlen = *dirname != 47; for (i = 0; i < n; ++i) { eltlen = strlen(array[i]) + 1; v9 = (char *)rmalloc(dirlen + eltlen + 1)...
static int prefix_array(const char *dirname, char **array, size_t n) { register size_t i; size_t dirlen = strlen(dirname); if (dirlen == 1 && dirname[0] == '/') dirlen = 0; for (i = 0; i < n; ++i) { size_t eltlen = strlen(array[i]) + 1; char *new = (char *)xmalloc(dirlen + 1 + eltlen); { ...
prefix_array
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void printExpansion(MacroBuf mb, rpmMacroEntry me, const char *t, const char *te) { const char *name; const char *tea; const char *ta; const char *mname; char *tenl; ta = t; tea = te; if (me) name = me->name; else name = &str; mname = name; if (te > t) { while (tea...
static void printExpansion(MacroBuf mb, rpmMacroEntry me, const char *t, const char *te) { const char *mname = me ? me->name : ""; if (!(te > t)) { fprintf(stderr, "%3d<%*s (%%%s)\n", mb->depth, (2 * mb->depth + 1), "", mname); return; } while (te > t && iseol(te[...
printExpansion
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void printMacro(MacroBuf mb, const char *s, const char *se) { unsigned int v3; unsigned int depth; char *v5; const char *sa; const char *senl; sa = s; if (s < se) { if (*(s - 1) == 123) sa = s - 1; for (senl = se; *senl && *senl != 10 && *senl != 13; ++senl) ; fprintf(stderr, "%3d...
static void printMacro(MacroBuf mb, const char *s, const char *se) { const char *senl; if (s >= se) { fprintf(stderr, _("%3d>%*s(empty)\n"), mb->depth, (2 * mb->depth + 1), ""); return; } if (s[-1] == '{') s--; for (senl = se; *senl && !iseol(*senl); senl++) { }; fprintf(stderr, "%3d>%*s%%...
printMacro
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void pushMacro(rpmMacroContext mc, const char *n, const char *o, const char *b, int level, int flags) { pushMacroAny(mc, n, o, b, 0, 0, level, flags); }
static void pushMacro(rpmMacroContext mc, const char *n, const char *o, const char *b, int level, int flags) { return pushMacroAny(mc, n, o, b, NULL, 0, level, flags); }
pushMacro
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void pushMacroAny(rpmMacroContext mc, const char *n, const char *o, const char *b, macroFunc f, int nargs, int level, int flags) { size_t v8; size_t v9; size_t v10; const char *v11; const char *v12; const char *v13; size_t pos; rpmMacroEntry me; char *p; rpmMacroEntry *mep; size_...
static void pushMacroAny(rpmMacroContext mc, const char *n, const char *o, const char *b, macroFunc f, int nargs, int level, int flags) { rpmMacroEntry me; char *p; size_t olen = o ? strlen(o) : 0; size_t blen = b ? strlen(b) : 0; size_t mesize = sizeof(*me...
pushMacroAny
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rasprintf(char **strp, const char *fmt, ...) { long v2; long v3; long v4; long v5; va_list ap; unsigned long v8; long v9; long v10; long v11; long v12; va_start(ap, fmt); v2 = va_arg(ap, _QWORD); v3 = va_arg(ap, _QWORD); v4 = va_arg(ap, _QWORD); v5 = va_arg(ap, _QWORD); v9 = v2; v...
int rasprintf(char **strp, const char *fmt, ...) { int n; va_list ap; va_start(ap, fmt); n = rvasprintf(strp, fmt, ap); va_end(ap); return n; }
rasprintf
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void *rcalloc(size_t nmemb, size_t size) { void *v2; size_t sizea; size_t nmemba; nmemba = nmemb; sizea = size; if (!size) sizea = 1; if (!nmemb) nmemba = 1; v2 = calloc(nmemba, sizea); if (!v2) return vmefail(sizea); return v2; }
void *rcalloc(size_t nmemb, size_t size) { register void *value; if (size == 0) size++; if (nmemb == 0) nmemb++; value = calloc(nmemb, size); if (value == NULL) value = vmefail(size); return value; }
rcalloc
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rdToken(ParseState state) { int v1; char *v2; char *v3; char *v4; char *v5; char *v6; int v7; char *v8; char *v9; char *v10; int token; int qtok; _BYTE expand[12]; const char *p; const char *pa; size_t ts; size_t ts_0; char *temp_0; char *temp; *(_DWORD *)&expand[8] = 0; p...
static int rdToken(ParseState state) { int token; Value v = NULL; const char *p = state->p; int expand = (state->flags & RPMEXPR_EXPAND) != 0; while (*p && risspace(*p)) p++; switch (*p) { case '\0': token = TOK_EOF; p--; break; case '+': token = TOK_ADD; break; case '-': ...
rdToken
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rdcl(char *buf, size_t size, FILE *f) { int v3; int v4; int pc; int bc; int xc; int nlines; size_t nb; char *p; char *q; char *qa; pc = 0; bc = 0; xc = 0; nlines = 0; p = buf; q = buf; if (f) { do { *q = 0; if (!fgets(q, size, f)) break; ++nlines; ...
static int rdcl(char *buf, size_t size, FILE *f) { size_t nb = 0; int pc = 0, bc = 0, xc = 0; int nlines = 0; char *p = buf; char *q = buf; if (f != NULL) do { *q = '\0'; if (fgets(q, size, f) == NULL) break; nlines++; nb = strlen(q); for (q += nb; nb > 0 && iseol(...
rdcl
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rex_comp(lua_State *L) { void *v1; char v3[8]; lua_State *La; int res; size_t l; regex_t *pr; const char *pattern; size_t sz; size_t v10; char (*p_errbuf)[]; unsigned long v12; La = L; v12 = __readfsqword(0x28u); pr = (regex_t *)lua_newuserdatauv(L, 64, 1); pattern = (const char *)lua...
static int rex_comp(lua_State *L) { size_t l; const char *pattern; int res; regex_t *pr = (regex_t *)lua_newuserdata(L, sizeof(regex_t)); pattern = luaL_checklstring(L, 1, &l); #ifdef REG_BASIC pr->re_endp = pattern + lua_strlen(L, 1); res = regcomp(pr, pattern, REG_EXTENDED | REG_PEND); #else res = reg...
rex_comp
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rex_gc(lua_State *L) { regex_t *r; r = (regex_t *)luaL_checkudata(L, 1, "regex_t"); if (r) regfree(r); return 0; }
static int rex_gc(lua_State *L) { regex_t *r = (regex_t *)luaL_checkudata(L, 1, "regex_t"); if (r) regfree(r); return 0; }
rex_gc
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void rex_getargs(lua_State *L, size_t *len, size_t *ncapt, const char **text, regex_t **pr, regmatch_t **match) { luaL_checkany(L, 1); *pr = (regex_t *)lua_touserdata(L, 1); *text = (const char *)luaL_checklstring(L, 2, 0); *ncapt = (*pr)->re_nsub; luaL_checkstack(L, (unsigned int)*ncapt + 2,...
static void rex_getargs(lua_State *L, size_t *len, size_t *ncapt, const char **text, regex_t **pr, regmatch_t **match) { luaL_checkany(L, 1); *pr = (regex_t *)lua_touserdata(L, 1); #ifdef REG_BASIC *text = luaL_checklstring(L, 2, len); #else *text = luaL_checklstring(L, 2, NULL); #endif ...
rex_getargs
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rex_gmatch(lua_State *L) { double v1; double v2; size_t ncapt; const char *text; regex_t *pr; regmatch_t *match; size_t nmatch; size_t maxmatch; size_t limit; unsigned long v11; v11 = __readfsqword(0x28u); nmatch = 0; maxmatch = 0; limit = 0; rex_getargs(L, 0, &ncapt, &text, &pr, &mat...
static int rex_gmatch(lua_State *L) { int res; #ifdef REG_BASIC size_t len; #endif size_t ncapt, nmatch = 0, maxmatch = 0, limit = 0; const char *text; regex_t *pr; regmatch_t *match; rex_getargs(L, #ifdef REG_BASIC &len, #else NULL, #endif &ncapt, &text, &pr, &ma...
rex_gmatch
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rex_match(lua_State *L) { double v1; int rc; size_t ncapt; const char *text; regex_t *pr; regmatch_t *match[2]; match[1] = (regmatch_t *)__readfsqword(0x28u); rc = 0; rex_getargs(L, 0, &ncapt, &text, &pr, match); if (!regexec(pr, text, ncapt + 1, match[0], 0)) { lua_pushnumber(L, (double)(m...
static int rex_match(lua_State *L) { int rc = 0; int res; #ifdef REG_BASIC size_t len; #endif size_t ncapt; const char *text; regex_t *pr; regmatch_t *match; rex_getargs(L, #ifdef REG_BASIC &len, #else NULL, #endif &ncapt, &text, &pr, &match); #ifdef REG_BASIC ...
rex_match
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void rex_push_matches(lua_State *L, const char *text, regmatch_t *match, size_t ncapt) { size_t i; lua_createtable(L, 0, 0); for (i = 1; i <= ncapt; ++i) { if (match[i].rm_so >= 0) { lua_pushlstring(L, &text[match[i].rm_so], match[i].rm_eo - match[i].rm_so); ...
static void rex_push_matches(lua_State *L, const char *text, regmatch_t *match, size_t ncapt) { size_t i; lua_newtable(L); for (i = 1; i <= ncapt; i++) { if (match[i].rm_so >= 0) { lua_pushlstring(L, text + match[i].rm_so, match[i].rm_eo - match[i].rm_s...
rex_push_matches
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void *rfree(void *ptr) { free(ptr); return 0; }
void *rfree(void *ptr) { free(ptr); return NULL; }
rfree
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rgetopt(int argc, char *const *argv, const char *opts, rgetoptcb callback, void *data) { int rc; int c; rc = 0; if (!strcmp(opts, "-")) return 1; optind = 0; while (1) { c = getopt(argc, argv, opts); if (c == -1) break; if (c == 63 || !strchr(opts, c)) { rc = -1;...
int rgetopt(int argc, char *const argv[], const char *opts, rgetoptcb callback, void *data) { int rc = 0; int c; if (strcmp(opts, "-") == 0) return 1; #ifdef __GLIBC__ optind = 0; #else optind = 1; #endif while ((c = getopt(argc, argv, opts)) != -1) { if (c == '?' || strchr(opts, c) =...
rgetopt
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void *rmalloc(size_t size) { void *v1; size_t sizea; sizea = size; if (!size) sizea = 1; v1 = malloc(sizea); if (!v1) return vmefail(sizea); return v1; }
void *rmalloc(size_t size) { register void *value; if (size == 0) size++; value = malloc(size); if (value == NULL) value = vmefail(size); return value; }
rmalloc
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
char *rpmBase64CRC(const unsigned char *data, size_t len) { const unsigned char *v2; uint32_t crc; int i; unsigned long v9; v9 = __readfsqword(0x28u); crc = 11994318; while (len--) { v2 = data++; crc ^= *v2 << 16; for (i = 0; i <= 7; ++i) { crc *= 2; if ((crc & 0x1000000) != 0) ...
char *rpmBase64CRC(const unsigned char *data, size_t len) { uint32_t crc = CRC24_INIT; int i; while (len--) { crc ^= (*data++) << 16; for (i = 0; i < 8; i++) { crc <<= 1; if (crc & 0x1000000) crc ^= CRC24_POLY; } } crc = htonl(crc & 0xffffff); data = (unsigned char *)&crc; ...
rpmBase64CRC
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmBase64Decode(const char *in, void **out, size_t *outlen) { size_t outcnt; const char *inptr; outcnt = 0; inptr = in; *out = 0; if (!in) return 1; while (*inptr) { if (*inptr > 32) { if (base64_decode_value(*inptr) == -1) return 3; ++outcnt; } ++inptr; } if (...
int rpmBase64Decode(const char *in, void **out, size_t *outlen) { size_t outcnt = 0; const char *inptr = in; *out = NULL; if (in == NULL) { return 1; } while (*inptr != '\0') { if (*inptr > 32) { if (base64_decode_value(*inptr) != -1) { ++outcnt; } else { return 3; ...
rpmBase64Decode
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
char *rpmBase64Encode(const void *data, size_t len, int linelen) { char *v4; int linelena; int linelenb; unsigned long lena; size_t encodedlen; const char *dataptr; char *outptr; char *output; lena = len; linelena = linelen; dataptr = (const char *)data; if (!data) return 0; if (linelen <...
char *rpmBase64Encode(const void *data, size_t len, int linelen) { size_t encodedlen; const char *dataptr = data; char *output; char *outptr; if (data == NULL) return NULL; if (linelen < 0) linelen = BASE64_DEFAULT_LINE_LENGTH; linelen /= 4; encodedlen = ((len + 2) / 3) * 4; if (linelen > 0...
rpmBase64Encode
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
char *rpmCleanPath(char *path) { int v2; _BYTE *v3; _BYTE *v4; char *v5; char *v6; char *v7; char *v8; int begin; char *s; char *se; char *t; char *te; begin = 1; if (!path) return 0; te = path; t = path; s = path; while (*s) { v2 = *s; if (v2 == 58) { if (s[1] == ...
char *rpmCleanPath(char *path) { const char *s; char *se, *t, *te; int begin = 1; if (path == NULL) return NULL; s = t = te = path; while (*s != '\0') { switch (*s) { case ':': if (s[1] == '/' && s[2] == '/') { *t++ = *s++; *t++ = *s++; break; } begin...
rpmCleanPath
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
const char *rpmConfigDir() { pthread_once(&configDirSet, setConfigDir); return rpm_config_dir; }
const char *rpmConfigDir(void) { pthread_once(&configDirSet, setConfigDir); return rpm_config_dir; }
rpmConfigDir
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmDefineMacro(rpmMacroContext mc, const char *macro, int level) { rpmMacroContext_s *mca; int rc; mca = rpmmctxAcquire(mc); rc = defineMacro(mca, macro, level); rpmmctxRelease(mca); return rc; }
int rpmDefineMacro(rpmMacroContext mc, const char *macro, int level) { int rc; mc = rpmmctxAcquire(mc); rc = defineMacro(mc, macro, level); rpmmctxRelease(mc); return rc; }
rpmDefineMacro
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmDigestBundleAdd(rpmDigestBundle bundle, int algo, rpmDigestFlags flags) { return rpmDigestBundleAddID(bundle, algo, algo, flags); }
int rpmDigestBundleAdd(rpmDigestBundle bundle, int algo, rpmDigestFlags flags) { return rpmDigestBundleAddID(bundle, algo, algo, flags); }
rpmDigestBundleAdd
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmDigestBundleAddID(rpmDigestBundle bundle, int algo, int id, rpmDigestFlags flags) { int rc; int ix; rc = -1; if (id > 0 && findID(bundle, id) < 0) { ix = findID(bundle, 0); if (ix >= 0) { bundle->digests[ix] = rpmDigestInit(algo, flags); if (bundle->digests[i...
int rpmDigestBundleAddID(rpmDigestBundle bundle, int algo, int id, rpmDigestFlags flags) { int rc = -1; if (id > 0 && findID(bundle, id) < 0) { int ix = findID(bundle, 0); if (ix >= 0) { bundle->digests[ix] = rpmDigestInit(algo, flags); if (bundle->digests[ix]) { ...
rpmDigestBundleAddID
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
DIGEST_CTX rpmDigestBundleDupCtx(rpmDigestBundle bundle, int id) { int ix; ix = findID(bundle, id); if (ix < 0) return 0; else return rpmDigestDup(bundle->digests[ix]); }
DIGEST_CTX rpmDigestBundleDupCtx(rpmDigestBundle bundle, int id) { int ix = findID(bundle, id); DIGEST_CTX dup = (ix >= 0) ? rpmDigestDup(bundle->digests[ix]) : NULL; return dup; }
rpmDigestBundleDupCtx
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmDigestBundleFinal(rpmDigestBundle bundle, int id, void **datap, size_t *lenp, int asAscii) { int rc; int ix; rc = 0; ix = findID(bundle, id); if (ix >= 0) { rc = rpmDigestFinal(bundle->digests[ix], datap, lenp, asAscii); bundle->digests[ix] = 0; bundle->ids[ix] = 0...
int rpmDigestBundleFinal(rpmDigestBundle bundle, int id, void **datap, size_t *lenp, int asAscii) { int rc = 0; int ix = findID(bundle, id); if (ix >= 0) { rc = rpmDigestFinal(bundle->digests[ix], datap, lenp, asAscii); bundle->digests[ix] = NULL; bundle->ids[ix] = 0; } r...
rpmDigestBundleFinal
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
rpmDigestBundle rpmDigestBundleFree(rpmDigestBundle bundle) { int i; if (bundle) { for (i = 0; i <= bundle->index_max; ++i) { if (bundle->digests[i]) { rpmDigestFinal(bundle->digests[i], 0, 0, 0); bundle->digests[i] = 0; } } memset(bundle, 0, sizeof(rpmDigestBundle_s)); ...
rpmDigestBundle rpmDigestBundleFree(rpmDigestBundle bundle) { if (bundle) { for (int i = 0; i <= bundle->index_max; i++) { if (bundle->digests[i] == NULL) continue; rpmDigestFinal(bundle->digests[i], NULL, NULL, 0); bundle->digests[i] = NULL; } memset(bundle, 0, sizeof(*bundle));...
rpmDigestBundleFree
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
rpmDigestBundle rpmDigestBundleNew() { return (rpmDigestBundle)rcalloc(1u, 0xA0u); }
rpmDigestBundle rpmDigestBundleNew(void) { rpmDigestBundle bundle = xcalloc(1, sizeof(*bundle)); return bundle; }
rpmDigestBundleNew
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmDigestBundleUpdate(rpmDigestBundle bundle, const void *data, size_t len) { int rc; int i; rc = 0; if (bundle && data && len) { for (i = 0; i <= bundle->index_max; ++i) { if (bundle->ids[i] > 0) rc += rpmDigestUpdate(bundle->digests[i], data, len); } bu...
int rpmDigestBundleUpdate(rpmDigestBundle bundle, const void *data, size_t len) { int rc = 0; if (bundle && data && len > 0) { for (int i = 0; i <= bundle->index_max; i++) { if (bundle->ids[i] > 0) rc += rpmDigestUpdate(bundle->digests[i], data, len); } bundle->nb...
rpmDigestBundleUpdate
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
DIGEST_CTX rpmDigestDup(DIGEST_CTX octx) { DIGEST_CTX_s *v2; gcry_md_hd_t v3; gcry_md_hd_t h; DIGEST_CTX nctx; unsigned long v6; v6 = __readfsqword(0x28u); nctx = 0; if (octx) { if ((unsigned int)gcry_md_copy(&h, octx->h)) return 0; v2 = (DIGEST_CTX_s *)rcalloc(1u, 0x10u); v3 = octx->...
DIGEST_CTX rpmDigestDup(DIGEST_CTX octx) { DIGEST_CTX nctx = NULL; if (octx) { gcry_md_hd_t h; if (gcry_md_copy(&h, octx->h)) return NULL; nctx = memcpy(xcalloc(1, sizeof(*nctx)), octx, sizeof(*nctx)); nctx->h = h; } return nctx; }
rpmDigestDup
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmDigestFinal(DIGEST_CTX ctx, void **datap, size_t *lenp, int asAscii) { int digestlen; unsigned char *digest; if (!ctx) return -1; digest = (unsigned char *)gcry_md_read(ctx->h, 0); digestlen = rpmDigestLength(ctx->algo); if (asAscii) { if (lenp) *lenp = 2 * digestlen + 1; if (datap...
int rpmDigestFinal(DIGEST_CTX ctx, void **datap, size_t *lenp, int asAscii) { unsigned char *digest; int digestlen; if (ctx == NULL) return -1; digest = gcry_md_read(ctx->h, 0); digestlen = rpmDigestLength(ctx->algo); if (!asAscii) { if (lenp) *lenp = digestlen; if (datap) { *datap =...
rpmDigestFinal
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
DIGEST_CTX rpmDigestInit(int hashalgo, rpmDigestFlags flags) { unsigned int gcryalgo; gcry_md_hd_t h; DIGEST_CTX ctx; unsigned long v6; v6 = __readfsqword(0x28u); gcryalgo = hashalgo2gcryalgo(hashalgo); if (!gcryalgo || (unsigned int)gcry_md_open(&h, gcryalgo, 0)) return 0; ctx = (DIGEST_CTX)rcallo...
DIGEST_CTX rpmDigestInit(int hashalgo, rpmDigestFlags flags) { gcry_md_hd_t h; DIGEST_CTX ctx; int gcryalgo = hashalgo2gcryalgo(hashalgo); if (!gcryalgo || gcry_md_open(&h, gcryalgo, 0) != 0) return NULL; ctx = xcalloc(1, sizeof(*ctx)); ctx->flags = flags; ctx->algo = hashalgo; ctx->h = h; retur...
rpmDigestInit
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
size_t rpmDigestLength(int hashalgo) { size_t result; switch (hashalgo) { case 1: result = 16; break; case 2: result = 20; break; case 8: result = 32; break; case 9: result = 48; break; case 10: result = 64; break; case 11: result = 28; break; default: ...
size_t rpmDigestLength(int hashalgo) { switch (hashalgo) { case PGPHASHALGO_MD5: return 16; case PGPHASHALGO_SHA1: return 20; case PGPHASHALGO_SHA224: return 28; case PGPHASHALGO_SHA256: return 32; case PGPHASHALGO_SHA384: return 48; case PGPHASHALGO_SHA512: return 64; default: ...
rpmDigestLength
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmDigestUpdate(DIGEST_CTX ctx, const void *data, size_t len) { if (!ctx) return -1; gcry_md_write(ctx->h, data, len); return 0; }
int rpmDigestUpdate(DIGEST_CTX ctx, const void *data, size_t len) { if (ctx == NULL) return -1; gcry_md_write(ctx->h, data, len); return 0; }
rpmDigestUpdate
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmDoDigest(int algo, const char *fn, int asAscii, unsigned char *digest) { int rc; unsigned char *dig; size_t diglen; size_t buflen; unsigned char *buf; FD_t fd; unsigned long v13; v13 = __readfsqword(0x28u); dig = 0; buflen = (size_t)&unk_40000; buf = (unsigned char *)rmalloc((size_t)&unk_4...
int rpmDoDigest(int algo, const char *fn, int asAscii, unsigned char *digest) { unsigned char *dig = NULL; size_t diglen, buflen = 32 * BUFSIZ; unsigned char *buf = xmalloc(buflen); int rc = 0; FD_t fd = Fopen(fn, "r.ufdio"); if (fd) { fdInitDigest(fd, algo, 0); while ((rc = Fread(buf, sizeof(*buf...
rpmDoDigest
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void rpmDumpMacroTable(rpmMacroContext mc, FILE *fp) { unsigned int v2; unsigned int n; char *v4; FILE *fpa; rpmMacroContext mca; int i; rpmMacroEntry me; fpa = fp; mca = rpmmctxAcquire(mc); if (!fp) fpa = stderr; fwrite("========================\n", 1u, 0x19u, fpa); for (i = 0; i < mca->n;...
void rpmDumpMacroTable(rpmMacroContext mc, FILE *fp) { mc = rpmmctxAcquire(mc); if (fp == NULL) fp = stderr; fprintf(fp, "========================\n"); for (int i = 0; i < mc->n; i++) { rpmMacroEntry me = mc->tab[i]; assert(me); fprintf(fp, "%3d%c %s", me->level, ((me->flags & ME_USED) ? '=' : ...
rpmDumpMacroTable
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
char *rpmEscapeSpaces(const char *s) { char *v1; char *v2; const char *se; const char *sea; char *te; size_t nb; char *t; nb = 0; for (se = s; *se; ++se) { if (((*__ctype_b_loc())[*se] & 0x2000) != 0) ++nb; ++nb; } te = (char *)rmalloc(nb + 1); t = te; for (sea = s; *sea; ++sea)...
char *rpmEscapeSpaces(const char *s) { const char *se; char *t; char *te; size_t nb = 0; for (se = s; *se; se++) { if (isspace(*se)) nb++; nb++; } nb++; t = te = xmalloc(nb); for (se = s; *se; se++) { if (isspace(*se)) *te++ = '\\'; *te++ = *se; } *te = '\0'; return...
rpmEscapeSpaces
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
char *rpmExpand(const char *arg, ...) { long v1; long v2; long v3; long v4; long v5; const char **overflow_arg_area; const char **v7; char *ret; size_t blen; char *pe; const char *s; char *buf; rpmMacroContext mc; va_list ap; unsigned long v16; long v17; long v18; long v19; long v2...
char *rpmExpand(const char *arg, ...) { size_t blen = 0; char *buf = NULL, *ret = NULL; char *pe; const char *s; va_list ap; rpmMacroContext mc; if (arg == NULL) { ret = xstrdup(""); goto exit; } va_start(ap, arg); for (s = arg; s != NULL; s = va_arg(ap, const char *)) blen += strlen(s...
rpmExpand
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmExpandMacros(rpmMacroContext mc, const char *sbuf, char **obuf, int flags) { rpmMacroContext_s *mca; int rc; char *target[2]; target[1] = (char *)__readfsqword(0x28u); target[0] = 0; mca = rpmmctxAcquire(mc); rc = doExpandMacros(mca, sbuf, flags, target); rpmmctxRelease(mca);...
int rpmExpandMacros(rpmMacroContext mc, const char *sbuf, char **obuf, int flags) { char *target = NULL; int rc; mc = rpmmctxAcquire(mc); rc = doExpandMacros(mc, sbuf, flags, &target); rpmmctxRelease(mc); if (rc) { free(target); return -1; } else { *obuf = target; ret...
rpmExpandMacros
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmExpandNumeric(const char *arg) { int rc; char *end; char *val; unsigned long v5; v5 = __readfsqword(0x28u); if (!arg) return 0; val = rpmExpand(arg, 0); if (val && *val != 37) { if (*val == 89 || *val == 121) { rc = 1; } else if (*val == 78 || *val == 110) { rc = 0; }...
int rpmExpandNumeric(const char *arg) { char *val; int rc; if (arg == NULL) return 0; val = rpmExpand(arg, NULL); if (!(val && *val != '%')) rc = 0; else if (*val == 'Y' || *val == 'y') rc = 1; else if (*val == 'N' || *val == 'n') rc = 0; else { char *end; rc = strtol(val, &end...
rpmExpandNumeric
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmExpandThisMacro(rpmMacroContext mc, const char *n, ARGV_const_t args, char **obuf, int flags) { rpmMacroContext_s *mca; int rc; char *target; rpmMacroEntry *mep; MacroBuf mb; target = 0; rc = 1; mca = rpmmctxAcquire(mc); mep = findEntry(mca, n, 0, 0); if (mep) { mb...
int rpmExpandThisMacro(rpmMacroContext mc, const char *n, ARGV_const_t args, char **obuf, int flags) { rpmMacroEntry *mep; char *target = NULL; int rc = 1; mc = rpmmctxAcquire(mc); mep = findEntry(mc, n, 0, NULL); if (mep) { MacroBuf mb = mbCreate(mc, flags); rc = expandThisM...
rpmExpandThisMacro
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmExprBool(const char *expr) { return rpmExprBoolFlags(expr, 0); }
int rpmExprBool(const char *expr) { return rpmExprBoolFlags(expr, 0); }
rpmExprBool
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmExprBoolFlags(const char *expr, int flags) { const char *p; char *v3; int result; _value *v; _parseState state; unsigned long v8; v8 = __readfsqword(0x28u); result = -1; v = 0; state.str = rstrdup(expr); state.p = state.str; state.nextToken = 0; state.tokenValue = 0; state.flags = fl...
int rpmExprBoolFlags(const char *expr, int flags) { struct _parseState state; int result = -1; Value v = NULL; DEBUG(printf("parseExprBoolean(?, '%s')\n", expr)); state.p = state.str = xstrdup(expr); state.nextToken = 0; state.tokenValue = NULL; state.flags = flags; if (rdToken(&state)) goto exi...
rpmExprBoolFlags
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
char *rpmExprStr(const char *expr) { return rpmExprStrFlags(expr, 0); }
char *rpmExprStr(const char *expr) { return rpmExprStrFlags(expr, 0); }
rpmExprStr
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
char *rpmExprStrFlags(const char *expr, int flags) { const char *p; char *v3; valueType type; char *result; Value v; _parseState state; unsigned long v9; v9 = __readfsqword(0x28u); result = 0; v = 0; state.str = rstrdup(expr); state.p = state.str; state.nextToken = 0; state.tokenValue = 0; ...
char *rpmExprStrFlags(const char *expr, int flags) { struct _parseState state; char *result = NULL; Value v = NULL; DEBUG(printf("parseExprString(?, '%s')\n", expr)); state.p = state.str = xstrdup(expr); state.nextToken = 0; state.tokenValue = NULL; state.flags = flags; if (rdToken(&state)) goto...
rpmExprStrFlags
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmFileHasSuffix(const char *path, const char *suffix) { size_t plen; size_t slen; plen = strlen(path); slen = strlen(suffix); return plen >= slen && rstreq_5(&path[plen - slen], suffix); }
int rpmFileHasSuffix(const char *path, const char *suffix) { size_t plen = strlen(path); size_t slen = strlen(suffix); return (plen >= slen && rstreq(path + plen - slen, suffix)); }
rpmFileHasSuffix
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmFileIsCompressed(const char *file, rpmCompressedMagic *compressed) { const char *v2; char *v3; const char *v5; char *v6; char *v7; int rc; _FD_s *fd; long nb; unsigned char magic[13]; unsigned long v12; v12 = __readfsqword(0x28u); rc = -1; *compressed = rpmCompressedMagic_e_COMPRESSED_...
int rpmFileIsCompressed(const char *file, rpmCompressedMagic *compressed) { FD_t fd; ssize_t nb; int rc = -1; unsigned char magic[13]; *compressed = COMPRESSED_NOT; fd = Fopen(file, "r.ufdio"); if (fd == NULL || Ferror(fd)) { rpmlog(RPMLOG_ERR, _("File %s: %s\n"), file, Fstrerror(fd)); if (fd) ...
rpmFileIsCompressed
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmFreeCrypto() { return 0; }
int rpmFreeCrypto(void) { return 0; }
rpmFreeCrypto
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void rpmFreeMacros(rpmMacroContext mc) { rpmMacroContext mca; for (mca = rpmmctxAcquire(mc); mca->n > 0; popMacro(mca, mca->tab[mca->n - 1]->name)) ; rpmmctxRelease(mca); }
void rpmFreeMacros(rpmMacroContext mc) { mc = rpmmctxAcquire(mc); while (mc->n > 0) { rpmMacroEntry me = mc->tab[mc->n - 1]; popMacro(mc, me->name); } rpmmctxRelease(mc); }
rpmFreeMacros
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
char *rpmGenPath(const char *urlroot, const char *urlmdir, const char *urlfile) { char *Path; int nurl; urltype ut; urltype uta; urltype utb; const char *root; const char *mdir; const char *file; char *url; char *xroot; char *xmdir; char *xfile; char *t; char *result; unsi...
char *rpmGenPath(const char *urlroot, const char *urlmdir, const char *urlfile) { char *xroot = rpmGetPath(urlroot, NULL); const char *root = xroot; char *xmdir = rpmGetPath(urlmdir, NULL); const char *mdir = xmdir; char *xfile = rpmGetPath(urlfile, NULL); const char *file = xfile; char *...
rpmGenPath
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
char *rpmGetCwd() { int currDirLen; char *currDir; currDirLen = 0; currDir = 0; do { currDirLen += 128; currDir = (char *)rrealloc(currDir, currDirLen); memset(currDir, 0, currDirLen); } while (!getcwd(currDir, currDirLen) && *__errno_location() == 34); return currDir; }
char *rpmGetCwd(void) { int currDirLen = 0; char *currDir = NULL; do { currDirLen += 128; currDir = xrealloc(currDir, currDirLen); memset(currDir, 0, currDirLen); } while (getcwd(currDir, currDirLen) == NULL && errno == ERANGE); return currDir; }
rpmGetCwd
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
char *rpmGetPath(const char *path, ...) { long v1; long v2; long v3; long v4; long v5; const char **overflow_arg_area; char *dest; const char *s; char *res; va_list ap; unsigned long v12; long v13; long v14; long v15; long v16; long v17; va_start(ap, path); v3 = va_arg(ap, _QWORD); ...
char *rpmGetPath(const char *path, ...) { va_list ap; char *dest = NULL, *res; const char *s; if (path == NULL) return xstrdup(""); va_start(ap, path); for (s = path; s; s = va_arg(ap, const char *)) { rstrcat(&dest, s); } va_end(ap); res = rpmExpand(dest, NULL); free(dest); return rpm...
rpmGetPath
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
rpmPubkey *rpmGetSubkeys(rpmPubkey mainkey, int *count) { int pgpsubkeysCount; int i; pgpDigParams *pgpsubkeys; rpmPubkey *subkeys; rpmPubkey subkey; unsigned long v8; v8 = __readfsqword(0x28u); subkeys = 0; pgpsubkeys = 0; pgpsubkeysCount = 0; if (mainkey && !pgpPrtParamsSubkeys(mainkey->p...
rpmPubkey *rpmGetSubkeys(rpmPubkey mainkey, int *count) { rpmPubkey *subkeys = NULL; pgpDigParams *pgpsubkeys = NULL; int pgpsubkeysCount = 0; int i; if (mainkey && !pgpPrtParamsSubkeys(mainkey->pkt, mainkey->pktlen, mainkey->pgpkey, &pgpsubkeys, &pgpsubkeysCount)) { sub...
rpmGetSubkeys
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmGlob(const char *patterns, int *argcPtr, ARGV_t *argvPtr) { _BOOL4 v4; _BOOL4 v5; size_t v6; int ac; int gflags; int i; int j; int rc; int flags; int argc; int ut; int local; int dir_only; const char **av; ARGV_t argv; const char *path; char *old_collate; char *old_ctype; si...
int rpmGlob(const char *patterns, int *argcPtr, ARGV_t *argvPtr) { int ac = 0; const char **av = NULL; int argc = 0; ARGV_t argv = NULL; char *globRoot = NULL; const char *home = getenv("HOME"); int gflags = 0; #ifdef ENABLE_NLS char *old_collate = NULL; char *old_ctype = NULL; const char *t; #endif...
rpmGlob
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmInitCrypto() { gcry_check_version(0); gcry_control(38, 0); return 0; }
int rpmInitCrypto(void) { gcry_check_version(NULL); gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0); return 0; }
rpmInitCrypto
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void rpmInitMacros(rpmMacroContext mc, const char *macrofiles) { rpmMacroContext_s *mca; ARGV_t globs; ARGV_t files; ARGV_t pattern; const builtins_s *b; ARGV_t path; rpmMacroContext climc; unsigned long v9; v9 = __readfsqword(0x28u); globs = 0; mca = rpmmctxAcquire(mc); for (b = builtinmacros;...
void rpmInitMacros(rpmMacroContext mc, const char *macrofiles) { ARGV_t pattern, globs = NULL; rpmMacroContext climc; mc = rpmmctxAcquire(mc); for (const struct builtins_s *b = builtinmacros; b->name; b++) { pushMacroAny(mc, b->name, "", "<builtin>", b->func, b->nargs, RMIL_BUILTIN, b->fla...
rpmInitMacros
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmIsGlob(const char *pattern, int quote) { const char *rest; char *begin; const char *next; if (!_glob_pattern_p(pattern, quote)) { begin = strchr(pattern, 123); if (!begin) return 0; next = next_brace_sub(begin + 1); if (!next) return 0; rest = next; while (*rest != 12...
int rpmIsGlob(const char *pattern, int quote) { if (!__glob_pattern_p(pattern, quote)) { const char *begin; const char *next; const char *rest; begin = strchr(pattern, '{'); if (begin == NULL) return 0; next = next_brace_sub(begin + 1); if (next == NULL) return 0; rest ...
rpmIsGlob
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key) { rpmPubkey_s **v3; int rc; rc = 1; if (!keyring || !key) return -1; pthread_rwlock_wrlock(&keyring->lock); if (!rpmKeyringFindKeyid(keyring, key)) { keyring->keys = (rpmPubkey_s **)rrealloc(keyring->keys, 8 * (keyring->numkeys + 1)); ...
int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key) { int rc = 1; if (keyring == NULL || key == NULL) return -1; pthread_rwlock_wrlock(&keyring->lock); if (!rpmKeyringFindKeyid(keyring, key)) { keyring->keys = xrealloc(keyring->keys, (keyring->numkeys + 1) * sizeof(rpmPubkey)); keyring-...
rpmKeyringAddKey
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
rpmPubkey rpmKeyringFindKeyid(rpmKeyring keyring, rpmPubkey key) { rpmPubkey keya; rpmKeyring keyringa; rpmPubkey *found; keyringa = keyring; keya = key; found = 0; if (key && keyringa->keys) found = (rpmPubkey *)bsearch(&keya, keyringa->keys, keyringa->numkeys, 8u, (...
static rpmPubkey rpmKeyringFindKeyid(rpmKeyring keyring, rpmPubkey key) { rpmPubkey *found = NULL; if (key && keyring->keys) { found = bsearch(&key, keyring->keys, keyring->numkeys, sizeof(*keyring->keys), keyidcmp); } return found ? *found : NULL; }
rpmKeyringFindKeyid
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
rpmKeyring rpmKeyringFree(rpmKeyring keyring) { rpmPubkey_s **v2; int i; if (!keyring) return 0; pthread_rwlock_wrlock(&keyring->lock); if (--keyring->nrefs) { pthread_rwlock_unlock(&keyring->lock); } else { if (keyring->keys) { for (i = 0; i < keyring->numkeys; ++i) { v2 = &keyri...
rpmKeyring rpmKeyringFree(rpmKeyring keyring) { if (keyring == NULL) return NULL; pthread_rwlock_wrlock(&keyring->lock); if (--keyring->nrefs == 0) { if (keyring->keys) { for (int i = 0; i < keyring->numkeys; i++) { keyring->keys[i] = rpmPubkeyFree(keyring->keys[i]); } free(keyr...
rpmKeyringFree
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
rpmKeyring rpmKeyringLink(rpmKeyring keyring) { if (keyring) { pthread_rwlock_wrlock(&keyring->lock); ++keyring->nrefs; pthread_rwlock_unlock(&keyring->lock); } return keyring; }
rpmKeyring rpmKeyringLink(rpmKeyring keyring) { if (keyring) { pthread_rwlock_wrlock(&keyring->lock); keyring->nrefs++; pthread_rwlock_unlock(&keyring->lock); } return keyring; }
rpmKeyringLink
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
rpmRC rpmKeyringLookup(rpmKeyring keyring, pgpDig sig) { pgpDigParams_s *Params; rpmRC res; rpmPubkey key; pthread_rwlock_rdlock(&keyring->lock); res = rpmRC_e_RPMRC_NOKEY; Params = pgpDigGetParams(sig, 2u); key = findbySig(keyring, Params); if (key) { pgpPrtPkts(key->pkt, key->pktlen, sig, print_p...
rpmRC rpmKeyringLookup(rpmKeyring keyring, pgpDig sig) { pthread_rwlock_rdlock(&keyring->lock); rpmRC res = RPMRC_NOKEY; pgpDigParams sigp = pgpDigGetParams(sig, PGPTAG_SIGNATURE); rpmPubkey key = findbySig(keyring, sigp); if (key) { pgpPrtPkts(key->pkt, key->pktlen, sig, _print_pkts); res = RPMRC_...
rpmKeyringLookup
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
rpmKeyring rpmKeyringNew() { rpmKeyring keyring; keyring = (rpmKeyring)rcalloc(1u, 0x50u); keyring->keys = 0; keyring->numkeys = 0; keyring->nrefs = 1; pthread_rwlock_init(&keyring->lock, 0); return keyring; }
rpmKeyring rpmKeyringNew(void) { rpmKeyring keyring = xcalloc(1, sizeof(*keyring)); keyring->keys = NULL; keyring->numkeys = 0; keyring->nrefs = 1; pthread_rwlock_init(&keyring->lock, NULL); return keyring; }
rpmKeyringNew
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
rpmRC rpmKeyringVerifySig(rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX ctx) { rpmRC rc; pgpDigParams_s *pgpkey; rpmPubkey key; rc = rpmRC_e_RPMRC_FAIL; if (keyring) pthread_rwlock_rdlock(&keyring->lock); if (sig && ctx) { pgpkey = 0; key = findbySig(keyring, sig); ...
rpmRC rpmKeyringVerifySig(rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX ctx) { rpmRC rc = RPMRC_FAIL; if (keyring) pthread_rwlock_rdlock(&keyring->lock); if (sig && ctx) { pgpDigParams pgpkey = NULL; rpmPubkey key = findbySig(keyring, sig); if (key) pgpkey = k...
rpmKeyringVerifySig
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmLoadMacroFile(rpmMacroContext mc, const char *fn) { rpmMacroContext_s *mca; int rc; mca = rpmmctxAcquire(mc); rc = loadMacroFile(mca, fn); rpmmctxRelease(mca); return rc; }
int rpmLoadMacroFile(rpmMacroContext mc, const char *fn) { int rc; mc = rpmmctxAcquire(mc); rc = loadMacroFile(mc, fn); rpmmctxRelease(mc); return rc; }
rpmLoadMacroFile
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
void rpmLoadMacros(rpmMacroContext mc, int level) { rpmMacroContext_s *mca; rpmMacroContext_s *gmc; if (mc) { if (mc != rpmGlobalMacroContext) { gmc = rpmmctxAcquire(0); mca = rpmmctxAcquire(mc); copyMacros(mca, gmc, level); rpmmctxRelease(mca); rpmmctxRelease(gmc); } } }
void rpmLoadMacros(rpmMacroContext mc, int level) { rpmMacroContext gmc; if (mc == NULL || mc == rpmGlobalMacroContext) return; gmc = rpmmctxAcquire(NULL); mc = rpmmctxAcquire(mc); copyMacros(mc, gmc, level); rpmmctxRelease(mc); rpmmctxRelease(gmc); }
rpmLoadMacros
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmMacroIsDefined(rpmMacroContext mc, const char *n) { rpmMacroContext_s *mca; _BOOL4 defined; defined = 0; mca = rpmmctxAcquire(mc); if (mca) { defined = findEntry(mca, n, 0, 0) != 0; rpmmctxRelease(mca); } return defined; }
int rpmMacroIsDefined(rpmMacroContext mc, const char *n) { int defined = 0; if ((mc = rpmmctxAcquire(mc)) != NULL) { if (findEntry(mc, n, 0, NULL)) defined = 1; rpmmctxRelease(mc); } return defined; }
rpmMacroIsDefined
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmMacroIsParametric(rpmMacroContext mc, const char *n) { rpmMacroContext_s *mca; _BOOL4 parametric; rpmMacroEntry *mep; parametric = 0; mca = rpmmctxAcquire(mc); if (mca) { mep = findEntry(mca, n, 0, 0); if (mep) parametric = (*mep)->opts != 0; rpmmctxRelease(mca); } return param...
int rpmMacroIsParametric(rpmMacroContext mc, const char *n) { int parametric = 0; if ((mc = rpmmctxAcquire(mc)) != NULL) { rpmMacroEntry *mep = findEntry(mc, n, 0, NULL); if (mep && (*mep)->opts) parametric = 1; rpmmctxRelease(mc); } return parametric; }
rpmMacroIsParametric
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
FD_t rpmMkTemp(char *templ) { mode_t mode; int sfd; _FD_s *tfd; tfd = 0; mode = umask(0x3Fu); sfd = mkstemp(templ); umask(mode); if (sfd >= 0) { tfd = fdDup(sfd); close(sfd); } return tfd; }
FD_t rpmMkTemp(char *templ) { mode_t mode; int sfd; FD_t tfd = NULL; mode = umask(0077); sfd = mkstemp(templ); umask(mode); if (sfd < 0) { goto exit; } tfd = fdDup(sfd); close(sfd); exit: return tfd; }
rpmMkTemp
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
FD_t rpmMkTempFile(const char *prefix, char **fn) { char *v2; const char *prefixa; char *tempfn; _FD_s *tfd; prefixa = prefix; tfd = 0; if (!prefix) prefixa = &byte_32EA4; if (!initialized_0) { initialized_0 = 1; tempfn = rpmGenPath(prefixa, "%{_tmppath}", 0); if (rpmioMkpath(tempfn, 0x...
FD_t rpmMkTempFile(const char *prefix, char **fn) { const char *tpmacro = "%{_tmppath}"; char *tempfn; static int _initialized = 0; FD_t tfd = NULL; if (!prefix) prefix = ""; if (!_initialized) { _initialized = 1; tempfn = rpmGenPath(prefix, tpmacro, NULL); if (rpmioMkpath(tempfn, 0755, (u...
rpmMkTempFile
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmMkdirs(const char *root, const char *pathstr) { char *v2; int rc; ARGV_t dirs; char **d; char *path; const char *msg; unsigned long v9; v9 = __readfsqword(0x28u); dirs = 0; rc = 0; argvSplit(&dirs, pathstr, ":"); for (d = dirs; *d; ++d) { if (root) v2 = rpmGetPath(root, *d, 0);...
int rpmMkdirs(const char *root, const char *pathstr) { ARGV_t dirs = NULL; int rc = 0; argvSplit(&dirs, pathstr, ":"); for (char **d = dirs; *d; d++) { char *path = rpmGetPath(root ? root : "", *d, NULL); if (strstr(path, "%{")) rpmlog(RPMLOG_WARNING, ("undefined macro(s) in %s: %s\n"), *d, path)...
rpmMkdirs
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0
int rpmPopMacro(rpmMacroContext mc, const char *n) { rpmMacroContext_s *mca; mca = rpmmctxAcquire(mc); popMacro(mca, n); rpmmctxRelease(mca); return 0; }
int rpmPopMacro(rpmMacroContext mc, const char *n) { mc = rpmmctxAcquire(mc); popMacro(mc, n); rpmmctxRelease(mc); return 0; }
rpmPopMacro
rpm-4.17.0-r2
app-arch
O0/app-arch/rpm-4.17.0-r2/librpmio.so.9.2.0
ida
O0