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
bool LzmaDec_Init(CLzmaDec *p, const uint8_t *raw_props) { uint8_t d; uint32_t i; d = *raw_props; p->lc = *raw_props % 9u; d /= 9u; p->pb = d / 5u; p->lp = d % 5u; p->dicBufSize = (raw_props[4] << 24) | (raw_props[3] << 16) | *(unsigned short *)(raw_props + 1); if (p->dicBufSize <= ...
bool LzmaDec_Init(CLzmaDec *p, const uint8_t *raw_props) { uint32_t i; uint8_t d = raw_props[0]; p->lc = d % 9; d /= 9; p->pb = d / 5; p->lp = d % 5; p->dicBufSize = raw_props[1] | ((uint32_t)raw_props[2] << 8) | ((uint32_t)raw_props[3] << 16) | ((uint32_t)raw_props[4...
LzmaDec_Init
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void LzmaDec_InitRc(CLzmaDec *p, const uint8_t *data) { p->code = _byteswap_ulong(*(_DWORD *)(data + 1)); p->range = -1; p->needFlush = 0; }
static void LzmaDec_InitRc(CLzmaDec *p, const uint8_t *data) { p->code = ((uint32_t)data[1] << 24) | ((uint32_t)data[2] << 16) | ((uint32_t)data[3] << 8) | ((uint32_t)data[4]); p->range = 0xFFFFFFFF; p->needFlush = false; }
LzmaDec_InitRc
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
ELzmaDummy LzmaDec_TryDummy(const CLzmaDec *p, const uint8_t *buf, uint32_t inSize) { uint32_t dicPos; const uint8_t *v5; uint32_t dicBufSize; const uint8_t *v7; const uint8_t *v8; const uint8_t *v9; const uint8_t *v10; const uint8_t *v11; const uint8_t *v12; const uint8_...
static ELzmaDummy LzmaDec_TryDummy(const CLzmaDec *p, const uint8_t *buf, uint32_t inSize) { uint32_t range = p->range; uint32_t code = p->code; const uint8_t *bufLimit = buf + inSize; int *probs = p->probs; State state = p->state; ELzmaDummy res; { int *prob; u...
LzmaDec_TryDummy
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void LzmaDec_WriteRem(CLzmaDec *p, uint32_t limit) { uint32_t v2; uint32_t dicPos; unsigned int len; uint32_t dicBufSize; uint32_t rep0; uint8_t *dic; if (p->remainLen && p->remainLen <= 0x111) { dic = p->dic; dicPos = p->dicPos; dicBufSize = p->dicBufSize; len = p->remainLen; rep0 = ...
static void LzmaDec_WriteRem(CLzmaDec *p, uint32_t limit) { if (p->remainLen != 0 && p->remainLen < kMatchSpecLenStart) { uint8_t *dic = p->dic; uint32_t dicPos = p->dicPos; const uint32_t dicBufSize = p->dicBufSize; unsigned len = p->remainLen; uint32_t rep0 = p->reps[0]; if (limit - dicPos <...
LzmaDec_WriteRem
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
int LzmaEnc_CodeOneBlock(CLzmaEnc *p) { uint32_t v2; uint8_t curByte; uint8_t curByte_0; uint32_t pos; uint32_t nowPos32; uint32_t len; uint32_t posSlot; uint32_t startPos32; uint32_t posState; uint32_t i; uint32_t footerBits; uint32_t base; uint32_t posReduced; uint32_t distance; uint32_t...
static int LzmaEnc_CodeOneBlock(CLzmaEnc *p) { uint32_t nowPos32, startPos32; if (p->finished) return p->result; if (CheckErrors(p) != 0) return p->result; nowPos32 = (uint32_t)p->nowPos64; startPos32 = nowPos32; if (p->nowPos64 == 0) { uint32_t numPairs; uint8_t curByte; if (Mf_GetNu...
LzmaEnc_CodeOneBlock
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
int LzmaEnc_Encode(CLzmaEncHandle pp) { int res; do res = LzmaEnc_CodeOneBlock((CLzmaEnc *)pp); while (!res && !*((_BYTE *)pp + 230749)); return res; }
int LzmaEnc_Encode(CLzmaEncHandle pp) { int res = SZ_OK; CLzmaEnc *p = (CLzmaEnc *)pp; for (;;) { res = LzmaEnc_CodeOneBlock(p); if (res != SZ_OK || p->finished) break; } return res; }
LzmaEnc_Encode
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void LzmaEnc_FastPosInit(uint8_t *g_FastPos) { int c; int slotFast; uint32_t j; c = 2; *g_FastPos = 0; g_FastPos[1] = 1; for (slotFast = 2; slotFast <= 21; ++slotFast) { for (j = 0; j < 1 << ((slotFast >> 1) - 1); ++j) g_FastPos[c++] = slotFast; } }
static void LzmaEnc_FastPosInit(uint8_t *g_FastPos) { int c = 2, slotFast; g_FastPos[0] = 0; g_FastPos[1] = 1; for (slotFast = 2; slotFast < kNumLogBits * 2; slotFast++) { uint32_t k = (1 << ((slotFast >> 1) - 1)); uint32_t j; for (j = 0; j < k; j++, c++) g_FastPos[c] = (uint8_t)slotFast; }...
LzmaEnc_FastPosInit
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void LzmaEnc_Free(CLzmaEncHandle pp) { Mf_Free((CMatchFinder *)((char *)pp + 32)); free(*((void **)pp + 1)); *((_QWORD *)pp + 1) = 0; RangeEnc_Free((CRangeEnc *)((char *)pp + 230672)); free(pp); }
void LzmaEnc_Free(CLzmaEncHandle pp) { CLzmaEnc *p = (CLzmaEnc *)pp; Mf_Free(&p->matchFinderBase); free(p->litProbs); p->litProbs = 0; RangeEnc_Free(&p->rc); free(p); }
LzmaEnc_Free
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
CLzmaEncHandle LzmaEnc_Init(const int dict_size, const int match_len_limit, const int infd, const int outfd) { int i; int ia; int ib; int ic; int id; int ie; int ig; int j; uint32_t j_0; int num; CLzmaEnc *p; p = (CLzmaEnc *)malloc(0x38560u); if (!p) return 0; ...
CLzmaEncHandle LzmaEnc_Init(const int dict_size, const int match_len_limit, const int infd, const int outfd) { int i; const uint32_t beforeSize = kNumOpts; CLzmaEnc *const p = (CLzmaEnc *)malloc(sizeof(CLzmaEnc)); if (!p) return 0; p->nowPos64 = 0; p->dictSize = dict_size; ...
LzmaEnc_Init
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void LzmaEnc_InitPriceTables(uint32_t *ProbPrices) { uint32_t i; uint32_t w; uint32_t bitCount; int j; for (i = 8; i <= 0x7FF; i += 16) { w = i; bitCount = 0; for (j = 0; j < 4; ++j) { w *= w; bitCount *= 2; while (w > 0xFFFF) { w >>= 1; ++bitCount; } }...
static void LzmaEnc_InitPriceTables(uint32_t *ProbPrices) { uint32_t i; for (i = (1 << kNumMoveReducingBits) / 2; i < kBitModelTotal; i += (1 << kNumMoveReducingBits)) { const int kCyclesBits = kNumBitPriceShiftBits; uint32_t w = i; uint32_t bitCount = 0; int j; for (j = 0; j < kCyclesBit...
LzmaEnc_InitPriceTables
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void Mf_CheckAndMoveAndRead(CMatchFinder *p) { if (p->blockSize + (unsigned int)p->bufferBase - (unsigned int)p->buffer <= p->keepSizeAfter) { memmove(p->bufferBase, &p->buffer[-p->keepSizeBefore], p->streamPos - p->pos + p->keepSizeBefore); p->buffer = &p->bufferBase[p->keepSizeBefore]; }...
static void Mf_CheckAndMoveAndRead(CMatchFinder *p) { if ((uint32_t)(p->bufferBase + p->blockSize - p->buffer) <= p->keepSizeAfter) { memmove(p->bufferBase, p->buffer - p->keepSizeBefore, p->streamPos - p->pos + p->keepSizeBefore); p->buffer = p->bufferBase + p->keepSizeBefore; } Mf_Read...
Mf_CheckAndMoveAndRead
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void Mf_CheckLimits(CMatchFinder *p) { if (p->pos == -1) Mf_Normalize(p); if (!p->streamEndWasReached && p->keepSizeAfter == p->streamPos - p->pos) Mf_CheckAndMoveAndRead(p); if (p->cyclicBufferPos == p->cyclicBufferSize) p->cyclicBufferPos = 0; Mf_SetLimits(p); }
static void Mf_CheckLimits(CMatchFinder *p) { if (p->pos == kMaxValForNormalize) Mf_Normalize(p); if (!p->streamEndWasReached && p->keepSizeAfter == p->streamPos - p->pos) Mf_CheckAndMoveAndRead(p); if (p->cyclicBufferPos == p->cyclicBufferSize) p->cyclicBufferPos = 0; Mf_SetLimits(p); }
Mf_CheckLimits
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void Mf_CreateVTable(CMatchFinder *p, IMatchFinder *vTable) { if (!p->btMode) { vTable->GetMatches = (Mf_GetMatches_Func)Hc4_MatchFinder_GetMatches; vTable->Skip = (Mf_Skip_Func)Hc4_MatchFinder_Skip; } else if (p->numHashBytes == 2) { vTable->GetMatches = (Mf_GetMatches_Func)Bt2_MatchFinder_GetMatches; ...
void Mf_CreateVTable(CMatchFinder *p, IMatchFinder *vTable) { if (!p->btMode) { vTable->GetMatches = (Mf_GetMatches_Func)Hc4_MatchFinder_GetMatches; vTable->Skip = (Mf_Skip_Func)Hc4_MatchFinder_Skip; } else if (p->numHashBytes == 2) { vTable->GetMatches = (Mf_GetMatches_Func)Bt2_MatchFinder_GetMatches; ...
Mf_CreateVTable
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void Mf_Free(CMatchFinder *p) { free(p->hash); p->hash = 0; free(p->bufferBase); p->bufferBase = 0; }
void Mf_Free(CMatchFinder *p) { free(p->hash); p->hash = 0; free(p->bufferBase); p->bufferBase = 0; }
Mf_Free
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
int Mf_Init(CMatchFinder *p, const int ifd, const int mc, uint32_t historySize, uint32_t keepAddBufferBefore, uint32_t matchMaxLen, uint32_t keepAddBufferAfter) { uint32_t v7; unsigned int hs; uint32_t hsb; uint32_t hsa; uint32_t i; uint32_t newCyclicBufferSize; p->hash = 0; p->...
int Mf_Init(CMatchFinder *p, const int ifd, const int mc, uint32_t historySize, uint32_t keepAddBufferBefore, uint32_t matchMaxLen, uint32_t keepAddBufferAfter) { const uint32_t sizeReserv = (historySize >> 1) + (keepAddBufferBefore + matchMaxLen + keepAddBufferAfter) / 2 + (1 << 1...
Mf_Init
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void Mf_MovePos(CMatchFinder *p) { ++p->cyclicBufferPos; ++p->buffer; if (++p->pos == p->posLimit) Mf_CheckLimits(p); }
static void Mf_MovePos(CMatchFinder *p) { MOVE_POS; }
Mf_MovePos
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void Mf_Normalize(CMatchFinder *p) { uint32_t subValue; subValue = (p->pos - p->historySize - 1) & 0xFFFFFC00; Mf_Normalize3(subValue, p->hash, p->numSons + p->hashSizeSum); p->posLimit -= subValue; p->pos -= subValue; p->streamPos -= subValue; }
static void Mf_Normalize(CMatchFinder *p) { uint32_t subValue = (p->pos - p->historySize - 1) & kNormalizeMask; Mf_Normalize3(subValue, p->hash, p->hashSizeSum + p->numSons); p->posLimit -= subValue; p->pos -= subValue; p->streamPos -= subValue; }
Mf_Normalize
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void Mf_Normalize3(uint32_t subValue, CLzRef *items, uint32_t numItems) { uint32_t i; uint32_t value; uint32_t valuea; for (i = 0; i < numItems; ++i) { value = items[i]; if (value > subValue) valuea = value - subValue; else valuea = 0; items[i] = valuea; } }
static void Mf_Normalize3(uint32_t subValue, CLzRef *items, uint32_t numItems) { uint32_t i; for (i = 0; i < numItems; i++) { uint32_t value = items[i]; if (value <= subValue) value = kEmptyHashValue; else value -= subValue; items[i] = value; } }
Mf_Normalize3
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void Mf_ReadBlock(CMatchFinder *p) { int size; int rd; uint8_t *dest; if (!p->streamEndWasReached && !p->result) { do { dest = &p->buffer[p->streamPos - p->pos]; size = LODWORD(p->bufferBase) + p->blockSize - (_DWORD)dest; if (!size) break; rd = readblock(p->infd, dest, size...
static void Mf_ReadBlock(CMatchFinder *p) { if (p->streamEndWasReached || p->result != SZ_OK) return; for (;;) { uint8_t *const dest = p->buffer + (p->streamPos - p->pos); const int size = (p->bufferBase + p->blockSize - dest); int rd; if (size == 0) return; rd = readblock(p->infd, des...
Mf_ReadBlock
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void Mf_SetLimits(CMatchFinder *p) { uint32_t limit; uint32_t limit2; uint32_t limit2a; uint32_t lenLimit; limit = ~p->pos; if (p->cyclicBufferSize - p->cyclicBufferPos < limit) limit = p->cyclicBufferSize - p->cyclicBufferPos; limit2 = p->streamPos - p->pos; if (limit2 > p->keepSizeAfter) limi...
static void Mf_SetLimits(CMatchFinder *p) { uint32_t limit = kMaxValForNormalize - p->pos; uint32_t limit2 = p->cyclicBufferSize - p->cyclicBufferPos; if (limit2 < limit) limit = limit2; limit2 = p->streamPos - p->pos; if (limit2 <= p->keepSizeAfter) { if (limit2 > 0) limit2 = 1; } else li...
Mf_SetLimits
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void MovePos(CLzmaEnc *p, uint32_t num) { if (num) { p->additionalOffset += num; p->matchFinder.Skip(&p->matchFinderBase, num); } }
static void MovePos(CLzmaEnc *p, uint32_t num) { #ifdef SHOW_STAT ttt += num; printf("\n MovePos %d", num); #endif if (num != 0) { p->additionalOffset += num; p->matchFinder.Skip(&p->matchFinderBase, num); } }
MovePos
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void Pp_show_msg(Pretty_print *const pp, const char *const msg) { if (verbosity >= 0) { if (pp->first_post) { pp->first_post = 0; fputs(pp->padded_name, _TMC_END__); if (!msg) fflush(_TMC_END__); } if (msg) fprintf(_TMC_END__, "%s\n", msg); } }
static void Pp_show_msg(struct Pretty_print *const pp, const char *const msg) { if (verbosity < 0) return; if (pp->first_post) { pp->first_post = false; fputs(pp->padded_name, stderr); if (!msg) fflush(stderr); } if (msg) fprintf(stderr, "%s\n", msg); }
Pp_show_msg
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void RangeEnc_EncodeBit(CRangeEnc *p, int *prob, uint32_t symbol) { uint32_t ttt; uint32_t ttta; uint32_t newBound; ttt = *prob; newBound = (p->range >> 11) * *prob; if (symbol) { p->low += newBound; p->range -= newBound; ttta = ttt - (ttt >> 5); } else { p->range = newBound; ttta = (...
static void RangeEnc_EncodeBit(CRangeEnc *p, int *prob, uint32_t symbol) { uint32_t ttt = *prob; uint32_t newBound = (p->range >> kNumBitModelTotalBits) * ttt; if (symbol == 0) { p->range = newBound; ttt += (kBitModelTotal - ttt) >> kNumMoveBits; } else { p->low += newBound; p->range -= newBound...
RangeEnc_EncodeBit
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void RangeEnc_EncodeDirectBits(CRangeEnc *p, uint32_t value, int numBits) { do { p->range >>= 1; p->low += -((value >> --numBits) & 1) & p->range; if (p->range <= 0xFFFFFF) { p->range <<= 8; RangeEnc_ShiftLow(p); } } while (numBits); }
static void RangeEnc_EncodeDirectBits(CRangeEnc *p, uint32_t value, int numBits) { do { p->range >>= 1; p->low += p->range & (0 - ((value >> --numBits) & 1)); if (p->range < kTopValue) { p->range <<= 8; RangeEnc_ShiftLow(p); } } while (numBits != 0);...
RangeEnc_EncodeDirectBits
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void RangeEnc_FlushData(CRangeEnc *p) { int i; for (i = 0; i <= 4; ++i) RangeEnc_ShiftLow(p); }
static void RangeEnc_FlushData(CRangeEnc *p) { int i; for (i = 0; i < 5; i++) RangeEnc_ShiftLow(p); }
RangeEnc_FlushData
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void RangeEnc_FlushStream(CRangeEnc *p) { int num; if (!p->res) { num = p->buf - p->bufBase; if (num != writeblock(p->outfd, p->bufBase, num)) p->res = 9; p->processed += num; p->buf = p->bufBase; } }
static void RangeEnc_FlushStream(CRangeEnc *p) { int num; if (p->res != SZ_OK) return; num = p->buf - p->bufBase; if (num != writeblock(p->outfd, p->bufBase, num)) p->res = SZ_ERROR_WRITE; p->processed += num; p->buf = p->bufBase; }
RangeEnc_FlushStream
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void RangeEnc_Free(CRangeEnc *p) { free(p->bufBase); p->bufBase = 0; }
static void RangeEnc_Free(CRangeEnc *p) { free(p->bufBase); p->bufBase = 0; }
RangeEnc_Free
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
int RangeEnc_Init(CRangeEnc *p, const int outfd) { p->low = 0; p->processed = 0; p->range = -1; p->cacheSize = 1; p->outfd = outfd; p->res = 0; p->cache = 0; p->bufBase = (uint8_t *)malloc(0x10000u); p->buf = p->bufBase; if (!p->bufBase) return 0; p->bufLim = p->bufBase + 0x10000; return 1; ...
static int RangeEnc_Init(CRangeEnc *p, const int outfd) { p->low = 0; p->processed = 0; p->range = 0xFFFFFFFF; p->cacheSize = 1; p->outfd = outfd; p->res = SZ_OK; p->cache = 0; p->buf = p->bufBase = (uint8_t *)malloc(RC_BUF_SIZE); if (!p->bufBase) return 0; p->bufLim = p->bufBase + RC_BUF_SIZE; ...
RangeEnc_Init
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void RangeEnc_ShiftLow(CRangeEnc *p) { uint8_t *buf; uint8_t temp; if ((unsigned int)p->low <= 0xFEFFFFFF || HIDWORD(p->low)) { temp = p->cache; do { buf = p->buf; *buf = HIDWORD(p->low) + temp; p->buf = buf + 1; if (buf + 1 == p->bufLim) RangeEnc_FlushStream(p); tem...
static void RangeEnc_ShiftLow(CRangeEnc *p) { if ((uint32_t)p->low < (uint32_t)0xFF000000 || (int)(p->low >> 32) != 0) { uint8_t temp = p->cache; do { uint8_t *buf = p->buf; *buf++ = (uint8_t)(temp + (uint8_t)(p->low >> 32)); p->buf = buf; if (buf == p->bufLim) RangeEnc_FlushSt...
RangeEnc_ShiftLow
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void RcTree_Encode(CRangeEnc *rc, int *probs, int numBitLevels, uint32_t symbol) { uint32_t m; m = 1; while (numBitLevels) { RangeEnc_EncodeBit(rc, &probs[m], (symbol >> --numBitLevels) & 1); m = (symbol >> numBitLevels) & 1 | (2 * m); } }
static void RcTree_Encode(CRangeEnc *rc, int *probs, int numBitLevels, uint32_t symbol) { uint32_t m = 1; int i; for (i = numBitLevels; i != 0;) { uint32_t bit; i--; bit = (symbol >> i) & 1; RangeEnc_EncodeBit(rc, probs + m, bit); m = (m << 1) | bit; } }
RcTree_Encode
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
uint32_t RcTree_GetPrice(const int *probs, int numBitLevels, uint32_t symbol, uint32_t *ProbPrices) { uint32_t symbola; uint32_t price; price = 0; for (symbola = (1 << numBitLevels) | symbol; symbola != 1; symbola >>= 1) price += ProbPrices[(int)(probs[symbola >> 1] ^ -(sym...
static uint32_t RcTree_GetPrice(const int *probs, int numBitLevels, uint32_t symbol, uint32_t *ProbPrices) { uint32_t price = 0; symbol |= (1 << numBitLevels); while (symbol != 1) { price += GET_PRICEa(probs[symbol >> 1], symbol & 1); symbol >>= 1; } return price; }
RcTree_GetPrice
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void RcTree_ReverseEncode(CRangeEnc *rc, int *probs, int numBitLevels, uint32_t symbol) { uint32_t m; int i; m = 1; for (i = 0; i < numBitLevels; ++i) { RangeEnc_EncodeBit(rc, &probs[m], symbol & 1); m = symbol & 1 | (2 * m); symbol >>= 1; } }
static void RcTree_ReverseEncode(CRangeEnc *rc, int *probs, int numBitLevels, uint32_t symbol) { uint32_t m = 1; int i; for (i = 0; i < numBitLevels; i++) { uint32_t bit = symbol & 1; RangeEnc_EncodeBit(rc, probs + m, bit); m = (m << 1) | bit; symbol >>= 1; } }
RcTree_ReverseEncode
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
uint32_t RcTree_ReverseGetPrice(const int *probs, int numBitLevels, uint32_t symbol, uint32_t *ProbPrices) { uint32_t price; uint32_t m; uint32_t bit; price = 0; m = 1; while (numBitLevels) { bit = symbol & 1; symbol >>= 1; price += ProbPrices[(int)(probs[m] ^ -b...
static uint32_t RcTree_ReverseGetPrice(const int *probs, int numBitLevels, uint32_t symbol, uint32_t *ProbPrices) { uint32_t price = 0; uint32_t m = 1; int i; for (i = numBitLevels; i != 0; i--) { uint32_t bit = symbol & 1; symbol >>= 1; price += GET_PRICEa(pro...
RcTree_ReverseGetPrice
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
uint32_t ReadMatchDistances(CLzmaEnc *p, uint32_t *numDistancePairsRes) { uint32_t lenRes; uint32_t numAvail; uint32_t numPairs; const uint8_t *pby; lenRes = 0; p->numAvail = Mf_GetNumAvailableBytes(&p->matchFinderBase); numPairs = p->matchFinder.GetMatches(&p->matchFinderBase, p->matches); if (numPair...
static uint32_t ReadMatchDistances(CLzmaEnc *p, uint32_t *numDistancePairsRes) { uint32_t lenRes = 0, numPairs; p->numAvail = Mf_GetNumAvailableBytes(&p->matchFinderBase); numPairs = p->matchFinder.GetMatches(&p->matchFinderBase, p->matches); #ifdef SHOW_STAT printf("\n i = %d numPairs = %d ", ttt, numPairs ...
ReadMatchDistances
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void SkipMatchesSpec(uint32_t lenLimit, uint32_t curMatch, uint32_t pos, const uint8_t *cur, CLzRef *son, uint32_t _cyclicBufferPos, uint32_t _cyclicBufferSize, uint32_t cutValue) { uint32_t v8; uint32_t v9; uint32_t v10; uint32_t len0; uint32_t len1; uint32_t len; ...
static void SkipMatchesSpec(uint32_t lenLimit, uint32_t curMatch, uint32_t pos, const uint8_t *cur, CLzRef *son, uint32_t _cyclicBufferPos, uint32_t _cyclicBufferSize, uint32_t cutValue) { CLzRef *ptr0 = son + (_cyclicBufferPos << 1) ...
SkipMatchesSpec
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
char add_error(Arg_parser *const ap, const char *const msg) { int len; char *tmp; len = strlen(msg); tmp = (char *)ap_resize_buffer(ap->error, ap->error_size + len + 1); if (!tmp) return 0; ap->error = tmp; strncpy(&ap->error[ap->error_size], msg, len + 1); ap->error_size += len; return 1; }
static char add_error(struct Arg_parser *const ap, const char *const msg) { const int len = strlen(msg); void *tmp = ap_resize_buffer(ap->error, ap->error_size + len + 1); if (!tmp) return 0; ap->error = (char *)tmp; strncpy(ap->error + ap->error_size, msg, len + 1); ap->error_size += len; return 1; }
add_error
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
bool check_tty_in(const char *const input_filename, const int infd, const Mode program_mode, int *const retval) { if (program_mode != Mode_m_decompress && program_mode != Mode_m_test || !isatty(infd)) return 1; show_file_error(input_filename, "I won't read compressed da...
static bool check_tty_in(const char *const input_filename, const int infd, const enum Mode program_mode, int *const retval) { if ((program_mode == m_decompress || program_mode == m_test) && isatty(infd)) { show_file_error(input_filename, "I won't read compressed ...
check_tty_in
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void cleanup_and_fail(const int retval) { set_signals((void (*)(int))((char *)&dword_0 + 1)); if (delete_output_on_interrupt) { delete_output_on_interrupt = 0; if (verbosity >= 0) fprintf(_TMC_END__, "%s: Deleting output file '%s', if it exists.\n", "pdlzip", output_filename); if (ou...
static void cleanup_and_fail(const int retval) { set_signals(SIG_IGN); if (delete_output_on_interrupt) { delete_output_on_interrupt = false; if (verbosity >= 0) fprintf(stderr, "%s: Deleting output file '%s', if it exists.\n", program_name, output_filename); if (outfd >= 0) { c...
cleanup_and_fail
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
int compress(const Lzma_options *const encoder_options, Pretty_print *const pp, const int infd) { int v3; int match_len_limit; int dictionary_size; int *v7; int retval; CLzmaEncHandle encoder; Lzip_header header; unsigned long v12; v12 = __readfsqword(0x28u); retval = 0; Lh_set_magic...
static int compress(const struct Lzma_options *const encoder_options, struct Pretty_print *const pp, const int infd) { int retval = 0; CLzmaEncHandle encoder = 0; Lzip_header header; Lh_set_magic(header); if (verbosity >= 1) Pp_show_msg(pp, 0); if (Lh_set_dictionary_size(header, enc...
compress
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
int decompress(const int infd, Pretty_print *const pp, const bool ignore_trailing, const bool loose_trailing, const bool testing) { int v6; int v7; uint8_t v8; const char *v9; const char *v10; bool lzip_mode; bool first_member; int inPos; int inSize; int retval; int i...
static int decompress(const int infd, struct Pretty_print *const pp, const bool ignore_trailing, const bool loose_trailing, const bool testing) { uint64_t unpackSize = 0; CLzmaDec decoder; uint8_t inBuf[IN_BUF_SIZE]; int inPos = 0, inSize = 0; int retval = 0; bool...
decompress
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
const char *format_num3(unsigned long num) { int v1; unsigned long numa; char prefix; bool split; int i; int ia; int ib; char *p; numa = num; v1 = current_4++; current_4 %= 8; p = &buffer_3[32 * v1 + 31]; *p = 0; if (num > 0x400) { prefix = 0; for (i = 0; i <= 7 && numa > 0x3FF && (...
static const char *format_num3(unsigned long long num) { const char *const si_prefix = "kMGTPEZY"; const char *const binary_prefix = "KMGTPEZY"; enum { buffers = 8, bufsize = 4 * sizeof(long long) }; static char buffer[buffers][bufsize]; static int current = 0; int i; char *const buf = buffer[current++]; ...
format_num3
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
int get_dict_size(const char *const arg, const char *const option_name) { char *tail; long bits; unsigned long v5; v5 = __readfsqword(0x28u); bits = strtol(arg, &tail, 0); if (bits <= 11 || bits > 27 || *tail) return getnum(arg, option_name, 0x1000u, 0x8000000u); else return 1 << bits; }
static int get_dict_size(const char *const arg, const char *const option_name) { char *tail; const long bits = strtol(arg, &tail, 0); if (bits >= min_dictionary_bits && bits <= max_dictionary_bits_c && *tail == 0) return 1 << bits; return getnum(arg, option_name, min_dictionary_size, max_dictionary_si...
get_dict_size
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
unsigned long getnum(const char *const arg, const char *const option_name, const unsigned long llimit, const unsigned long ulimit) { unsigned int v4; const char *v5; const char *v6; int exponent; int i; char *tail; unsigned long result; unsigned long v14; v14 = __readfsqword(0x28...
static unsigned long getnum(const char *const arg, const char *const option_name, const unsigned long llimit, const unsigned long ulimit) { char *tail; errno = 0; unsigned long result = strtoul(arg, &tail, 0); if (tail == arg) {...
getnum
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void internal_error(const char *const msg) { if (verbosity >= 0) fprintf(_TMC_END__, "%s: internal error: %s\n", "pdlzip", msg); exit(3); }
static void internal_error(const char *const msg) { if (verbosity >= 0) fprintf(stderr, "%s: internal error: %s\n", program_name, msg); exit(3); }
internal_error
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
int lzip_decode(CLzmaDec *decoder, const int infd, Pretty_print *const pp, uint8_t *inBuf, int *const inPos, int *const inSize, const unsigned int dictionary_size) { int v8; int *v9; int v10; int v11; bool error; uint32_t crc; uint32_t inProcessed; uint32_t outProcessed; ...
static int lzip_decode(CLzmaDec *decoder, const int infd, struct Pretty_print *const pp, uint8_t inBuf[], int *const inPos, int *const inSize, const unsigned dictionary_size) { unsigned long long member_size = Lh_size, data_size = 0; uint8_t outBu...
lzip_decode
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
int lzma_decode(uint64_t unpackSize, CLzmaDec *decoder, const int infd, uint8_t *inBuf, int *const inPos, int *const inSize, const unsigned int dictionary_size, const bool testing) { int v9; int *v10; const char *v11; unsigned long unpackSizea; uint32_t inProcessed; uint32_t ...
static int lzma_decode(uint64_t unpackSize, CLzmaDec *decoder, const int infd, uint8_t inBuf[], int *const inPos, int *const inSize, const unsigned dictionary_size, const bool testing) { unsigned long long member_size = lzma_header_size, data_size = 0; uint8_t outBuf[OU...
lzma_decode
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
int main(int argc, const char **argv, const char **envp) { const char *v4; int v5; int v6; int v7; int v8; const char **v9; int v10; bool v11; bool v12; int v13; stat *p_in_stats; int *v15; int *v16; const char *v17; bool force; bool ignore_trailing; bool keep_input_files; bool loose...
int main(const int argc, const char *const argv[]) { const struct Lzma_options option_mapping[] = { {1 << 16, 5}, {1 << 20, 5}, {3 << 19, 6}, {1 << 21, 8}, {3 << 20, 12}, {1 << 22, 20}, {1 << 23, 36}, {1 << 24, 68}, {3 << 23, 132}, {1 << 25, 273}}; struct Lzma_options encoder_options = optio...
main
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
int open_instream(const char *const name, stat *const in_statsp, const Mode program_mode, const int eindex, const bool one_to_one, const bool recompress) { int v7; bool v8; const char *v9; int infd; int i; if (program_mode || recompress || eindex < 0) { infd = open64...
static int open_instream(const char *const name, struct stat *const in_statsp, const enum Mode program_mode, const int eindex, const bool one_to_one, const bool recompress) { if (program_mode == m_compress && !recompress && eindex >= 0) { if (verbosity >= 0) ...
open_instream
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
bool open_outstream(const bool force, const bool protect) { unsigned int v2; int *v3; char *v4; int flags; if (protect) v2 = 384; else v2 = 438; if (force) flags = 577; else flags = 193; outfd = open64(output_filename, flags, v2); if (outfd < 0) { if (verbosity >= 0) { if ...
static bool open_outstream(const bool force, const bool protect) { const mode_t usr_rw = S_IRUSR | S_IWUSR; const mode_t all_rw = usr_rw | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; const mode_t outfd_mode = protect ? usr_rw : all_rw; int flags = O_CREAT | O_WRONLY | O_BINARY; if (force) flags |= O_TRUNC; e...
open_outstream
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
bool read_inbuf(const int infd, uint8_t *inBuf, int *const inPos, int *const inSize) { int *v4; int rest; int rd; if (*inPos < *inSize) { if (*inPos > 0) { memmove(inBuf, &inBuf[*inPos], *inSize - *inPos); *inSize -= *inPos; } } else { *inSize = 0; } *inPos = 0; ...
static bool read_inbuf(const int infd, uint8_t inBuf[], int *const inPos, int *const inSize) { int rest; if (*inPos >= *inSize) *inSize = 0; else if (*inPos > 0) { memmove(inBuf, inBuf + *inPos, *inSize - *inPos); *inSize -= *inPos; } *inPos = 0; rest = IN_BUF_SIZE - *inSi...
read_inbuf
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void *resize_buffer(void *buf, const unsigned int min_size) { void *bufa; if (buf) bufa = realloc(buf, min_size); else bufa = malloc(min_size); if (!bufa) { show_error("Not enough memory.", 0, 0); cleanup_and_fail(1); } return bufa; }
static void *resize_buffer(void *buf, const unsigned min_size) { if (buf) buf = realloc(buf, min_size); else buf = malloc(min_size); if (!buf) { show_error(mem_msg, 0, false); cleanup_and_fail(1); } return buf; }
resize_buffer
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void set_c_outname(const char *const name, const bool filenames_given, const bool force_ext) { int v3; char *v4; v3 = strlen(name); output_filename = (char *)resize_buffer(output_filename, v3 + 4); strcpy(output_filename, name); if (force_ext || !filenames_given && extension_index(output...
static void set_c_outname(const char *const name, const bool filenames_given, const bool force_ext) { output_filename = resize_buffer( output_filename, strlen(name) + strlen(known_extensions[0].from) + 1); strcpy(output_filename, name); if (force_ext || (!filenames_given && extens...
set_c_outname
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void set_d_outname(const char *const name, const int eindex) { int v2; unsigned int name_len; unsigned int from_len; name_len = strlen(name); if (eindex < 0 || (from_len = strlen(known_extensions[eindex].from), name_len <= from_len)) { output_filename = (char *)resize_buffer(output_f...
static void set_d_outname(const char *const name, const int eindex) { const unsigned name_len = strlen(name); if (eindex >= 0) { const char *const from = known_extensions[eindex].from; const unsigned from_len = strlen(from); if (name_len > from_len) { output_filename = resize_buffer( out...
set_d_outname
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void show_error(const char *const msg, const int errcode, const bool help) { char *v3; const char *v4; if (verbosity >= 0) { if (msg && *msg) { if (errcode <= 0) v3 = (char *)&unk_133BE; else v3 = strerror(errcode); if (errcode <= 0) v4 = (const char *)&unk_133BE; ...
static void show_error(const char *const msg, const int errcode, const bool help) { if (verbosity < 0) return; if (msg && msg[0]) fprintf(stderr, "%s: %s%s%s\n", program_name, msg, (errcode > 0) ? ": " : "", (errcode > 0) ? strerror(errcode) : ""); if (help) fprintf(...
show_error
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void show_file_error(const char *const filename, const char *const msg, const int errcode) { char *v3; const char *v4; if (verbosity >= 0) { if (errcode <= 0) v3 = (char *)&unk_133BE; else v3 = strerror(errcode); if (errcode <= 0) v4 = (const char *)&unk_133BE; ...
static void show_file_error(const char *const filename, const char *const msg, const int errcode) { if (verbosity >= 0) fprintf(stderr, "%s: %s: %s%s%s\n", program_name, filename, msg, (errcode > 0) ? ": " : "", (errcode > 0) ? strerror(errcode) : ""); }
show_file_error
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void show_header(const unsigned int dictionary_size) { bool exact; unsigned int num; int i; const char *p; const char *np; const char *prefix[8]; unsigned long v7; v7 = __readfsqword(0x28u); prefix[0] = "Ki"; prefix[1] = "Mi"; prefix[2] = "Gi"; prefix[3] = "Ti"; prefix[4] = "Pi"; prefix[5] ...
static void show_header(const unsigned dictionary_size) { enum { factor = 1024 }; const char *const prefix[8] = {"Ki", "Mi", "Gi", "Ti", "Pi", "Ei", "Zi", "Yi"}; const char *p = ""; const char *np = " "; unsigned num = dictionary_size; bool exact = (num % factor == 0); i...
show_header
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void show_help() { printf( "Pdlzip is a permissively licensed implementation of the lzip data\n" "compressor, intended for those who can't distribute (or even use) GPL\n" "licensed Free Software. The name of pdlzip comes from 'public domain " "lzip'.\n" "Pdlzip is written in C and is (ho...
static void show_help(void) { printf( "Pdlzip is a permissively licensed implementation of the lzip data\n" "compressor, intended for those who can't distribute (or even use) GPL\n" "licensed Free Software. The name of pdlzip comes from 'public domain " "lzip'.\n" "Pdlzip is written in C...
show_help
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void show_results(const long data_size, const long member_size, const unsigned int crc, const unsigned int dictionary_size, const bool lzip_mode) { if (verbosity > 1) { if (verbosity > 3) show_header(dictionary_size); if (data_size && member_size) fprintf(_TMC_E...
static void show_results(const long long data_size, const long long member_size, const unsigned crc, const unsigned dictionary_size, const bool lzip_mode) { if (verbosity >= 2) { if (verbosity >= 4) show_header(dictionary_size); if (data_size == 0 || mem...
show_results
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
void show_version() { printf("%s %s\n", "pdlzip", "1.12"); printf("Copyright (C) %s Antonio Diaz Diaz.\n", "2022"); puts("Public Domain 2009 Igor Pavlov.\n" "License 2-clause BSD.\n" "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent pe...
static void show_version(void) { printf("%s %s\n", program_name, PROGVERSION); printf("Copyright (C) %s Antonio Diaz Diaz.\n", program_year); printf("Public Domain 2009 Igor Pavlov.\n" "License 2-clause BSD.\n" "This is free software: you are free to change and redistribute it.\n" "Ther...
show_version
pdlzip-1.12
app-arch
O0/app-arch/pdlzip-1.12/pdlzip
ida
O0
bool base64_decode_alloc_ctx(base64_decode_context *ctx, const char *in, size_t inlen, char **out, size_t *outlen) { size_t needlen[2]; needlen[1] = __readfsqword(0x28u); needlen[0] = 3 * ((inlen >> 2) + 1); *out = (char *)malloc(needlen[0]); if (!*out) return 1; if (!base6...
bool base64_decode_alloc_ctx(struct base64_decode_context *ctx, const char *in, size_t inlen, char **out, size_t *outlen) { size_t needlen = 3 * (inlen / 4) + 3; *out = malloc(needlen); if (!*out) return true; if (!base64_decode_ctx(ctx, in, inlen, *out, &needlen)) { free...
base64_decode_alloc_ctx
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
bool base64_decode_ctx(base64_decode_context *ctx, const char *in, size_t inlen, char *out, size_t *outlen) { char *outa; size_t inlena; const char *ina; base64_decode_context *ctxa; bool flush_ctx; bool ignore_newlines; unsigned int ctx_i; size_t outleft; size_t outleft_save; ...
bool base64_decode_ctx(struct base64_decode_context *ctx, const char *restrict in, size_t inlen, char *restrict out, size_t *outlen) { size_t outleft = *outlen; bool ignore_newlines = ctx != NULL; bool flush_ctx = false; unsigned int ctx_i = 0; if (ignore_newline...
base64_decode_ctx
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
void base64_decode_ctx_init(base64_decode_context *ctx) { ctx->i = 0; }
void base64_decode_ctx_init(struct base64_decode_context *ctx) { ctx->i = 0; }
base64_decode_ctx_init
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
void base64_encode(const char *in, size_t inlen, char *out, size_t outlen) { int v4; char *v5; char v6; char v7; int v8; char *v9; char v10; char v11; char v12; char *v13; char v14; char *v15; size_t outlena; char *outa; size_t inlena; const char *ina; ina = in; inlena = inlen; ou...
void base64_encode(const char *restrict in, size_t inlen, char *restrict out, size_t outlen) { if (outlen % 4 == 0 && inlen == outlen / 4 * 3) { base64_encode_fast(in, inlen, out); return; } while (inlen && outlen) { *out++ = b64c[to_uchar(in[0]) >> 2]; if (!--outlen) br...
base64_encode
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
size_t base64_encode_alloc(const char *in, size_t inlen, char **out) { size_t outlen; outlen = 4 * ((inlen + 2) / 3) + 1; if (inlen <= outlen) { *out = (char *)malloc(outlen); if (*out) { base64_encode(in, inlen, *out, outlen); return 4 * ((inlen + 2) / 3); } else { return 4 * ((inl...
size_t base64_encode_alloc(const char *in, size_t inlen, char **out) { size_t outlen = 1 + BASE64_LENGTH(inlen); if (inlen > outlen) { *out = NULL; return 0; } *out = malloc(outlen); if (!*out) return outlen; base64_encode(in, inlen, *out, outlen); return outlen - 1; }
base64_encode_alloc
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
void base64_encode_fast(const char *in, size_t inlen, char *out) { char v3; char v4; int v5; char *v6; while (inlen) { *out = b64c[to_uchar_0(*in) >> 2]; v3 = 16 * to_uchar_0(*in); out[1] = b64c[(v3 + (to_uchar_0(in[1]) >> 4)) & 0x3F]; v4 = 4 * to_uchar_0(in[1]); out[2] = b64c[(v4 + (to_u...
static void base64_encode_fast(const char *restrict in, size_t inlen, char *restrict out) { while (inlen) { *out++ = b64c[to_uchar(in[0]) >> 2]; *out++ = b64c[((to_uchar(in[0]) << 4) + (to_uchar(in[1]) >> 4)) & 0x3f]; *out++ = b64c[((to_uchar(in[1]) << 2) + (to_uchar(in[2]) ...
base64_encode_fast
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
void decode_fname(char *buf) { char *v1; char *v2; char *v3; size_t sz; char *out; char *tmp; unsigned long v7; v7 = __readfsqword(0x28u); sz = strlen(buf); out = (char *)malloc(2 * (sz + 2)); if (!sz) { v1 = aoGetsText("output name is empty"); die(2, v1); } tmp = &out[sz + 4]; if (...
static void decode_fname(char *buf) { size_t sz = strlen(buf); char *out = malloc(2 * sz + 4); if (sz == 0) die(UUDECODE_EXIT_INVALID, _("output name is empty")); { char *tmp = out + sz + 4; if (out == NULL) fserr(UUDECODE_EXIT_NO_MEM, "malloc", _("output file name")); memcpy(out, buf,...
decode_fname
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
char *expand_tilde(char *buf) { char *v1; char *v3; char *v4; size_t v5; char *v6; char *bufa; const char *homedir; char *pz; char *pza; struct passwd *pw; size_t sz; char *outname; if (buf[1] == 47) { homedir = get_env_homedir(); bufa = buf + 2; } else { for (pz = buf + 1; *pz ...
static char *expand_tilde(char *buf) { char *outname; char const *homedir; if (buf[1] == '/') { homedir = get_env_homedir(); buf += 2; } else { struct passwd *pw; char *pz = buf + 1; while (*pz != '/' #ifdef __MINGW32__ && *pz != '\\' #endif ) ++pz; if (*pz == NUL) ...
expand_tilde
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
char *get_4(base64_decode_context *ctx, const char **in, const char *in_end, size_t *n_non_newline) { char *v5; unsigned int v6; char c; const char *p; char *t; if (ctx->i == 4) ctx->i = 0; if (ctx->i || (t = (char *)*in, in_end - *in <= 3) || memchr(t, 10, 4u)) { p = *in; while (...
static char *get_4(struct base64_decode_context *ctx, char const *restrict *in, char const *restrict in_end, size_t *n_non_newline) { if (ctx->i == 4) ctx->i = 0; if (ctx->i == 0) { char const *t = *in; if (4 <= in_end - *in && memchr(t, '\n', 4) == NULL) { *in += 4; *n_...
get_4
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
bool isbase64(char ch_0) { return (unsigned char)~b64[to_uchar_0(ch_0)] >> 7; }
bool isbase64(char ch) { return uchar_in_range(to_uchar(ch)) && 0 <= b64[to_uchar(ch)]; }
isbase64
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
int main(int argc, const char **argv, const char **envp) { char *v3; char *v4; const char **v5; int *v6; const char *const *argva; int argca; uudecode_exit_code_t exit_status; uudecode_exit_code_t exit_statusa; int ct; const char *f; exit_status = UUDECODE_EXIT_SUCCESS; setlocale(6, &locale); ...
int main(int argc, char const *const *argv) { uudecode_exit_code_t exit_status = UUDECODE_EXIT_SUCCESS; setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); { int ct = optionProcess(&uudecodeOptions, argc, (char **)(void *)argv); argc -= ct; argv += ct; } switch ...
main
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
uudecode_exit_code_t read_base64(const char *inname, const char *outname) { char *v2; size_t v4; char *v5; size_t outlen; base64_decode_context ctx; char buf_in[16384]; char buf_out[16392]; unsigned long v10; v10 = __readfsqword(0x28u); base64_decode_ctx_init(&ctx); while (1) { outlen = 0x400...
static uudecode_exit_code_t read_base64(char const *inname, char const *outname) { char buf_in[2 * BUFSIZ]; char buf_out[2 * BUFSIZ]; struct base64_decode_context ctx; base64_decode_ctx_init(&ctx); for (;;) { size_t outlen = sizeof(buf_out); if (fgets(buf_in, ...
read_base64
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
uudecode_exit_code_t read_stduu(const char *inname, const char *outname) { char *v2; char *v4; int n; char *p; char buf[16392]; unsigned long v8; v8 = __readfsqword(0x28u); while (1) { if (!fgets_unlocked(buf, 0x4000, stdin)) { v2 = aoGetsText("%s: Short file"); die(2, v2, inname); ...
while (0) static uudecode_exit_code_t read_stduu(char const *inname, char const *outname) { char buf[2 * BUFSIZ]; while (1) { int n; char *p = buf; if (fgets((char *)buf, sizeof(buf), stdin) == NULL) die(UUDECODE_EXIT_INVALID, _("%s: Short ...
read_stduu
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
uudecode_exit_code_t reopen_output(const char *outname, int mode) { char *v2; int *v3; char *v5; int *v6; stat attr; unsigned long v8; v8 = __readfsqword(0x28u); if (access(outname, 0) || lstat(outname, &attr) != -1) { if (freopen(outname, "w", stdout) != stdout) fserr(8, "freopen", outname);...
static uudecode_exit_code_t reopen_output(char const *outname, int mode) { if (!access(outname, F_OK)) { struct stat attr; if (lstat(outname, &attr) == -1) { error(0, errno, _("cannot access %s"), outname); return UUDECODE_EXIT_NO_OUTPUT; } } { FILE *fp = freopen(outname, "w" FOPEN_B...
reopen_output
sharutils-4.15.2-r2
app-arch
O0/app-arch/sharutils-4.15.2-r2/uudecode
ida
O0
int build_exclude(fnm_exclude **ex_ptr, const char *pattern) { char *v3; int skip; int skipa; int dup; char *p; char *pa; char *pb; char *pat; fnm_exclude *exclude; char *pat2; if (!pattern || !*pattern) return -1; exclude = (fnm_exclude *)malloc(0x20u); if (!exclude) return -5; exc...
int build_exclude(fnm_exclude **ex_ptr, const char *pattern) { char *p, *pat, *pat2; fnm_exclude *exclude; if (NULL == pattern || '\0' == *pattern) return -1; exclude = malloc(sizeof(fnm_exclude)); if (NULL == exclude) return MEM_ERROR; exclude->anchored = 0; pat = strdup(pattern); pat2 = pat...
build_exclude
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int check_existing_node(const dirent *de, const tar_entry *t, stat *st) { int type; size_t linkname_len; char linkname[104]; unsigned long v8; v8 = __readfsqword(0x28u); type = convert_lstat_type_tar_type(de->d_name, st); if (type < 0) return -1; if (type == 255) return 1; if (type != t->type...
inline int check_existing_node(const struct dirent *de, const tar_entry *t, struct stat *st) { int type; type = convert_lstat_type_tar_type(de->d_name, st); if (type < 0) return -1; if (TTAR_UNSUPPORTED_TYPE == type) return 1; if (type != t->type) return 2; if (REG...
check_existing_node
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int check_str_chksum(const char *block) { unsigned int x; unsigned int xa; unsigned long chksum; unsigned long chksuma; chksum = 0; for (x = 0; x <= 0x93; ++x) chksum += (unsigned char)block[x]; chksuma = chksum + 256; for (xa = 156; xa <= 0x1FF; ++xa) chksuma += (unsigned char)block[xa]; ret...
int check_str_chksum(const char *block) { unsigned long chksum = 0; unsigned int x; for (x = 0; x < 148; x++) { chksum += (unsigned char)block[x]; } chksum += ' ' * 8; for (x = 156; x < 512; x++) chksum += (unsigned char)block[x]; return (chksum == octal_str2long((char *)(block + TAR_CH...
check_str_chksum
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
unsigned int cleanse_duds(tar_entry **ttar, unsigned int ttar_count) { unsigned int dups; unsigned int x; dups = 0; if (ttar_count && ((*ttar)->type == 0xFF || !(*ttar)->fullname_len)) dups = 1; for (x = 1; x < ttar_count; ++x) { if (ttar[x]->fullname_len == ttar[x - 1]->fullname_len && !...
unsigned int cleanse_duds(tar_entry **ttar, unsigned int ttar_count) { unsigned int dups = 0; unsigned int x; if (ttar_count > 0) { if (TTAR_UNSUPPORTED_TYPE == ttar[0]->type || 0 == ttar[0]->fullname_len) dups++; } for (x = 1; x < ttar_count; x++) { if ((ttar[x]->fullname_len == ttar[x - 1]->fu...
cleanse_duds
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int cmp_tar_entries_loc(const void *te1, const void *te2) { if (**(_DWORD **)te1 > **(_DWORD **)te2) return 1; if (**(_DWORD **)te1 >= **(_DWORD **)te2) return 0; return -1; }
int cmp_tar_entries_loc(const void *te1, const void *te2) { if (TTENT_PTR(te1)->file_loc > TTENT_PTR(te2)->file_loc) return 1; else if (TTENT_PTR(te1)->file_loc < TTENT_PTR(te2)->file_loc) return -1; return 0; }
cmp_tar_entries_loc
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int cmp_tar_entries_name(const void *te1, const void *te2) { int cur; int next; int ret; int reta; char *p1; char *p2; cur = 0; while (1) { p1 = index((const char *)(*(_QWORD *)(*(_QWORD *)te1 + 16LL) + cur), 47); p2 = index((const char *)(*(_QWORD *)(*(_QWORD *)te2 + 16LL) + cur), 47); if ...
int cmp_tar_entries_name(const void *te1, const void *te2) { int ret, cur, next; char *p1, *p2; cur = next = 0; do { p1 = index(TTENT_PTR(te1)->fullname + cur, '/'); p2 = index(TTENT_PTR(te2)->fullname + cur, '/'); if (NULL == p1 && NULL != p2) return -1; else if (NULL != p1 && NULL == p...
cmp_tar_entries_name
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int convert_lstat_type_tar_type(const char *path, stat *st) { if (lstat(path, st)) return -1; switch (st->st_mode & 0xF000) { case 32768u: if (st->st_nlink == 1) return 48; break; case 40960u: return 50; case 16384u: return 53; } return 255; }
int convert_lstat_type_tar_type(const char *path, struct stat *st) { if (lstat(path, st) != 0) return -1; if (S_ISREG(st->st_mode)) { if (st->st_nlink == 1) return REGTYPE; } else if (S_ISDIR(st->st_mode)) return DIRTYPE; return TTAR_UNSUPPORTED_TYPE; }
convert_lstat_type_tar_type
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int copy_whole_file(cfile *tar_cfh, const tar_entry *ttent) { size_t v3; size_t pos; off_u64 len; int fd; off_u32 count; cfile_window *cfw; utimbuf tv; unsigned long v11; v11 = __readfsqword(0x28u); if (global_verbosity) fprintf(stderr, "writing %s\n", ttent->fullname); fd = open(ttent->fulln...
int copy_whole_file(cfile *tar_cfh, const tar_entry *ttent) { int fd; off_u32 count; off_u32 len; cfile_window *cfw; struct utimbuf tv; v1printf("writing %s\n", ttent->fullname); fd = open(ttent->fullname, O_CREAT | O_TRUNC | O_WRONLY, ttent->mode); if (fd < 0) { v0printf("failed writing %s\n", tt...
copy_whole_file
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int enforce_owner(const char *path, const tar_entry *t, stat *st) { stat *sta; stat st2_0; unsigned long v6; sta = st; v6 = __readfsqword(0x28u); if (!st) { if (lstat(path, &st2_0)) return -1; sta = &st2_0; } if ((t->uid == -1 || sta->st_uid == t->uid) && (t->gid == -1 || sta->s...
inline int enforce_owner(const char *path, const tar_entry *t, struct stat *st) { struct stat st2; if (NULL == st) { if (lstat(path, &st2) != 0) return -1; st = &st2; } if ((t->uid != -1 && st->st_uid != t->uid) || (t->gid != -1 && st->st_gid != t->gid)) { if (l...
enforce_owner
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int ensure_dirs(const char *path, mode_t mode, uid_t uid, gid_t gid) { char *p2; char *p; char *pa; stat s; unsigned long v11; v11 = __readfsqword(0x28u); if (is_dir(path, &s)) { if (*__errno_location() == 2) { if (*__errno_location() == 2 && !mkdir(path, 0x1FFu)) { verify_ensure_dir_perm...
int ensure_dirs(const char *path, mode_t mode, uid_t uid, gid_t gid) { struct stat s; char *p2 = NULL, *p = NULL; if (is_dir(path, &s) != 0) { if (ENOENT == errno) { if (ENOENT == errno && mkdir(path, 0777) == 0) goto verify_ensure_dir_perms; p2 = strdup(path); if ('/' == *p2) ...
ensure_dirs
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int ensure_files_layout(const tar_entry **ttar, const unsigned int ttar_count, tar_entry ***missing_ptr, unsigned int *missing_count, tar_entry ***existing_ptr, unsigned int *existing_count, fnm_exclude **excludes) { char *current_dir_name; uns...
int ensure_files_layout(const tar_entry **ttar, const unsigned int ttar_count, tar_entry ***missing_ptr, unsigned int *missing_count, tar_entry ***existing_ptr, unsigned int *existing_count, fnm_exclude **excludes) { unsigned int x, dir_index; ...
ensure_files_layout
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int get_gid(const char *gname, gid_t *gid) { struct group *ggid; if (strncmp(gname, cached_gname, 0x40u)) { ggid = getgrnam(gname); if (!ggid) return 1; strncpy(cached_gname, ggid->gr_name, 0x40u); cached_gid = ggid->gr_gid; } *gid = cached_gid; return 0; }
int get_gid(const char *gname, gid_t *gid) { struct group *ggid = NULL; if (strncmp(gname, (const char *)cached_gname, name_size) != 0) { ggid = getgrnam(gname); if (ggid) { strncpy(cached_gname, (const char *)ggid->gr_name, name_size); cached_gid = ggid->gr_gid; } else { return 1; ...
get_gid
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
char *get_next_arg(int argc, char **argv) { int v2; if (argc <= optind) return 0; v2 = optind++; return argv[v2]; }
char *get_next_arg(int argc, char **argv) { if (argc > optind) return argv[optind++]; return NULL; }
get_next_arg
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int get_uid(const char *uname, uid_t *uid) { struct passwd *uuid; if (strncmp(uname, cached_uname, 0x40u)) { uuid = getpwnam(uname); if (!uuid) return 1; strncpy(cached_uname, uname, 0x40u); cached_uid = uuid->pw_uid; } *uid = cached_uid; return 0; }
int get_uid(const char *uname, uid_t *uid) { struct passwd *uuid = NULL; if (strncmp(uname, cached_uname, name_size) != 0) { uuid = getpwnam(uname); if (uuid) { strncpy(cached_uname, uname, name_size); cached_uid = uuid->pw_uid; } else { return 1; } } *uid = cached_uid; retur...
get_uid
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int is_dir(const char *path, stat *s) { s->st_mode = 0; if (lstat(path, s)) return -1; else return (s->st_mode & 0xF000) != 0x4000; }
int is_dir(const char *path, struct stat *s) { s->st_mode = 0; if (lstat(path, s) != 0) return -1; return S_ISDIR(s->st_mode) ? 0 : 1; }
is_dir
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int is_lnk(const char *path, stat *s) { s->st_mode = 0; if (lstat(path, s)) return -1; else return (s->st_mode & 0xF000) != 40960; }
int is_lnk(const char *path, struct stat *s) { s->st_mode = 0; if (lstat(path, s) != 0) return -1; return S_ISLNK(s->st_mode) ? 0 : 1; }
is_lnk
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int is_reg(const char *path, stat *s) { s->st_mode = 0; if (lstat(path, s)) return -1; else return (s->st_mode & 0xF000) != 0x8000; }
int is_reg(const char *path, struct stat *s) { s->st_mode = 0; if (lstat(path, s) != 0) return -1; return S_ISREG(s->st_mode) ? 0 : 1; }
is_reg
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int main(int argc, const char **argv, const char **envp) { int result; unsigned int ttar_count; uid_t uid; gid_t gid; unsigned int missing_count; unsigned int existing_count; off_u64 bytes_written; int x; unsigned int strip; int preserve_tar_privs; int override_uid; int override_gid; unsigned ...
int main(int argc, char **argv) { char *tarball_name = NULL; char *dir_name = NULL; fnm_exclude **excludes = NULL; cfile tar_cfh; tar_entry *ttar = NULL; tar_entry **ttar_sorted = NULL; unsigned int ttar_count = 0; unsigned int ttar_sorted_count = 0; struct stat s; off_u64 bytes_written = 0; int x...
main
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int match_excludes(const char *dir, const char *file, fnm_exclude **excludes) { int ret; int x; unsigned int dir_depth; char *p; if (!excludes) return 0; dir_depth = 0; for (p = (char *)dir; *p; ++p) { if (*p == 47) ++dir_depth; } ret = 0; for (x = 0; !ret && excludes[x]; ++x) { i...
inline int match_excludes(const char *dir, const char *file, fnm_exclude **excludes) { char *p; int ret, x; unsigned int dir_depth; if (NULL == excludes) return 0; for (dir_depth = 0, p = (char *)dir; '\0' != *p; p++) { if ('/' == *p) dir_depth++; } ret = 0; for...
match_excludes
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
unsigned long octal_str2long(const char *string, unsigned int length) { char *ptr; long x; if (!string[length]) return strtol(string, 0, 8); ptr = strndup(string, length); x = strtol(ptr, 0, 8); free(ptr); return x; }
inline unsigned long octal_str2long(const char *string, unsigned int length) { if (string[length]) { char *ptr = strndup(string, length); unsigned long x; x = strtol((char *)ptr, NULL, 8); free(ptr); return (x); } else return strtol(string, NULL, 8); }
octal_str2long
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int optimize_excludes(char *dpath, fnm_exclude **excludes) { unsigned int dir_depth; int x; signed int ret; int reta; char *d; char *da; const char *dir; char *dira; char *file; char *orig_dir; if (!excludes) return 0; dir_depth = 0; file = 0; for (d = dpath; *d; ++d) { if (*d == 47...
int optimize_excludes(char *dpath, fnm_exclude **excludes) { unsigned int dir_depth; char *d, *dir, *orig_dir, *file; int x; int ret; if (NULL == excludes) return 0; for (dir_depth = 0, file = NULL, d = (char *)dpath; '\0' != *d; d++) { if ('/' == *d) { file = d; dir_depth++; } }...
optimize_excludes
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
void print_usage(const char *prog, const char *usage_portion, usage_options *text, int exit_code) { unsigned int v4; int v5; unsigned int long_len; unsigned int long_lena; usage_options *u_ptr; usage_options *u_ptra; print_version(prog); u_ptr = text; long_len = 0; while (u_ptr->lo...
void print_usage(const char *prog, const char *usage_portion, struct usage_options *text, int exit_code) { struct usage_options *u_ptr; print_version(prog); u_ptr = text; unsigned int long_len = 0; while (1) { if (u_ptr->long_arg == NULL && u_ptr->description == NULL) break; if...
print_usage
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
void print_version(const char *prog) { fprintf(stdout, "tarsync version %s (C) 2005 Brian Harring\n", "0.1"); fwrite("http://dev.gentoo.org/~ferringb/tarsync\n", 1u, 0x28u, stdout); fwrite("THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN " "RISK!\n", 1u, 0x47u, stdout); fwrite...
void print_version(const char *prog) { fprintf(stdout, "tarsync version %s (C) 2005 Brian Harring\n", VERSION); fprintf(stdout, "http://dev.gentoo.org/~ferringb/tarsync\n"); fprintf(stdout, "THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT " "YOUR OWN RISK!\n"); fprintf(stdout, "Report ...
print_version
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int read_entry(cfile *src_cfh, off_u64 start, tar_entry *entry) { int v4; unsigned int name_len; unsigned int name_lena; unsigned int name_lenb; unsigned int prefix_len; char block[520]; unsigned long v11; v11 = __readfsqword(0x28u); if (start != cseek(src_cfh, start, 3)) return -1; if ((unsign...
int read_entry(cfile *src_cfh, off_u64 start, tar_entry *entry) { unsigned char block[512]; unsigned int read_bytes; unsigned int name_len, prefix_len; if (start != cseek(src_cfh, start, CSEEK_FSTART)) { return IO_ERROR; } if ((read_bytes = cread(src_cfh, block, 512)) != 512) { return IO_ERROR; }...
read_entry
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int read_fh_to_tar_entry(cfile *src_cfh, tar_entry **tar_entries, unsigned int *total_count, unsigned int strip_dir) { int v5; off_u64 v6; int err; unsigned int strip_count; tar_entry *entries; tar_entry *entriesa; unsigned long array_size; unsigned long count; unsigned long c...
int read_fh_to_tar_entry(cfile *src_cfh, tar_entry **tar_entries, unsigned int *total_count, unsigned int strip_dir) { tar_entry *entries; unsigned long array_size = 10000; unsigned long count = 0; signed int err = 0; unsigned int strip_count; char *p; if ((entries = (tar_entry *)...
read_fh_to_tar_entry
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int recursively_delete_dir(const char *path) { int ret; const char *p; DIR *curdir; struct dirent *de; char *d; ret = 0; curdir = opendir(path); if (!curdir) return -1; if (chdir(path)) ret = -1; while (1) { de = readdir(curdir); if (!de || ret) break; if (strcmp(de->d_nam...
int recursively_delete_dir(const char *path) { DIR *curdir; struct dirent *de; int ret = 0; curdir = opendir(path); if (NULL == curdir) return -1; if (chdir(path) != 0) ret = -1; while ((de = readdir(curdir)) != NULL && ret == 0) { if (strcmp(de->d_name, ".") == 0 || strcmp(de->d_name, "..")...
recursively_delete_dir
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0
int remove_node(const char *path, stat *st) { stat *sta; stat st2_0; unsigned long v5; sta = st; v5 = __readfsqword(0x28u); if (!st) { if (lstat(path, &st2_0)) { fprintf(stderr, "odd. lstat failed on %s\n", path); return -1; } sta = &st2_0; } if ((sta->st_mode & 0xF000) == 0x400...
int remove_node(const char *path, struct stat *st) { struct stat st2; if (NULL == st) { if (lstat(path, &st2) != 0) { v0printf("odd. lstat failed on %s\n", path); return -1; } st = &st2; } if (S_ISDIR(st->st_mode)) { if (recursively_delete_dir(path) != 0) { v0printf("failed re...
remove_node
tarsync-0.2.1-r2
app-arch
O0/app-arch/tarsync-0.2.1-r2/tarsync
ida
O0