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 |
|---|---|---|---|---|---|---|---|
size_t server_hello__get_packed_size(const ServerHello *message) {
if (message->base.descriptor != &server_hello__descriptor)
__assert_fail("message->base.descriptor == &server_hello__descriptor",
"./log_server.pb-c.c", 0x268u,
"server_hello__get_packed_size");
return protobu... | size_t server_hello__get_packed_size(const ServerHello *message) {
assert(message->base.descriptor == &server_hello__descriptor);
return protobuf_c_message_get_packed_size(
(const ProtobufCMessage *)(message));
} | server_hello__get_packed_size | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
void server_hello__init(ServerHello *message) {
message->base.descriptor = &server_hello__descriptor;
message->base.n_unknown_fields = 0;
message->base.unknown_fields = 0;
message->server_id = (char *)protobuf_c_empty_string;
message->redirect = (char *)protobuf_c_empty_string;
message->n_servers = 0;
mes... | void server_hello__init(ServerHello *message) {
static const ServerHello init_value = SERVER_HELLO__INIT;
*message = init_value;
} | server_hello__init | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
size_t server_hello__pack(const ServerHello *message, uint8_t *out) {
if (message->base.descriptor != &server_hello__descriptor)
__assert_fail("message->base.descriptor == &server_hello__descriptor",
"./log_server.pb-c.c", 0x26Fu, "server_hello__pack");
return protobuf_c_message_pack(&message-... | size_t server_hello__pack(const ServerHello *message, uint8_t *out) {
assert(message->base.descriptor == &server_hello__descriptor);
return protobuf_c_message_pack((const ProtobufCMessage *)message, out);
} | server_hello__pack | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
size_t server_hello__pack_to_buffer(const ServerHello *message,
ProtobufCBuffer *buffer) {
if (message->base.descriptor != &server_hello__descriptor)
__assert_fail("message->base.descriptor == &server_hello__descriptor",
"./log_server.pb-c.c", 0x276u,
... | size_t server_hello__pack_to_buffer(const ServerHello *message,
ProtobufCBuffer *buffer) {
assert(message->base.descriptor == &server_hello__descriptor);
return protobuf_c_message_pack_to_buffer((const ProtobufCMessage *)message,
buffer)... | server_hello__pack_to_buffer | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
ServerHello *server_hello__unpack(ProtobufCAllocator *allocator, size_t len,
const uint8_t *data) {
return (ServerHello *)protobuf_c_message_unpack(&server_hello__descriptor,
allocator, len, data);
} | ServerHello *server_hello__unpack(ProtobufCAllocator *allocator, size_t len,
const uint8_t *data) {
return (ServerHello *)protobuf_c_message_unpack(&server_hello__descriptor,
allocator, len, data);
} | server_hello__unpack | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
void server_message__free_unpacked(ServerMessage *message,
ProtobufCAllocator *allocator) {
if (message) {
if (message->base.descriptor != &server_message__descriptor)
__assert_fail("message->base.descriptor == &server_message__descriptor",
"./log_serve... | void server_message__free_unpacked(ServerMessage *message,
ProtobufCAllocator *allocator) {
if (!message)
return;
assert(message->base.descriptor == &server_message__descriptor);
protobuf_c_message_free_unpacked((ProtobufCMessage *)message, allocator);
} | server_message__free_unpacked | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
size_t server_message__get_packed_size(const ServerMessage *message) {
if (message->base.descriptor != &server_message__descriptor)
__assert_fail("message->base.descriptor == &server_message__descriptor",
"./log_server.pb-c.c", 0x23Bu,
"server_message__get_packed_size");
retu... | size_t server_message__get_packed_size(const ServerMessage *message) {
assert(message->base.descriptor == &server_message__descriptor);
return protobuf_c_message_get_packed_size(
(const ProtobufCMessage *)(message));
} | server_message__get_packed_size | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
void server_message__init(ServerMessage *message) {
message->base.descriptor = &server_message__descriptor;
message->base.n_unknown_fields = 0;
message->base.unknown_fields = 0;
message->type_case = SERVER_MESSAGE__TYPE__NOT_SET;
message->u.hello = 0;
} | void server_message__init(ServerMessage *message) {
static const ServerMessage init_value = SERVER_MESSAGE__INIT;
*message = init_value;
} | server_message__init | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
size_t server_message__pack(const ServerMessage *message, uint8_t *out) {
if (message->base.descriptor != &server_message__descriptor)
__assert_fail("message->base.descriptor == &server_message__descriptor",
"./log_server.pb-c.c", 0x242u, "server_message__pack");
return protobuf_c_message_pack... | size_t server_message__pack(const ServerMessage *message, uint8_t *out) {
assert(message->base.descriptor == &server_message__descriptor);
return protobuf_c_message_pack((const ProtobufCMessage *)message, out);
} | server_message__pack | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
size_t server_message__pack_to_buffer(const ServerMessage *message,
ProtobufCBuffer *buffer) {
if (message->base.descriptor != &server_message__descriptor)
__assert_fail("message->base.descriptor == &server_message__descriptor",
"./log_server.pb-c.c", 0x249u... | size_t server_message__pack_to_buffer(const ServerMessage *message,
ProtobufCBuffer *buffer) {
assert(message->base.descriptor == &server_message__descriptor);
return protobuf_c_message_pack_to_buffer((const ProtobufCMessage *)message,
... | server_message__pack_to_buffer | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
ServerMessage *server_message__unpack(ProtobufCAllocator *allocator, size_t len,
const uint8_t *data) {
return (ServerMessage *)protobuf_c_message_unpack(&server_message__descriptor,
allocator, len, data);
} | ServerMessage *server_message__unpack(ProtobufCAllocator *allocator, size_t len,
const uint8_t *data) {
return (ServerMessage *)protobuf_c_message_unpack(&server_message__descriptor,
allocator, len, data);
} | server_message__unpack | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
void time_spec__free_unpacked(TimeSpec *message,
ProtobufCAllocator *allocator) {
if (message) {
if (message->base.descriptor != &time_spec__descriptor)
__assert_fail("message->base.descriptor == &time_spec__descriptor",
"./log_server.pb-c.c", 0x61u, "time_s... | void time_spec__free_unpacked(TimeSpec *message,
ProtobufCAllocator *allocator) {
if (!message)
return;
assert(message->base.descriptor == &time_spec__descriptor);
protobuf_c_message_free_unpacked((ProtobufCMessage *)message, allocator);
} | time_spec__free_unpacked | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
size_t time_spec__get_packed_size(const TimeSpec *message) {
if (message->base.descriptor != &time_spec__descriptor)
__assert_fail("message->base.descriptor == &time_spec__descriptor",
"./log_server.pb-c.c", 0x40u, "time_spec__get_packed_size");
return protobuf_c_message_get_packed_size(&messa... | size_t time_spec__get_packed_size(const TimeSpec *message) {
assert(message->base.descriptor == &time_spec__descriptor);
return protobuf_c_message_get_packed_size(
(const ProtobufCMessage *)(message));
} | time_spec__get_packed_size | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
void time_spec__init(TimeSpec *message) {
message->base.descriptor = &time_spec__descriptor;
message->base.n_unknown_fields = 0;
message->base.unknown_fields = 0;
message->tv_sec = 0;
message->tv_nsec = 0;
} | void time_spec__init(TimeSpec *message) {
static const TimeSpec init_value = TIME_SPEC__INIT;
*message = init_value;
} | time_spec__init | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
size_t time_spec__pack(const TimeSpec *message, uint8_t *out) {
if (message->base.descriptor != &time_spec__descriptor)
__assert_fail("message->base.descriptor == &time_spec__descriptor",
"./log_server.pb-c.c", 0x47u, "time_spec__pack");
return protobuf_c_message_pack(&message->base, out);
} | size_t time_spec__pack(const TimeSpec *message, uint8_t *out) {
assert(message->base.descriptor == &time_spec__descriptor);
return protobuf_c_message_pack((const ProtobufCMessage *)message, out);
} | time_spec__pack | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
size_t time_spec__pack_to_buffer(const TimeSpec *message,
ProtobufCBuffer *buffer) {
if (message->base.descriptor != &time_spec__descriptor)
__assert_fail("message->base.descriptor == &time_spec__descriptor",
"./log_server.pb-c.c", 0x4Eu, "time_spec__pack_to_buff... | size_t time_spec__pack_to_buffer(const TimeSpec *message,
ProtobufCBuffer *buffer) {
assert(message->base.descriptor == &time_spec__descriptor);
return protobuf_c_message_pack_to_buffer((const ProtobufCMessage *)message,
buffer);
} | time_spec__pack_to_buffer | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
TimeSpec *time_spec__unpack(ProtobufCAllocator *allocator, size_t len,
const uint8_t *data) {
return (TimeSpec *)protobuf_c_message_unpack(&time_spec__descriptor,
allocator, len, data);
} | TimeSpec *time_spec__unpack(ProtobufCAllocator *allocator, size_t len,
const uint8_t *data) {
return (TimeSpec *)protobuf_c_message_unpack(&time_spec__descriptor,
allocator, len, data);
} | time_spec__unpack | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
HostnameValidationResult validate_hostname(const X509 *cert,
const char *hostname,
const char *ipaddr, int resolve) {
HostnameValidationResult res;
sudo_debug_enter_v1("validate_hostname", "./hostcheck.c", 379, 832);
if (ipaddr... | HostnameValidationResult validate_hostname(const X509 *cert,
const char *hostname,
const char *ipaddr, int resolve) {
HostnameValidationResult res = MatchFound;
debug_decl(validate_hostname, SUDO_DEBUG_UTIL);
if ((ipaddr == NUL... | validate_hostname | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
HostnameValidationResult validate_name(const char *hostname,
ASN1_STRING *certname_asn1) {
const char *v2;
const char *hostnamea;
int certname_len;
int hostname_len;
char *certname_s;
hostnamea = hostname;
certname_s = (char *)ASN1_STRING_get0_data(certname_asn1);
... | static HostnameValidationResult validate_name(const char *hostname,
ASN1_STRING *certname_asn1) {
char *certname_s = (char *)ASN1_STRING_get0_data(certname_asn1);
int certname_len = ASN1_STRING_length(certname_asn1);
int hostname_len = strlen(hostname);
debug_decl(v... | validate_name | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/sudo_sendlog | ida | O0 |
gboolean allowed_file(const gchar *filename, GSList *exclude_masks) {
int str_len;
GSList *element;
gchar *reversed_filename;
if (exclude_masks) {
str_len = strlen(filename);
reversed_filename = (gchar *)g_utf8_strreverse(filename, str_len);
for (element = exclude_masks; element; element = element-... | static gboolean allowed_file(const gchar *filename, GSList *exclude_masks) {
if (exclude_masks) {
int str_len = strlen(filename);
gchar *reversed_filename = g_utf8_strreverse(filename, str_len);
GSList *element = exclude_masks;
for (; element; element = g_slist_next(element)) {
if (g_pattern_m... | allowed_file | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
gboolean allowed_modulemd_module_metadata_file(const gchar *filename) {
return (unsigned int)g_str_has_suffix(filename, ".modulemd.yaml") ||
(unsigned int)g_str_has_suffix(filename, ".modulemd-defaults.yaml") ||
(unsigned int)g_str_has_suffix(filename, "modules.yaml");
} | static gboolean allowed_modulemd_module_metadata_file(const gchar *filename) {
if (g_str_has_suffix(filename, ".modulemd.yaml") ||
g_str_has_suffix(filename, ".modulemd-defaults.yaml") ||
g_str_has_suffix(filename, "modules.yaml")) {
return TRUE;
}
return FALSE;
} | allowed_modulemd_module_metadata_file | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
gboolean check_and_set_compression_type(const char *type_str,
cr_CompressionType *type,
GError **err) {
long v3;
unsigned int v4;
gboolean v5;
GString *compress_str[3];
compress_str[1] = (GString *)__readfsqword(0x28u);
if (err... | static gboolean check_and_set_compression_type(const char *type_str,
cr_CompressionType *type,
GError **err) {
assert(!err || *err == NULL);
_cleanup_string_free_ GString *compress_str = NULL;
compress_str = g_string_as... | check_and_set_compression_type | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
gboolean check_arguments(CmdOptions *options, const char *input_dir,
GError **err) {
char *outputdir;
unsigned int v4;
char *checksum;
unsigned int v7;
gchar *repomd_checksum;
unsigned int v9;
long v10;
char *v11;
char *groupfile_fullpath;
unsigned int v13;
char *pkglist;
... | gboolean check_arguments(struct CmdOptions *options, const char *input_dir,
GError **err) {
assert(!err || *err == NULL);
if (options->outputdir &&
!g_file_test(options->outputdir,
G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)) {
g_set_error(err, ERR_DOMAIN, CRE_BAD... | check_arguments | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
GSList *cr_create_repomd_records_for_additional_metadata(
GSList *additional_metadata, cr_ChecksumType repomd_checksum_type) {
long v2;
GSList *next;
GError *tmp_err;
GSList *additional_metadata_rec;
GSList *element;
unsigned long v8;
v8 = __readfsqword(0x28u);
tmp_err = 0;
additional_metadata_re... | static GSList *cr_create_repomd_records_for_additional_metadata(
GSList *additional_metadata, cr_ChecksumType repomd_checksum_type) {
GError *tmp_err = NULL;
GSList *additional_metadata_rec = NULL;
GSList *element = additional_metadata;
for (; element; element = g_slist_next(element)) {
additional_metad... | cr_create_repomd_records_for_additional_metadata | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
GSList *cr_create_repomd_records_for_groupfile_metadata(
const cr_Metadatum *group_metadatum, GSList *additional_metadata_rec,
cr_CompressionType comp_type, cr_ChecksumType repomd_checksum_type) {
long v4;
long v5;
long v6;
GSList *additional_metadata_recb;
GSList *additional_metadata_reca;
GError *... | GSList *cr_create_repomd_records_for_groupfile_metadata(
const cr_Metadatum *group_metadatum, GSList *additional_metadata_rec,
cr_CompressionType comp_type, cr_ChecksumType repomd_checksum_type) {
GError *tmp_err = NULL;
char *compression_suffix = g_strdup(cr_compression_suffix(comp_type));
compression_su... | cr_create_repomd_records_for_groupfile_metadata | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
void error_check_and_set_content_stat(cr_CompressionTask *task, char *filename,
int *exit_val,
cr_ContentStat **content_stat) {
if (task->err) {
g_log(0, 8, "Cannot rewrite pkg count in %s: %s", filename,
task->err->message);
... | static void error_check_and_set_content_stat(cr_CompressionTask *task,
char *filename, int *exit_val,
cr_ContentStat **content_stat) {
if (task->err) {
g_critical("Cannot rewrite pkg count in %s: %s", filename,
... | error_check_and_set_content_stat | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
long fill_pool(GThreadPool *pool, gchar *in_dir, CmdOptions *cmd_options,
GSList **current_pkglist, long *task_count, int media_id) {
long inserted;
int x;
const gchar *repo_relative_path;
GSList *element;
gchar *filename_0;
gchar *relative_path;
gchar *full_path_0;
PoolTask *taska;
Poo... | static long fill_pool(GThreadPool *pool, gchar *in_dir,
struct CmdOptions *cmd_options, GSList **current_pkglist,
long *task_count, int media_id) {
GQueue queue = G_QUEUE_INIT;
struct PoolTask *task;
if (!cmd_options->split) {
media_id = 0;
}
if ((cmd_options-... | fill_pool | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
void free_options(CmdOptions *options) {
g_free(options->basedir);
g_free(options->location_base);
g_free(options->outputdir);
g_free(options->pkglist);
g_free(options->checksum);
g_free(options->compress_type);
g_free(options->groupfile);
g_free(options->groupfile_fullpath);
g_free(options->revision)... | void free_options(struct CmdOptions *options) {
g_free(options->basedir);
g_free(options->location_base);
g_free(options->outputdir);
g_free(options->pkglist);
g_free(options->checksum);
g_free(options->compress_type);
g_free(options->groupfile);
g_free(options->groupfile_fullpath);
g_free(options->re... | free_options | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
void load_old_metadata(cr_Metadata **md, cr_MetadataLocation **md_location,
GSList *current_pkglist, CmdOptions *cmd_options,
gchar *dir, GThreadPool *pool, GError *tmp_err) {
long v7;
int v8;
int ret;
int reta;
GSList *element;
cr_MetadataLocation *_ptr;
char... | static void load_old_metadata(cr_Metadata **md,
struct cr_MetadataLocation **md_location,
GSList *current_pkglist,
struct CmdOptions *cmd_options, gchar *dir,
GThreadPool *pool, GError *tmp_err) {
*... | load_old_metadata | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
const char *v3;
const char *filename;
const char *v5;
const char *v6;
int *v7;
const char *v8;
gchar *v9;
long v10;
long v11;
GSList *v12;
gchar *v13;
gchar *v14;
cr_MetadataLocation *v15;
gchar *v16;
gchar *v17;
GSList *v18;
i... | int main(int argc, char **argv) {
struct CmdOptions *cmd_options;
gboolean ret;
GError *tmp_err = NULL;
int exit_val = EXIT_SUCCESS;
cmd_options = parse_arguments(&argc, &argv, &tmp_err);
if (!cmd_options) {
g_printerr("Argument parsing failed: %s\n", tmp_err->message);
g_error_free(tmp_err);
e... | main | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
CmdOptions *parse_arguments(int *argc, char ***argv, GError **err) {
gboolean ret;
GOptionContext *context;
GOptionGroup *group_expert;
if (err && *err)
__assert_fail("!err || *err == NULL",
"/var/tmp/portage/app-arch/createrepo_c-0.16.2/work/"
"createrepo_c-0.16.2/src/c... | struct CmdOptions *parse_arguments(int *argc, char ***argv, GError **err) {
gboolean ret;
GOptionContext *context;
GOptionGroup *group_expert;
assert(!err || *err == NULL);
context = g_option_context_new("<directory_to_index>");
g_option_context_set_summary(
context, "Program that creates a repomd "... | parse_arguments | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
gboolean parse_period_of_time(const gchar *timeperiod, gint64 *time,
GError **err) {
unsigned int v3;
unsigned int v5;
unsigned int v6;
const char *v7;
unsigned int v8;
__int128 endptr;
unsigned long v11;
v11 = __readfsqword(0x28u);
if (err && *err)
__assert_fail("!e... | static gboolean parse_period_of_time(const gchar *timeperiod, gint64 *time,
GError **err) {
assert(!err || *err == NULL);
gchar *endptr = NULL;
gint64 val = g_ascii_strtoll(timeperiod, &endptr, 0);
*time = G_GINT64_CONSTANT(0);
if (val == 0 && endptr == timeperiod) {
... | parse_period_of_time | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
gboolean prepare_cache_dir(CmdOptions *cmd_options, const gchar *out_dir,
GError **err) {
char *v4;
unsigned int v5;
int *v6;
const char *v7;
char *checksum_cachedir;
unsigned int v9;
gchar *tmp;
if (!cmd_options->cachedir)
return 1;
if ((unsigned int)g_str_has_prefix(c... | static gboolean prepare_cache_dir(struct CmdOptions *cmd_options,
const gchar *out_dir, GError **err) {
if (!cmd_options->cachedir)
return TRUE;
if (g_str_has_prefix(cmd_options->cachedir, "/")) {
cmd_options->checksum_cachedir =
cr_normalize_dir_path(cmd_options-... | prepare_cache_dir | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
int task_cmp(gconstpointer a_p, gconstpointer b_p, gpointer user_data) {
int ret;
ret = g_strcmp0(*((_QWORD *)a_p + 3), *((_QWORD *)b_p + 3));
if (ret)
return ret;
else
return g_strcmp0(*((_QWORD *)a_p + 4), *((_QWORD *)b_p + 4));
} | static int task_cmp(gconstpointer a_p, gconstpointer b_p,
G_GNUC_UNUSED gpointer user_data) {
int ret;
const struct PoolTask *a = a_p;
const struct PoolTask *b = b_p;
ret = g_strcmp0(a->filename, b->filename);
if (ret)
return ret;
return g_strcmp0(a->path, b->path);
} | task_cmp | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/createrepo_c | ida | O0 |
void display_error(gchar *error) {
long type;
long v2;
GtkWidget *dialog;
g_printerr("\n%s\n\n", error);
dialog = (GtkWidget *)gtk_message_dialog_new(0, 1, 3, 2, "%s", error);
type = gtk_dialog_get_type();
v2 = g_type_check_instance_cast(dialog, type);
gtk_dialog_run(v2);
gtk_widget_destroy(dialog);
... | void display_error(gchar *error) {
GtkWidget *dialog;
g_printerr("\n%s\n\n", error);
dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE, error);
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
} | display_error | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void display_verification(gboolean verified) {
long type;
long v2;
GtkWidget *dialog;
if (verified)
dialog = (GtkWidget *)gtk_message_dialog_new(
0, 1, 0, 2, "%s", "File verification successful");
else
dialog = (GtkWidget *)gtk_message_dialog_new(
0, 1, 1, 2, "%s", "File verification ... | void display_verification(gboolean verified) {
GtkWidget *dialog;
if (verified)
dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO,
GTK_BUTTONS_CLOSE,
"File verification successful");
else
dialog = gtk_message_d... | display_verification | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void dosify_file_name(char *file_name) {
unsigned short i;
unsigned short length;
char ext;
char ext_1;
char ext_2;
length = strlen(file_name);
if (length > 0xCu) {
ext = file_name[length - 3];
ext_1 = file_name[length - 2];
ext_2 = file_name[length - 1];
file_name[8] = 46;
file_name[... | void dosify_file_name(char *file_name) {
unsigned short i, length;
char ext[3];
length = strlen(file_name);
if (length > 12) {
ext[0] = file_name[length - 3];
ext[1] = file_name[length - 2];
ext[2] = file_name[length - 1];
file_name[8] = '.';
file_name[9] = ext[0];
file_name[10] = ex... | dosify_file_name | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void get_directory_name(GtkWidget *widget, GtkSplitterWindow *gsw) {
long type;
long v3;
gchar *filename;
type = gtk_file_selection_get_type();
v3 = g_type_check_instance_cast(gsw->file_selection_dialog, type);
filename = (gchar *)gtk_file_selection_get_filename(v3);
set_directory_name(gsw, filename);
} | void get_directory_name(GtkWidget *widget, GtkSplitterWindow *gsw) {
gchar *selected_directory;
selected_directory = (gchar *)gtk_file_selection_get_filename(
GTK_FILE_SELECTION(gsw->file_selection_dialog));
set_directory_name(gsw, selected_directory);
} | get_directory_name | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void get_directory_name_dialog(GtkWidget *widget, GtkSplitterWindow *gsw) {
size_t v2;
long type;
long v4;
long v5;
long v6;
long v7;
long v8;
long v9;
long v10;
long v11;
long v12;
GtkWidget *file_selection_dialog;
long v14;
long v15;
long v16;
long v17;
GtkWidget *v18;
long v19;
... | void get_directory_name_dialog(GtkWidget *widget, GtkSplitterWindow *gsw) {
gchar *dir;
dir =
g_malloc(strlen(gsw->session_data->output_directory) * sizeof(gchar) + 1);
g_stpcpy(dir, gsw->session_data->output_directory);
strcat(dir, "/");
gsw->file_selection_dialog =
gtk_file_selection_new("Selec... | get_directory_name_dialog | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void get_file_name(GtkWidget *widget, GtkSplitterWindow *gsw) {
long type;
long v3;
gchar *filename;
type = gtk_file_selection_get_type();
v3 = g_type_check_instance_cast(gsw->file_selection_dialog, type);
filename = (gchar *)gtk_file_selection_get_filename(v3);
set_file_name(gsw, filename);
} | void get_file_name(GtkWidget *widget, GtkSplitterWindow *gsw) {
gchar *selected_file;
selected_file = (gchar *)gtk_file_selection_get_filename(
GTK_FILE_SELECTION(gsw->file_selection_dialog));
set_file_name(gsw, selected_file);
} | get_file_name | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void get_file_name_dialog(GtkWidget *widget, GtkSplitterWindow *gsw) {
size_t v2;
long type;
long v4;
long v5;
long v6;
long v7;
long v8;
long v9;
long v10;
GtkWidget *file_selection_dialog;
long v12;
long v13;
long v14;
long v15;
GtkWidget *v16;
long v17;
long v18;
long v19;
long ... | void get_file_name_dialog(GtkWidget *widget, GtkSplitterWindow *gsw) {
gchar *dir;
dir = g_malloc(strlen(gsw->session_data->home_directory) * sizeof(gchar) + 1);
g_stpcpy(dir, gsw->session_data->home_directory);
strcat(dir, "/");
gsw->file_selection_dialog = gtk_file_selection_new("Select a file.");
gtk_f... | get_file_name_dialog | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
gboolean gtk_splitter_combine_files(GtkSplitterSessionData *data) {
long type;
long v3;
long v4;
long v5;
float v6;
double v7;
long v8;
long v9;
float v10;
float v11;
long v12;
long v13;
long v14;
long v15;
float v16;
float v17;
long v18;
long v19;
float v20;
float v21;
long v2... | gboolean gtk_splitter_combine_files(GtkSplitterSessionData *data) {
ProgressWindow *progress_window = NULL;
gboolean do_progress, done;
FILE *in, *out;
guint file_count, temp, files_to_combine;
gulong combined_file_size, byte_count, bytes_read;
gchar infile[PATH_MAX];
gchar outfile[PATH_MAX];
gcha... | gtk_splitter_combine_files | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void gtk_splitter_main_window_destroy(GtkSplitterWindow *gsw) {
if (gsw->base_window)
gtk_widget_destroy(gsw->base_window);
g_free(gsw->session_data);
g_free(gsw);
} | void gtk_splitter_main_window_destroy(GtkSplitterWindow *gsw) {
if (gsw->base_window != NULL)
gtk_widget_destroy(gsw->base_window);
g_free(gsw->session_data);
g_free(gsw);
} | gtk_splitter_main_window_destroy | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
GtkSplitterWindow *gtk_splitter_main_window_new() {
long type;
long v1;
GdkPixbuf *icon;
long v3;
long v4;
long v5;
long v6;
long v7;
long v8;
long v9;
long v10;
long v11;
long v12;
GtkWidget *unit_bytes;
long v14;
long v15;
GtkWidget *unit_kilobytes;
long v17;
long v18;
GtkWidge... | GtkSplitterWindow *gtk_splitter_main_window_new() {
GtkSplitterWindow *gsw;
gsw = g_malloc(sizeof(GtkSplitterWindow));
gsw->session_data = g_malloc(sizeof(GtkSplitterSessionData));
if ((gsw == NULL) || (gsw->session_data == NULL)) {
display_error(
"interface.c: Couldn't allocate memory for GtkSp... | gtk_splitter_main_window_new | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
gboolean gtk_splitter_split_file(GtkSplitterSessionData *gssd) {
GtkSplitterSessionData_$F30A5E93DDE1EFA762F1AFD869C7851B unit;
float v2;
float v3;
float v4;
float entry;
gulong v6;
long type;
long v9;
long v10;
long v11;
float v12;
float v13;
long v14;
long v15;
float v16;
float v17;
... | gboolean gtk_splitter_split_file(GtkSplitterSessionData *gssd) {
ProgressWindow *progress_window = NULL;
gboolean do_progress;
FILE *in, *out, *batch;
gchar infile[PATH_MAX];
gchar outfile[PATH_MAX];
gchar batchname_and_path[PATH_MAX];
gchar outfile_only[PATH_MAX];
gchar ext[] = {"001"};
gint ... | gtk_splitter_split_file | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void initialize_session_data(GtkSplitterSessionData *gssd) {
gint i;
char *home;
for (i = 0; i != 4096; ++i) {
gssd->file_name_only[i] = 0;
gssd->file_name_and_path[i] = 0;
}
home = getenv("HOME");
if (home) {
sprintf(gssd->home_directory, "%s", home);
} else {
display_error((gchar *)"Cou... | void initialize_session_data(GtkSplitterSessionData *gssd) {
gint i;
gchar *home;
for (i = 0; i != PATH_MAX; i++) {
gssd->file_name_only[i] = '\0';
gssd->file_name_and_path[i] = '\0';
}
home = getenv("HOME");
if (home == NULL) {
display_error("Could not determine home directory.\n"
... | initialize_session_data | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void initialize_splitter_window(GtkSplitterWindow *gsw) {
long type;
long v2;
gchar *home_directory;
long v4;
long v5;
long v6;
long v7;
long v8;
long v9;
long v10;
long v11;
type = gtk_button_get_type();
v2 = g_type_check_instance_cast(gsw->split_button, type);
gtk_button_clicked(v2);
ho... | void initialize_splitter_window(GtkSplitterWindow *gsw) {
gtk_button_clicked(GTK_BUTTON(gsw->split_button));
gtk_entry_set_text(GTK_ENTRY(gsw->output_box),
gsw->session_data->home_directory);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gsw->batch_file_button),
... | initialize_splitter_window | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
long type;
long v4;
char **argva;
int argca[3];
GtkSplitterWindow *main_window;
char ext[4];
char resolved_name[4104];
unsigned long v12;
argca[0] = argc;
argva = (char **)argv;
v12 = __readfsqword(0x28u);
gtk_init(argca, &argva);
mai... | int main(int argc, char *argv[]) {
char ext[4];
char *ptr;
char resolved_name[PATH_MAX];
GtkSplitterWindow *main_window;
gtk_init(&argc, &argv);
main_window = gtk_splitter_main_window_new();
initialize_session_data(main_window->session_data);
initialize_splitter_window(main_window);
g_print("%s-... | main | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void progress_window_destroy(ProgressWindow *pw) {
if (pw->base_window)
gtk_widget_destroy(pw->base_window);
g_free(pw);
} | void progress_window_destroy(ProgressWindow *pw) {
if (pw->base_window != NULL)
gtk_widget_destroy(pw->base_window);
g_free(pw);
} | progress_window_destroy | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
ProgressWindow *progress_window_new() {
long type;
long v2;
long v3;
long v4;
long v5;
long v6;
long v7;
long v8;
GtkWidget *table;
long v10;
long v11;
GtkWidget *file_label;
long v13;
long v14;
GtkWidget *message;
long v16;
long v17;
GtkWidget *current_progress_label;
long v19;
... | ProgressWindow *progress_window_new() {
ProgressWindow *pw;
pw = g_malloc(sizeof(ProgressWindow));
if (pw == NULL) {
return pw;
}
pw->base_window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_resizable(GTK_WINDOW(pw->base_window), FALSE);
pw->table = gtk_table_new(4, 2, FALSE);
pw->curr... | progress_window_new | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void set_data(GtkWidget *widget, GtkSplitterWindow *gsw) {
long type;
long v3;
gfloat value;
type = gtk_spin_button_get_type();
v3 = g_type_check_instance_cast(gsw->size_input, type);
value = gtk_spin_button_get_value(v3);
gsw->session_data->entry = value;
} | void set_data(GtkWidget *widget, GtkSplitterWindow *gsw) {
gsw->session_data->entry =
gtk_spin_button_get_value_as_float(GTK_SPIN_BUTTON(gsw->size_input));
} | set_data | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void set_directory_name(GtkSplitterWindow *gsw, gchar *directory_name_to_set) {
gchar *output_directory;
long type;
long v4;
g_stpcpy(gsw->session_data->output_directory, directory_name_to_set);
output_directory = gsw->session_data->output_directory;
type = gtk_entry_get_type();
v4 = g_type_check_instanc... | void set_directory_name(GtkSplitterWindow *gsw, gchar *directory_name_to_set) {
g_stpcpy(gsw->session_data->output_directory, directory_name_to_set);
gtk_entry_set_text(GTK_ENTRY(gsw->output_box),
gsw->session_data->output_directory);
} | set_directory_name | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void set_file_name(GtkSplitterWindow *gsw, gchar *file_name_to_set) {
long v2;
gchar *file_name_only;
long type;
long v5;
stat file_information;
unsigned long v7;
v7 = __readfsqword(0x28u);
if (stat(file_name_to_set, &file_information) == -1)
display_error((gchar *)"file_selection.c: Could not sta... | void set_file_name(GtkSplitterWindow *gsw, gchar *file_name_to_set) {
gchar *pos;
struct stat file_information;
if (stat(file_name_to_set, &file_information) == -1) {
display_error("file_selection.c: Could not stat file.");
}
g_stpcpy(gsw->session_data->file_name_and_path, file_name_to_set);
pos = g... | set_file_name | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void set_unit_bytes(GtkWidget *widget, GtkSplitterSessionData *gssd) {
gssd->unit = BYTES;
} | void set_unit_bytes(GtkWidget *widget, GtkSplitterSessionData *gssd) {
gssd->unit = BYTES;
} | set_unit_bytes | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void set_unit_kilobytes(GtkWidget *widget, GtkSplitterSessionData *gssd) {
gssd->unit = KILOBYTES;
} | void set_unit_kilobytes(GtkWidget *widget, GtkSplitterSessionData *gssd) {
gssd->unit = KILOBYTES;
} | set_unit_kilobytes | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void set_unit_megabytes(GtkWidget *widget, GtkSplitterSessionData *gssd) {
gssd->unit = MEGABYTES;
} | void set_unit_megabytes(GtkWidget *widget, GtkSplitterSessionData *gssd) {
gssd->unit = MEGABYTES;
} | set_unit_megabytes | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void start_split_or_combine(GtkWidget *widget, GtkSplitterWindow *gsw) {
gboolean do_initialization;
gtk_widget_hide_all(gsw->base_window);
if (gsw->session_data->split)
do_initialization = gtk_splitter_split_file(gsw->session_data);
else
do_initialization = gtk_splitter_combine_files(gsw->session_data... | void start_split_or_combine(GtkWidget *widget, GtkSplitterWindow *gsw) {
gboolean do_initialization;
gtk_widget_hide_all(gsw->base_window);
if (gsw->session_data->split)
do_initialization = gtk_splitter_split_file(gsw->session_data);
else
do_initialization = gtk_splitter_combine_files(gsw->session_dat... | start_split_or_combine | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void toggle_batch(GtkWidget *widget, GtkSplitterSessionData *gssd) {
gssd->create_batchfile = gssd->create_batchfile == 0;
} | void toggle_batch(GtkWidget *widget, GtkSplitterSessionData *gssd) {
gssd->create_batchfile = !gssd->create_batchfile;
} | toggle_batch | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void toggle_combine(GtkWidget *widget, GtkSplitterWindow *gsw) {
gsw->session_data->split = 0;
gtk_widget_set_sensitive(gsw->batch_file_button, 0);
gtk_widget_set_sensitive(gsw->size_input, 0);
gtk_widget_set_sensitive(gsw->chunk_size_units, 0);
} | void toggle_combine(GtkWidget *widget, GtkSplitterWindow *gsw) {
gsw->session_data->split = FALSE;
gtk_widget_set_sensitive(gsw->batch_file_button, FALSE);
gtk_widget_set_sensitive(gsw->size_input, FALSE);
gtk_widget_set_sensitive(gsw->chunk_size_units, FALSE);
} | toggle_combine | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void toggle_split(GtkWidget *widget, GtkSplitterWindow *gsw) {
gsw->session_data->split = 1;
gtk_widget_set_sensitive(gsw->batch_file_button, 1);
gtk_widget_set_sensitive(gsw->size_input, 1);
gtk_widget_set_sensitive(gsw->chunk_size_units, 1);
} | void toggle_split(GtkWidget *widget, GtkSplitterWindow *gsw) {
gsw->session_data->split = TRUE;
gtk_widget_set_sensitive(gsw->batch_file_button, TRUE);
gtk_widget_set_sensitive(gsw->size_input, TRUE);
gtk_widget_set_sensitive(gsw->chunk_size_units, TRUE);
} | toggle_split | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void toggle_verify(GtkWidget *widget, GtkSplitterSessionData *gssd) {
gssd->verify = gssd->verify == 0;
} | void toggle_verify(GtkWidget *widget, GtkSplitterSessionData *gssd) {
gssd->verify = !gssd->verify;
} | toggle_verify | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void write_dostextfile(FILE *b, char *data) {
fputs(data, b);
fflush(b);
} | void write_dostextfile(FILE *b, char *data) {
fprintf(b, data);
fflush(b);
} | write_dostextfile | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
void writeln_dostextfile(FILE *b, char *data) {
fputs(data, b);
fputc(13, b);
fputc(10, b);
fflush(b);
} | void writeln_dostextfile(FILE *b, char *data) {
fprintf(b, data);
fputc(0x0d, b);
fputc(0x0a, b);
fflush(b);
} | writeln_dostextfile | gtk-splitter-2.2.1-r2 | app-arch | O0/app-arch/gtk-splitter-2.2.1-r2/gtk-splitter | ida | O0 |
int expand(int in, char *inname, int out, char *outname) {
short v5;
unsigned short reserved;
unsigned int magic1;
unsigned int magic2;
unsigned int filesize;
int i;
int j;
int len;
int mask;
int bits;
int ch_0;
unsigned char *buffer;
unsigned long v20;
v20 = __readfsqword(0x28u);
if (rea... | int expand(int in, char *inname, int out, char *outname) {
int bits, ch, i, j, len, mask;
unsigned char *buffer;
unsigned int magic1;
unsigned int magic2;
unsigned int magic3;
unsigned short reserved;
unsigned int filesize;
if (read(in, &magic1, sizeof(magic1)) != sizeof(magic1)) {
perror(inname);... | expand | mscompress-0.3-r1 | app-arch | O0/app-arch/mscompress-0.3-r1/msexpand | ida | O0 |
int getbyte(int f) {
unsigned char b;
unsigned long v3;
v3 = __readfsqword(0x28u);
if (read(f, &b, 1u) == 1)
return b;
else
return -1;
} | int getbyte(int f) {
unsigned char b;
if (read(f, &b, sizeof(b)) != 1)
return -1;
return b;
} | getbyte | mscompress-0.3-r1 | app-arch | O0/app-arch/mscompress-0.3-r1/msexpand | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
char v3;
const char *v4;
const char **argva;
int argca;
int in;
int out;
char *argv0;
char name[264];
unsigned long v11;
v11 = __readfsqword(0x28u);
argv0 = (char *)*argv;
v3 = getopt(argc, (char *const *)argv, "hV");
if (v3 == -1) {
... | void main(int argc, char **argv) {
int in, out;
char *argv0;
char c;
char name[0x100];
argv0 = argv[0];
while ((c = getopt(argc, argv, "hV")) != -1) {
switch (c) {
case 'h':
usage(argv0);
case 'V':
printf("msexpand version %s (" BUILDHOST ") " __DATE__ "\n",
version_st... | main | mscompress-0.3-r1 | app-arch | O0/app-arch/mscompress-0.3-r1/msexpand | ida | O0 |
void usage(char *progname) {
printf("Usage: %s [-h] [-V] [file ...]\n"
" -h --help give this help\n"
" -V --version display version number\n"
" file... files to decompress. If none given, use standard "
"input.\n"
"\n"
"Report bugs to <mhi@peng... | void usage(char *progname) {
printf("Usage: %s [-h] [-V] [file ...]\n"
" -h --help give this help\n"
" -V --version display version number\n"
" file... files to decompress. If none given, use"
" standard input.\n"
"\n"
"Report bugs to <mhi@peng... | usage | mscompress-0.3-r1 | app-arch | O0/app-arch/mscompress-0.3-r1/msexpand | ida | O0 |
void SHA1Final(SHA1Context *sc, uint8_t *hash) {
uint8_t *hasha;
uint32_t bytesToPad;
int i;
uint64_t lengthPad[2];
hasha = hash;
lengthPad[1] = __readfsqword(0x28u);
bytesToPad = 120 - sc->bufferLength;
if (bytesToPad > 0x40)
bytesToPad -= 64;
lengthPad[0] = byteswap64(sc->totalLength);
SHA1Up... | void SHA1Final(SHA1Context *sc, uint8_t hash[SHA1_HASH_SIZE]) {
uint32_t bytesToPad;
uint64_t lengthPad;
int i;
bytesToPad = 120L - sc->bufferLength;
if (bytesToPad > 64L)
bytesToPad -= 64L;
lengthPad = BYTESWAP64(sc->totalLength);
SHA1Update(sc, padding, bytesToPad);
SHA1Update(sc, &lengthPad, 8... | SHA1Final | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA1Guts(SHA1Context *sc, const uint32_t *cbuf) {
unsigned int *v2;
uint32_t *v3;
uint32_t v4;
uint32_t *v5;
int v6;
uint32_t *v7;
int v8;
uint32_t *v9;
int i;
int ia;
uint32_t a;
uint32_t aa;
uint32_t ab;
uint32_t ac;
uint32_t ad;
uint32_t ae;
uint32_t af;
uint32_t ag;
uint32... | static void SHA1Guts(SHA1Context *sc, const uint32_t *cbuf) {
uint32_t buf[80];
uint32_t *W, *W3, *W8, *W14, *W16;
uint32_t a, b, c, d, e, temp;
int i;
W = buf;
for (i = 15; i >= 0; i--) {
*(W++) = BYTESWAP(*cbuf);
cbuf++;
}
W16 = &buf[0];
W14 = &buf[2];
W8 = &buf[8];
W3 = &buf[13];
... | SHA1Guts | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA1Init(SHA1Context *sc) {
sc->totalLength = 0;
sc->hash[0] = 1732584193;
sc->hash[1] = -271733879;
sc->hash[2] = -1732584194;
sc->hash[3] = 271733878;
sc->hash[4] = -1009589776;
sc->bufferLength = 0;
} | void SHA1Init(SHA1Context *sc) {
#ifdef RUNTIME_ENDIAN
setEndian(&sc->littleEndian);
#endif
sc->totalLength = 0LL;
sc->hash[0] = 0x67452301L;
sc->hash[1] = 0xefcdab89L;
sc->hash[2] = 0x98badcfeL;
sc->hash[3] = 0x10325476L;
sc->hash[4] = 0xc3d2e1f0L;
sc->bufferLength = 0L;
} | SHA1Init | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA1Update(SHA1Context *sc, const void *vdata, uint32_t len) {
uint32_t bytesToCopy;
int needBurn;
needBurn = 0;
while (len) {
bytesToCopy = 64 - sc->bufferLength;
if (bytesToCopy > len)
bytesToCopy = len;
memcpy((char *)&sc->buffer + sc->bufferLength, vdata, bytesToCopy);
sc->totalL... | void SHA1Update(SHA1Context *sc, const void *vdata, uint32_t len) {
const uint8_t *data = vdata;
uint32_t bufferBytesLeft;
uint32_t bytesToCopy;
int needBurn = 0;
#ifdef SHA1_FAST_COPY
if (sc->bufferLength) {
bufferBytesLeft = 64L - sc->bufferLength;
bytesToCopy = bufferBytesLeft;
if (bytesToCop... | SHA1Update | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA256Final(SHA256Context *sc, uint8_t *hash) {
uint8_t *hasha;
uint32_t bytesToPad;
int i;
uint64_t lengthPad[2];
hasha = hash;
lengthPad[1] = __readfsqword(0x28u);
bytesToPad = 120 - sc->bufferLength;
if (bytesToPad > 0x40)
bytesToPad -= 64;
lengthPad[0] = byteswap64_0(sc->totalLength);
... | void SHA256Final(SHA256Context *sc, uint8_t hash[SHA256_HASH_SIZE]) {
uint32_t bytesToPad;
uint64_t lengthPad;
int i;
bytesToPad = 120L - sc->bufferLength;
if (bytesToPad > 64L)
bytesToPad -= 64L;
lengthPad = BYTESWAP64(sc->totalLength);
SHA256Update(sc, padding, bytesToPad);
SHA256Update(sc, &le... | SHA256Final | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA256Guts(SHA256Context *sc, const uint32_t *cbuf) {
unsigned int *v2;
uint32_t *v3;
int v4;
uint32_t *v5;
uint32_t v6;
uint32_t *v7;
const uint32_t *v8;
int v9;
uint32_t *v10;
uint32_t a;
uint32_t b;
uint32_t c;
uint32_t d;
uint32_t e;
uint32_t f;
uint32_t g;
uint32_t h;
int i... | static void SHA256Guts(SHA256Context *sc, const uint32_t *cbuf) {
uint32_t buf[64];
uint32_t *W, *W2, *W7, *W15, *W16;
uint32_t a, b, c, d, e, f, g, h;
uint32_t t1, t2;
const uint32_t *Kp;
int i;
W = buf;
for (i = 15; i >= 0; i--) {
*(W++) = BYTESWAP(*cbuf);
cbuf++;
}
W16 = &buf[0];
W15... | SHA256Guts | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA256Init(SHA256Context *sc) {
sc->totalLength = 0;
sc->hash[0] = 1779033703;
sc->hash[1] = -1150833019;
sc->hash[2] = 1013904242;
sc->hash[3] = -1521486534;
sc->hash[4] = 1359893119;
sc->hash[5] = -1694144372;
sc->hash[6] = 528734635;
sc->hash[7] = 1541459225;
sc->bufferLength = 0;
} | void SHA256Init(SHA256Context *sc) {
#ifdef RUNTIME_ENDIAN
setEndian(&sc->littleEndian);
#endif
sc->totalLength = 0LL;
sc->hash[0] = 0x6a09e667L;
sc->hash[1] = 0xbb67ae85L;
sc->hash[2] = 0x3c6ef372L;
sc->hash[3] = 0xa54ff53aL;
sc->hash[4] = 0x510e527fL;
sc->hash[5] = 0x9b05688cL;
sc->hash[6] = 0x1f83... | SHA256Init | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA256Update(SHA256Context *sc, const void *vdata, uint32_t len) {
uint32_t bytesToCopy;
int needBurn;
needBurn = 0;
while (len) {
bytesToCopy = 64 - sc->bufferLength;
if (bytesToCopy > len)
bytesToCopy = len;
memcpy((char *)&sc->buffer + sc->bufferLength, vdata, bytesToCopy);
sc->to... | void SHA256Update(SHA256Context *sc, const void *vdata, uint32_t len) {
const uint8_t *data = vdata;
uint32_t bufferBytesLeft;
uint32_t bytesToCopy;
int needBurn = 0;
#ifdef SHA256_FAST_COPY
if (sc->bufferLength) {
bufferBytesLeft = 64L - sc->bufferLength;
bytesToCopy = bufferBytesLeft;
if (byte... | SHA256Update | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA384Final(SHA384Context *sc, uint8_t *hash) {
uint8_t *hasha;
uint32_t bytesToPad;
int i;
uint64_t lengthPad[3];
unsigned long v6;
hasha = hash;
v6 = __readfsqword(0x28u);
bytesToPad = 240 - sc->bufferLength;
if (bytesToPad > 0x80)
bytesToPad -= 128;
lengthPad[0] = byteswap64_1(sc->total... | void SHA384Final(SHA384Context *sc, uint8_t hash[SHA384_HASH_SIZE]) {
uint32_t bytesToPad;
uint64_t lengthPad[2];
int i;
bytesToPad = 240L - sc->bufferLength;
if (bytesToPad > 128L)
bytesToPad -= 128L;
lengthPad[0] = BYTESWAP64(sc->totalLength[0]);
lengthPad[1] = BYTESWAP64(sc->totalLength[1]);
S... | SHA384Final | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA384Guts(SHA384Context *sc, const uint64_t *cbuf) {
uint64_t *v2;
uint64_t *v3;
uint64_t v4;
uint64_t *v5;
uint64_t v6;
uint64_t *v7;
const uint64_t *v8;
uint64_t v9;
uint64_t *v10;
int i;
int ia;
int ib;
uint64_t *W;
uint64_t *Wa;
uint64_t *W2;
uint64_t *W7;
uint64_t *W15;
ui... | static void SHA384Guts(SHA384Context *sc, const uint64_t *cbuf) {
uint64_t buf[80];
uint64_t *W, *W2, *W7, *W15, *W16;
uint64_t a, b, c, d, e, f, g, h;
uint64_t t1, t2;
const uint64_t *Kp;
int i;
W = buf;
for (i = 15; i >= 0; i--) {
*(W++) = BYTESWAP64(*cbuf);
cbuf++;
}
W16 = &buf[0];
W... | SHA384Guts | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA384Init(SHA384Context *sc) {
sc->totalLength[0] = 0;
sc->totalLength[1] = 0;
sc->hash[0] = 0xCBBB9D5DC1059ED8LL;
sc->hash[1] = 0x629A292A367CD507LL;
sc->hash[2] = 0x9159015A3070DD17LL;
sc->hash[3] = 0x152FECD8F70E5939LL;
sc->hash[4] = 0x67332667FFC00B31LL;
sc->hash[5] = 0x8EB44A8768581511LL;
s... | void SHA384Init(SHA384Context *sc) {
#ifdef RUNTIME_ENDIAN
setEndian(&sc->littleEndian);
#endif
sc->totalLength[0] = 0LL;
sc->totalLength[1] = 0LL;
sc->hash[0] = 0xcbbb9d5dc1059ed8LL;
sc->hash[1] = 0x629a292a367cd507LL;
sc->hash[2] = 0x9159015a3070dd17LL;
sc->hash[3] = 0x152fecd8f70e5939LL;
sc->hash[4]... | SHA384Init | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA384Update(SHA384Context *sc, const void *vdata, uint32_t len) {
uint32_t bytesToCopy;
int needBurn;
uint64_t carryCheck;
needBurn = 0;
while (len) {
bytesToCopy = 128 - sc->bufferLength;
if (bytesToCopy > len)
bytesToCopy = len;
memcpy((char *)&sc->buffer + sc->bufferLength, vdata, ... | void SHA384Update(SHA384Context *sc, const void *vdata, uint32_t len) {
const uint8_t *data = vdata;
uint32_t bufferBytesLeft;
uint32_t bytesToCopy;
uint64_t carryCheck;
int needBurn = 0;
#ifdef SHA384_FAST_COPY
if (sc->bufferLength) {
bufferBytesLeft = 128L - sc->bufferLength;
bytesToCopy = buffe... | SHA384Update | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA512Final(SHA512Context *sc, uint8_t *hash) {
uint8_t *hasha;
uint32_t bytesToPad;
int i;
uint64_t lengthPad[3];
unsigned long v6;
hasha = hash;
v6 = __readfsqword(0x28u);
bytesToPad = 240 - sc->bufferLength;
if (bytesToPad > 0x80)
bytesToPad -= 128;
lengthPad[0] = byteswap64_2(sc->total... | void SHA512Final(SHA512Context *sc, uint8_t hash[SHA512_HASH_SIZE]) {
uint32_t bytesToPad;
uint64_t lengthPad[2];
int i;
bytesToPad = 240L - sc->bufferLength;
if (bytesToPad > 128L)
bytesToPad -= 128L;
lengthPad[0] = BYTESWAP64(sc->totalLength[0]);
lengthPad[1] = BYTESWAP64(sc->totalLength[1]);
S... | SHA512Final | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA512Guts(SHA512Context *sc, const uint64_t *cbuf) {
uint64_t *v2;
uint64_t *v3;
uint64_t v4;
uint64_t *v5;
uint64_t v6;
uint64_t *v7;
const uint64_t *v8;
uint64_t v9;
uint64_t *v10;
int i;
int ia;
int ib;
uint64_t *W;
uint64_t *Wa;
uint64_t *W2;
uint64_t *W7;
uint64_t *W15;
ui... | static void SHA512Guts(SHA512Context *sc, const uint64_t *cbuf) {
uint64_t buf[80];
uint64_t *W, *W2, *W7, *W15, *W16;
uint64_t a, b, c, d, e, f, g, h;
uint64_t t1, t2;
const uint64_t *Kp;
int i;
W = buf;
for (i = 15; i >= 0; i--) {
*(W++) = BYTESWAP64(*cbuf);
cbuf++;
}
W16 = &buf[0];
W... | SHA512Guts | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA512Init(SHA512Context *sc) {
sc->totalLength[0] = 0;
sc->totalLength[1] = 0;
sc->hash[0] = 0x6A09E667F3BCC908LL;
sc->hash[1] = 0xBB67AE8584CAA73BLL;
sc->hash[2] = 0x3C6EF372FE94F82BLL;
sc->hash[3] = 0xA54FF53A5F1D36F1LL;
sc->hash[4] = 0x510E527FADE682D1LL;
sc->hash[5] = 0x9B05688C2B3E6C1FLL;
s... | void SHA512Init(SHA512Context *sc) {
#ifdef RUNTIME_ENDIAN
setEndian(&sc->littleEndian);
#endif
sc->totalLength[0] = 0LL;
sc->totalLength[1] = 0LL;
sc->hash[0] = 0x6a09e667f3bcc908LL;
sc->hash[1] = 0xbb67ae8584caa73bLL;
sc->hash[2] = 0x3c6ef372fe94f82bLL;
sc->hash[3] = 0xa54ff53a5f1d36f1LL;
sc->hash[4]... | SHA512Init | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void SHA512Update(SHA512Context *sc, const void *vdata, uint32_t len) {
uint32_t bytesToCopy;
int needBurn;
uint64_t carryCheck;
needBurn = 0;
while (len) {
bytesToCopy = 128 - sc->bufferLength;
if (bytesToCopy > len)
bytesToCopy = len;
memcpy((char *)&sc->buffer + sc->bufferLength, vdata, ... | void SHA512Update(SHA512Context *sc, const void *vdata, uint32_t len) {
const uint8_t *data = vdata;
uint32_t bufferBytesLeft;
uint32_t bytesToCopy;
uint64_t carryCheck;
int needBurn = 0;
#ifdef SHA512_FAST_COPY
if (sc->bufferLength) {
bufferBytesLeft = 128L - sc->bufferLength;
bytesToCopy = buffe... | SHA512Update | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
File *alloc_file(FileList *list) {
char *v1;
size_t count;
if (list->allocated == list->available) {
if (list->available)
count = 2 * list->available;
else
count = 128;
list->files = (File *)realloc(list->files, 56 * count);
if (!list->files) {
v1 = gettext("Out of memory");
... | File *alloc_file(FileList *list) {
if (list->allocated == list->available) {
size_t count;
if (list->available)
count = list->available * 2;
else
count = 128;
list->files = realloc(list->files, count * sizeof(File));
if (list->files == NULL)
error(_("Out of memory"));
list... | alloc_file | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void bugs() {
char *v0;
v0 = gettext("Report bugs to <%s>\n");
printf(v0, "elmindreda@elmindreda.org");
} | static void bugs(void) {
printf(_("Report bugs to <%s>\n"), PACKAGE_BUGREPORT);
} | bugs | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
int cluster_header_uses_digest(const char *format) {
while (*format) {
if (*format == 37) {
if (*++format == 99 || *format == 100)
return 1;
if (!*format)
break;
}
++format;
}
return 0;
} | int cluster_header_uses_digest(const char *format) {
const char *c;
for (c = format; *c != '\0'; c++) {
if (*c == '%') {
c++;
if (*c == 'c' || *c == 'd')
return 1;
if (*c == '\0')
break;
}
}
return 0;
} | cluster_header_uses_digest | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
int compare_file_contents(File *first, File *second) {
int *v2;
char *v3;
int *v5;
char *v6;
int *v7;
char *v8;
int *v9;
char *v10;
int fc;
off_t count;
FILE *first_stream;
FILE *second_stream;
count = 0;
first_stream = fopen(first->path, "rb");
if (first_stream) {
second_stream = fop... | static int compare_file_contents(File *first, File *second) {
int fc, sc;
off_t count = 0;
FILE *first_stream;
FILE *second_stream;
first_stream = fopen(first->path, "rb");
if (!first_stream) {
if (!quiet_flag)
warning("%s: %s", first->path, strerror(errno));
first->status = INVALID;
ret... | compare_file_contents | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
int compare_file_digests(File *first, File *second) {
size_t digest_size;
if (get_file_digest(first))
return -1;
if (get_file_digest(second))
return -1;
digest_size = get_digest_size();
if (!memcmp(first->digest, second->digest, digest_size))
return 0;
else
return -1;
} | static int compare_file_digests(File *first, File *second) {
if (get_file_digest(first) != 0)
return -1;
if (get_file_digest(second) != 0)
return -1;
if (memcmp(first->digest, second->digest, get_digest_size()) != 0)
return -1;
return 0;
} | compare_file_digests | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
int compare_file_samples(File *first, File *second) {
off_t size;
if (get_file_sample(first))
return -1;
if (get_file_sample(second))
return -1;
size = 4096;
if (first->size < 0x1000uLL)
size = first->size;
if (!memcmp(first->sample, second->sample, size))
return 0;
else
return -1;
} | static int compare_file_samples(File *first, File *second) {
if (get_file_sample(first) != 0)
return -1;
if (get_file_sample(second) != 0)
return -1;
size_t size = SAMPLE_SIZE;
if (size > first->size)
size = first->size;
if (memcmp(first->sample, second->sample, size) != 0)
return -1;
re... | compare_file_samples | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
int compare_files(File *first, File *second) {
if (first->size != second->size)
return -1;
if (!first->size)
return 0;
if (first->device == second->device && first->inode == second->inode)
return 0;
if (first->size >= sample_limit) {
if (compare_file_samples(first, second))
return -1;
... | int compare_files(File *first, File *second) {
if (first->size != second->size)
return -1;
if (first->size == 0)
return 0;
if (first->device == second->device && first->inode == second->inode)
return 0;
if (first->size >= sample_limit) {
if (compare_file_samples(first, second) != 0)
ret... | compare_files | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void digest_finish(uint8_t *digest) {
char *v1;
if (digest_function == Function_SHA_512) {
SHA512Final((SHA512Context *)&context, digest);
} else {
if ((unsigned int)digest_function > Function_SHA_512)
goto LABEL_10;
if (digest_function == Function_SHA_384) {
SHA384Final((SHA384Context *)... | void digest_finish(uint8_t *digest) {
switch (digest_function) {
case SHA_1:
SHA1Final(&context.sha1, digest);
return;
case SHA_256:
SHA256Final(&context.sha256, digest);
return;
case SHA_384:
SHA384Final(&context.sha384, digest);
return;
case SHA_512:
SHA512Final(&context.sha512, ... | digest_finish | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void digest_init() {
char *v0;
if (digest_function == Function_SHA_512) {
SHA512Init((SHA512Context *)&context);
} else {
if ((unsigned int)digest_function > Function_SHA_512)
goto LABEL_10;
if (digest_function == Function_SHA_384) {
SHA384Init((SHA384Context *)&context);
return;
... | void digest_init(void) {
switch (digest_function) {
case SHA_1:
SHA1Init(&context.sha1);
return;
case SHA_256:
SHA256Init(&context.sha256);
return;
case SHA_384:
SHA384Init(&context.sha384);
return;
case SHA_512:
SHA512Init(&context.sha512);
return;
}
error(_("This cannot ... | digest_init | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void digest_update(const void *data, size_t size) {
char *v2;
if (digest_function == Function_SHA_512) {
SHA512Update((SHA512Context *)&context, data, size);
} else {
if ((unsigned int)digest_function > Function_SHA_512)
goto LABEL_10;
if (digest_function == Function_SHA_384) {
SHA384Upda... | void digest_update(const void *data, size_t size) {
switch (digest_function) {
case SHA_1:
SHA1Update(&context.sha1, data, size);
return;
case SHA_256:
SHA256Update(&context.sha256, data, size);
return;
case SHA_384:
SHA384Update(&context.sha384, data, size);
return;
case SHA_512:
... | digest_update | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void empty_file_list(FileList *list) { list->allocated = 0; } | void empty_file_list(FileList *list) { list->allocated = 0; } | empty_file_list | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void error(const char *format, ...) {
long v1;
long v2;
long v3;
long v4;
long v5;
char *message;
va_list vl;
unsigned long v8;
long v9;
long v10;
long v11;
long v12;
long v13;
va_start(vl, format);
v3 = va_arg(vl, _QWORD);
v1 = va_arg(vl, _QWORD);
v2 = va_arg(vl, _QWORD);
v4 = va_a... | void error(const char *format, ...) {
char *message;
int result;
va_list vl;
va_start(vl, format);
result = vasprintf(&message, format, vl);
va_end(vl);
if (result > 0) {
fprintf(stderr, "%s: %s\n", PACKAGE_NAME, message);
free(message);
}
exit(EXIT_FAILURE);
} | error | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void free_file(File *file) {
free(file->digest);
free(file->sample);
free(file->path);
} | void free_file(File *file) {
free(file->digest);
free(file->sample);
free(file->path);
} | free_file | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void free_file_list(FileList *list) {
free(list->files);
init_file_list(list);
} | void free_file_list(FileList *list) {
free(list->files);
init_file_list(list);
} | free_file_list | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
void generate_file_digest(File *file) { get_file_digest(file); } | void generate_file_digest(File *file) { get_file_digest(file); } | generate_file_digest | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
size_t get_digest_size() {
char *v1;
if (digest_function == Function_SHA_512)
return 64;
if ((unsigned int)digest_function > Function_SHA_512)
goto LABEL_10;
if (digest_function == Function_SHA_384)
return 48;
if ((unsigned int)digest_function > Function_SHA_384) {
LABEL_10:
v1 = gettext("T... | size_t get_digest_size(void) {
switch (digest_function) {
case SHA_1:
return SHA1_HASH_SIZE;
case SHA_256:
return SHA256_HASH_SIZE;
case SHA_384:
return SHA384_HASH_SIZE;
case SHA_512:
return SHA512_HASH_SIZE;
}
error(_("This cannot happen"));
} | get_digest_size | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
size_t get_field_terminator() {
if (null_terminate_flag)
return 0;
else
return 10;
} | size_t get_field_terminator(void) {
if (null_terminate_flag)
return '\0';
else
return '\n';
} | get_field_terminator | duff-0.5.2 | app-arch | O0/app-arch/duff-0.5.2/duff | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.