diff --git "a/Task Specific Datasets/block_analysis_c.jsonl" "b/Task Specific Datasets/block_analysis_c.jsonl" new file mode 100644--- /dev/null +++ "b/Task Specific Datasets/block_analysis_c.jsonl" @@ -0,0 +1,731 @@ +{"Programming Language": "C", "Source Code": "static inline void\nquota_init(struct quota *quota, size_t total)\n{\n\tuint64_t new_total = (total + (QUOTA_UNIT_SIZE - 1)) /\n\t\t\t\tQUOTA_UNIT_SIZE;\n\tquota->value = new_total << 32;\n}", "Selected Statement": "quota->value = new_total << 32;", "Function Input": {"quota": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"value": {"type_category": "unknown", "concrete_type": "uint64_t", "value": "10740875931435413829"}}}}, "total": {"value": "140737348572320"}}, "Variable Values Before Statement": {"new_total": "4294967295"}, "Value After Statement Execution": "NULL", "Block_Size": 3, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "static inline size_t\nsmall_round(size_t size)\n{\n\tif (size < 2)\n\t\treturn size;\n\tassert(size <= SIZE_MAX / 2 + 1);\n\tassert(size - 1 <= ULONG_MAX);\n\tsize_t r = 1;\n\treturn r << (sizeof(unsigned long) * CHAR_BIT -\n\t\t __builtin_clzl((unsigned long) (size - 1)));\n}", "Selected Statement": "size_t r = 1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 5, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\nfiber_init(int (*invoke)(fiber_func f, va_list ap))\n{\n\tpage_size = small_getpagesize();\n\tstack_direction = check_stack_direction(__builtin_frame_address(0));\n\tfiber_invoke = invoke;\n\tmain_thread_id = pthread_self();\n\tmain_cord.loop = ev_default_loop(EVFLAG_AUTO | EVFLAG_ALLOCFD);\n\tif (main_cord.loop == NULL)\n\t\tpanic(\"can't init event loop\");\n\tcord_create(&main_cord, \"main\");\n\tfiber_signal_init();\n}", "Selected Statement": "page_size = small_getpagesize();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "4096", "Function Name": "small_getpagesize", "Block_Size": 1, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\nfiber_init(int (*invoke)(fiber_func f, va_list ap))\n{\n\tpage_size = small_getpagesize();\n\tstack_direction = check_stack_direction(__builtin_frame_address(0));\n\tfiber_invoke = invoke;\n\tmain_thread_id = pthread_self();\n\tmain_cord.loop = ev_default_loop(EVFLAG_AUTO | EVFLAG_ALLOCFD);\n\tif (main_cord.loop == NULL)\n\t\tpanic(\"can't init event loop\");\n\tcord_create(&main_cord, \"main\");\n\tfiber_signal_init();\n}", "Selected Statement": "stack_direction = check_stack_direction(__builtin_frame_address(0));", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "int", "Function Name": "check_stack_direction", "Block_Size": 2, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\nfiber_init(int (*invoke)(fiber_func f, va_list ap))\n{\n\tpage_size = small_getpagesize();\n\tstack_direction = check_stack_direction(__builtin_frame_address(0));\n\tfiber_invoke = invoke;\n\tmain_thread_id = pthread_self();\n\tmain_cord.loop = ev_default_loop(EVFLAG_AUTO | EVFLAG_ALLOCFD);\n\tif (main_cord.loop == NULL)\n\t\tpanic(\"can't init event loop\");\n\tcord_create(&main_cord, \"main\");\n\tfiber_signal_init();\n}", "Selected Statement": "fiber_invoke = invoke;", "Function Input": {}, "Variable Values Before Statement": {"invoke": "{int (fiber_func, struct __va_list_tag *)} 0x363400 "}, "Value After Statement Execution": "{int (fiber_func, struct __va_list_tag *)} 0x363400 ", "Block_Size": 3, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\nfiber_init(int (*invoke)(fiber_func f, va_list ap))\n{\n\tpage_size = small_getpagesize();\n\tstack_direction = check_stack_direction(__builtin_frame_address(0));\n\tfiber_invoke = invoke;\n\tmain_thread_id = pthread_self();\n\tmain_cord.loop = ev_default_loop(EVFLAG_AUTO | EVFLAG_ALLOCFD);\n\tif (main_cord.loop == NULL)\n\t\tpanic(\"can't init event loop\");\n\tcord_create(&main_cord, \"main\");\n\tfiber_signal_init();\n}", "Selected Statement": "main_thread_id = pthread_self();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "pthread_t", "Function Name": "pthread_self", "Block_Size": 4, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\nfiber_init(int (*invoke)(fiber_func f, va_list ap))\n{\n\tpage_size = small_getpagesize();\n\tstack_direction = check_stack_direction(__builtin_frame_address(0));\n\tfiber_invoke = invoke;\n\tmain_thread_id = pthread_self();\n\tmain_cord.loop = ev_default_loop(EVFLAG_AUTO | EVFLAG_ALLOCFD);\n\tif (main_cord.loop == NULL)\n\t\tpanic(\"can't init event loop\");\n\tcord_create(&main_cord, \"main\");\n\tfiber_signal_init();\n}", "Selected Statement": "main_cord.loop = ev_default_loop(EVFLAG_AUTO | EVFLAG_ALLOCFD);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "ev_default_loop", "Block_Size": 5, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\nmempool_create_with_order(struct mempool *pool, struct slab_cache *cache,\n\t\t\t uint32_t objsize, uint8_t order)\n{\n\tassert(order <= cache->order_max);\n\tpool->cache = cache;\n\tslab_list_create(&pool->slabs);\n\tmslab_tree_new(&pool->hot_slabs);\n\tpool->first_hot_slab = NULL;\n\trlist_create(&pool->cold_slabs);\n\tpool->spare = NULL;\n\tpool->objsize = objsize;\n\tpool->slab_order = order;\n\t\n\tuint32_t slab_size = slab_order_size(pool->cache, pool->slab_order);\n\t\n\tpool->objcount = (slab_size - mslab_sizeof()) / objsize;\n\tassert(pool->objcount);\n\tpool->offset = slab_size - pool->objcount * pool->objsize;\n\tpool->slab_ptr_mask = ~(slab_order_size(cache, order) - 1);\n\tpool->small_mempool = NULL;\n}", "Selected Statement": "pool->cache = cache;", "Function Input": {}, "Variable Values Before Statement": {"cache": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 3, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\nmempool_create_with_order(struct mempool *pool, struct slab_cache *cache,\n\t\t\t uint32_t objsize, uint8_t order)\n{\n\tassert(order <= cache->order_max);\n\tpool->cache = cache;\n\tslab_list_create(&pool->slabs);\n\tmslab_tree_new(&pool->hot_slabs);\n\tpool->first_hot_slab = NULL;\n\trlist_create(&pool->cold_slabs);\n\tpool->spare = NULL;\n\tpool->objsize = objsize;\n\tpool->slab_order = order;\n\t\n\tuint32_t slab_size = slab_order_size(pool->cache, pool->slab_order);\n\t\n\tpool->objcount = (slab_size - mslab_sizeof()) / objsize;\n\tassert(pool->objcount);\n\tpool->offset = slab_size - pool->objcount * pool->objsize;\n\tpool->slab_ptr_mask = ~(slab_order_size(cache, order) - 1);\n\tpool->small_mempool = NULL;\n}", "Selected Statement": "pool->objsize = objsize;", "Function Input": {}, "Variable Values Before Statement": {"objsize": "440"}, "Value After Statement Execution": "440", "Block_Size": 9, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\nmempool_create_with_order(struct mempool *pool, struct slab_cache *cache,\n\t\t\t uint32_t objsize, uint8_t order)\n{\n\tassert(order <= cache->order_max);\n\tpool->cache = cache;\n\tslab_list_create(&pool->slabs);\n\tmslab_tree_new(&pool->hot_slabs);\n\tpool->first_hot_slab = NULL;\n\trlist_create(&pool->cold_slabs);\n\tpool->spare = NULL;\n\tpool->objsize = objsize;\n\tpool->slab_order = order;\n\t\n\tuint32_t slab_size = slab_order_size(pool->cache, pool->slab_order);\n\t\n\tpool->objcount = (slab_size - mslab_sizeof()) / objsize;\n\tassert(pool->objcount);\n\tpool->offset = slab_size - pool->objcount * pool->objsize;\n\tpool->slab_ptr_mask = ~(slab_order_size(cache, order) - 1);\n\tpool->small_mempool = NULL;\n}", "Selected Statement": "pool->objcount = (slab_size - mslab_sizeof()) / objsize;", "Function Input": {}, "Variable Values Before Statement": {"slab_size": "65536", "mslab_sizeof": "NULL", "objsize": "440"}, "Value After Statement Execution": "148", "Block_Size": 14, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\nmempool_create_with_order(struct mempool *pool, struct slab_cache *cache,\n\t\t\t uint32_t objsize, uint8_t order)\n{\n\tassert(order <= cache->order_max);\n\tpool->cache = cache;\n\tslab_list_create(&pool->slabs);\n\tmslab_tree_new(&pool->hot_slabs);\n\tpool->first_hot_slab = NULL;\n\trlist_create(&pool->cold_slabs);\n\tpool->spare = NULL;\n\tpool->objsize = objsize;\n\tpool->slab_order = order;\n\t\n\tuint32_t slab_size = slab_order_size(pool->cache, pool->slab_order);\n\t\n\tpool->objcount = (slab_size - mslab_sizeof()) / objsize;\n\tassert(pool->objcount);\n\tpool->offset = slab_size - pool->objcount * pool->objsize;\n\tpool->slab_ptr_mask = ~(slab_order_size(cache, order) - 1);\n\tpool->small_mempool = NULL;\n}", "Selected Statement": "pool->offset = slab_size - pool->objcount * pool->objsize;", "Function Input": {}, "Variable Values Before Statement": {"slab_size": "65536", "pool": {"cache": null, "slabs": null, "hot_slabs": null, "first_hot_slab": null, "cold_slabs": null, "spare": null, "objsize": "440", "slab_order": "4 '\\004'", "objcount": "148", "offset": "416", "slab_ptr_mask": "0", "small_mempool": null}}, "Value After Statement Execution": "416", "Block_Size": 16, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\nclock_lowres_signal_init(void)\n{\n#ifndef NDEBUG\n\towner = pthread_self();\n#endif\n\tclock_lowres_monotonic_clock_value = clock_monotonic();\n\tstruct sigaction sa;\n\tmemset(&sa, 0, sizeof(sa));\n\tsa.sa_handler = clock_lowres_tick;\n\tsa.sa_flags = SA_RESTART;\n\tif (tt_sigaction(SIGALRM, &sa, NULL) == -1)\n\t\tpanic_syserror(\"cannot set low resolution clock timer signal\");\n\n\tstruct itimerval timer;\n\ttimer.it_interval = resolution;\n\ttimer.it_value = resolution;\n\tif (setitimer(ITIMER_REAL, &timer, NULL) == -1)\n\t\tpanic_syserror(\"cannot set low resolution clock timer\");\n}", "Selected Statement": "sa.sa_handler = clock_lowres_tick;", "Function Input": {}, "Variable Values Before Statement": {"clock_lowres_tick": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 7, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\nclock_lowres_signal_init(void)\n{\n#ifndef NDEBUG\n\towner = pthread_self();\n#endif\n\tclock_lowres_monotonic_clock_value = clock_monotonic();\n\tstruct sigaction sa;\n\tmemset(&sa, 0, sizeof(sa));\n\tsa.sa_handler = clock_lowres_tick;\n\tsa.sa_flags = SA_RESTART;\n\tif (tt_sigaction(SIGALRM, &sa, NULL) == -1)\n\t\tpanic_syserror(\"cannot set low resolution clock timer signal\");\n\n\tstruct itimerval timer;\n\ttimer.it_interval = resolution;\n\ttimer.it_value = resolution;\n\tif (setitimer(ITIMER_REAL, &timer, NULL) == -1)\n\t\tpanic_syserror(\"cannot set low resolution clock timer\");\n}", "Selected Statement": "sa.sa_flags = SA_RESTART;", "Function Input": {}, "Variable Values Before Statement": {"SA_RESTART": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 8, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\nclock_lowres_signal_init(void)\n{\n#ifndef NDEBUG\n\towner = pthread_self();\n#endif\n\tclock_lowres_monotonic_clock_value = clock_monotonic();\n\tstruct sigaction sa;\n\tmemset(&sa, 0, sizeof(sa));\n\tsa.sa_handler = clock_lowres_tick;\n\tsa.sa_flags = SA_RESTART;\n\tif (tt_sigaction(SIGALRM, &sa, NULL) == -1)\n\t\tpanic_syserror(\"cannot set low resolution clock timer signal\");\n\n\tstruct itimerval timer;\n\ttimer.it_interval = resolution;\n\ttimer.it_value = resolution;\n\tif (setitimer(ITIMER_REAL, &timer, NULL) == -1)\n\t\tpanic_syserror(\"cannot set low resolution clock timer\");\n}", "Selected Statement": "timer.it_interval = resolution;", "Function Input": {}, "Variable Values Before Statement": {"resolution": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 13, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\nclock_lowres_signal_init(void)\n{\n#ifndef NDEBUG\n\towner = pthread_self();\n#endif\n\tclock_lowres_monotonic_clock_value = clock_monotonic();\n\tstruct sigaction sa;\n\tmemset(&sa, 0, sizeof(sa));\n\tsa.sa_handler = clock_lowres_tick;\n\tsa.sa_flags = SA_RESTART;\n\tif (tt_sigaction(SIGALRM, &sa, NULL) == -1)\n\t\tpanic_syserror(\"cannot set low resolution clock timer signal\");\n\n\tstruct itimerval timer;\n\ttimer.it_interval = resolution;\n\ttimer.it_value = resolution;\n\tif (setitimer(ITIMER_REAL, &timer, NULL) == -1)\n\t\tpanic_syserror(\"cannot set low resolution clock timer\");\n}", "Selected Statement": "timer.it_value = resolution;", "Function Input": {}, "Variable Values Before Statement": {"resolution": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 14, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "double\nclock_monotonic(void)\n{\n\tstruct timespec ts;\n\tint rc = clock_gettime(CLOCK_MONOTONIC, &ts);\n\tif (rc != 0)\n\t\tpanic_syserror(\"clock_gettime failed\");\n\treturn (double) ts.tv_sec + ts.tv_nsec / 1e9;\n}", "Selected Statement": "int rc = clock_gettime(CLOCK_MONOTONIC, &ts);", "Function Input": {}, "Variable Values Before Statement": {"CLOCK_MONOTONIC": "NULL"}, "Value After Statement Execution": "int", "Function Name": "clock_gettime", "Block_Size": 2, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "int\ntt_sigaction(int signum, struct sigaction *sa, struct sigaction *osa)\n{\n\tassert(signum < SIGMAX);\n\tassert(sa != NULL);\n\n\t\n\tif (!main_thread_initialized) {\n\t\tmain_thread_id = pthread_self();\n\t\tmain_thread_initialized = true;\n\t}\n\n\tvoid (*old_handler)(int) = sighandlers[signum];\n\tif (sa->sa_handler == SIG_DFL || sa->sa_handler == SIG_IGN) {\n\t\tsighandlers[signum] = NULL;\n\t} else {\n\t\tsighandlers[signum] = sa->sa_handler;\n\t\tsa->sa_handler = sighandler_dispatcher;\n\t}\n\tint rc = sigaction(signum, sa, osa);\n\tif (osa != NULL && old_handler != NULL)\n\t\tosa->sa_handler = old_handler;\n\treturn rc;\n}", "Selected Statement": "main_thread_id = pthread_self();", "Function Input": {"signum": {"value": "0"}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "pthread_t", "Function Name": "pthread_self", "Block_Size": 6, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "int\ntt_sigaction(int signum, struct sigaction *sa, struct sigaction *osa)\n{\n\tassert(signum < SIGMAX);\n\tassert(sa != NULL);\n\n\t\n\tif (!main_thread_initialized) {\n\t\tmain_thread_id = pthread_self();\n\t\tmain_thread_initialized = true;\n\t}\n\n\tvoid (*old_handler)(int) = sighandlers[signum];\n\tif (sa->sa_handler == SIG_DFL || sa->sa_handler == SIG_IGN) {\n\t\tsighandlers[signum] = NULL;\n\t} else {\n\t\tsighandlers[signum] = sa->sa_handler;\n\t\tsa->sa_handler = sighandler_dispatcher;\n\t}\n\tint rc = sigaction(signum, sa, osa);\n\tif (osa != NULL && old_handler != NULL)\n\t\tosa->sa_handler = old_handler;\n\treturn rc;\n}", "Selected Statement": "int rc = sigaction(signum, sa, osa);", "Function Input": {"signum": {"value": "0"}}, "Variable Values Before Statement": {"signum": "int", "sa": {"__sigaction_handler": null, "sa_mask": null, "sa_flags": "268435456", "sa_restorer": null}, "osa": "NULL"}, "Value After Statement Execution": "int", "Function Name": "sigaction", "Block_Size": 17, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "int\ntt_sigaction(int signum, struct sigaction *sa, struct sigaction *osa)\n{\n\tassert(signum < SIGMAX);\n\tassert(sa != NULL);\n\n\t\n\tif (!main_thread_initialized) {\n\t\tmain_thread_id = pthread_self();\n\t\tmain_thread_initialized = true;\n\t}\n\n\tvoid (*old_handler)(int) = sighandlers[signum];\n\tif (sa->sa_handler == SIG_DFL || sa->sa_handler == SIG_IGN) {\n\t\tsighandlers[signum] = NULL;\n\t} else {\n\t\tsighandlers[signum] = sa->sa_handler;\n\t\tsa->sa_handler = sighandler_dispatcher;\n\t}\n\tint rc = sigaction(signum, sa, osa);\n\tif (osa != NULL && old_handler != NULL)\n\t\tosa->sa_handler = old_handler;\n\treturn rc;\n}", "Selected Statement": "osa->sa_handler = old_handler;", "Function Input": {"signum": {"value": "0"}}, "Variable Values Before Statement": {"old_handler": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 19, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\ncsv_create(struct csv *csv)\n{\n\tmemset(csv, 0, sizeof(struct csv));\n\tcsv->delimiter= ',';\n\tcsv->quote_char = '\\\"';\n\tcsv->realloc = realloc;\n\tcsv->emit_field = csv_emit_field_empty;\n\tcsv->emit_row = csv_emit_row_empty;\n}", "Selected Statement": "csv->realloc = realloc;", "Function Input": {}, "Variable Values Before Statement": {"realloc": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 4, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\ncsv_create(struct csv *csv)\n{\n\tmemset(csv, 0, sizeof(struct csv));\n\tcsv->delimiter= ',';\n\tcsv->quote_char = '\\\"';\n\tcsv->realloc = realloc;\n\tcsv->emit_field = csv_emit_field_empty;\n\tcsv->emit_row = csv_emit_row_empty;\n}", "Selected Statement": "csv->emit_field = csv_emit_field_empty;", "Function Input": {}, "Variable Values Before Statement": {"csv_emit_field_empty": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 5, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void\ncsv_create(struct csv *csv)\n{\n\tmemset(csv, 0, sizeof(struct csv));\n\tcsv->delimiter= ',';\n\tcsv->quote_char = '\\\"';\n\tcsv->realloc = realloc;\n\tcsv->emit_field = csv_emit_field_empty;\n\tcsv->emit_row = csv_emit_row_empty;\n}", "Selected Statement": "csv->emit_row = csv_emit_row_empty;", "Function Input": {}, "Variable Values Before Statement": {"csv_emit_row_empty": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 6, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void http_parser_create(struct http_parser *parser)\n{\n parser->hdr_value_start = NULL;\n parser->hdr_value_end = NULL;\n parser->http_major = -1;\n parser->http_minor = -1;\n parser->hdr_name = NULL;\n parser->hdr_name_idx = 0;\n}", "Selected Statement": "parser->http_major = -1;", "Function Input": {"parser": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"hdr_value_start": {"type_category": "string", "concrete_type": "string", "value": "0x8c48348707e8b49 "}, "hdr_value_end": {"type_category": "string", "concrete_type": "string", "value": "0x634c1e95e415b "}, "http_major": {"type_category": "int", "concrete_type": "int", "value": "1398161868"}, "http_minor": {"type_category": "int", "concrete_type": "int", "value": "-24557232"}, "hdr_name": {"type_category": "string", "concrete_type": "string", "value": "0x48000664c2058d48 "}, "hdr_name_idx": {"type_category": "int", "concrete_type": "int", "value": "-1958213751"}}}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 3, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void http_parser_create(struct http_parser *parser)\n{\n parser->hdr_value_start = NULL;\n parser->hdr_value_end = NULL;\n parser->http_major = -1;\n parser->http_minor = -1;\n parser->hdr_name = NULL;\n parser->hdr_name_idx = 0;\n}", "Selected Statement": "parser->http_minor = -1;", "Function Input": {"parser": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"hdr_value_start": {"type_category": "string", "concrete_type": "string", "value": "0x8c48348707e8b49 "}, "hdr_value_end": {"type_category": "string", "concrete_type": "string", "value": "0x634c1e95e415b "}, "http_major": {"type_category": "int", "concrete_type": "int", "value": "1398161868"}, "http_minor": {"type_category": "int", "concrete_type": "int", "value": "-24557232"}, "hdr_name": {"type_category": "string", "concrete_type": "string", "value": "0x48000664c2058d48 "}, "hdr_name_idx": {"type_category": "int", "concrete_type": "int", "value": "-1958213751"}}}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 4, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "void http_parser_create(struct http_parser *parser)\n{\n parser->hdr_value_start = NULL;\n parser->hdr_value_end = NULL;\n parser->http_major = -1;\n parser->http_minor = -1;\n parser->hdr_name = NULL;\n parser->hdr_name_idx = 0;\n}", "Selected Statement": "parser->hdr_name_idx = 0;", "Function Input": {"parser": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"hdr_value_start": {"type_category": "string", "concrete_type": "string", "value": "0x8c48348707e8b49 "}, "hdr_value_end": {"type_category": "string", "concrete_type": "string", "value": "0x634c1e95e415b "}, "http_major": {"type_category": "int", "concrete_type": "int", "value": "1398161868"}, "http_minor": {"type_category": "int", "concrete_type": "int", "value": "-24557232"}, "hdr_name": {"type_category": "string", "concrete_type": "string", "value": "0x48000664c2058d48 "}, "hdr_name_idx": {"type_category": "int", "concrete_type": "int", "value": "-1958213751"}}}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 6, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "ssize_t\ndatetime_parse_full(struct datetime *date, const char *str, size_t len,\n\t\t const char *tzsuffix, int32_t offset)\n{\n\tsize_t n;\n\tdt_t dt;\n\tconst char *svp = str;\n\tchar c;\n\tint sec_of_day = 0, nanosecond = 0;\n\tint16_t tzindex = 0;\n\n\tn = dt_parse_iso_date(str, len, &dt);\n\tif (n == 0)\n\t\treturn 0;\n\n\tstr += n;\n\tlen -= n;\n\tif (len <= 0)\n\t\tgoto exit;\n\n\tc = *str++;\n\tif (c != 'T' && c != 't' && c != ' ')\n\t\treturn 0;\n\tlen--;\n\tif (len <= 0)\n\t\tgoto exit;\n\n\tn = dt_parse_iso_time(str, len, &sec_of_day, &nanosecond);\n\tif (n == 0)\n\t\treturn 0;\n\n\tstr += n;\n\tlen -= n;\n\tif (len <= 0)\n\t\tgoto exit;\n\n\t\n\ttime_t base = dt_epoch(dt) + sec_of_day - offset * 60;\n\tssize_t l;\n\tif (tzsuffix != NULL) {\n\t\tl = parse_tz_suffix(tzsuffix, strlen(tzsuffix), base,\n\t\t\t\t &tzindex, &offset);\n\t\tif (l < 0)\n\t\t\treturn l;\n\t\tgoto exit;\n\t}\n\n\tif (*str == ' ') {\n\t\tstr++;\n\t\tlen--;\n\t}\n\tif (len <= 0)\n\t\tgoto exit;\n\n\tl = parse_tz_suffix(str, len, base, &tzindex, &offset);\n\tif (l < 0)\n\t\treturn l;\n\tstr += l;\n\nexit:\n\tdate->epoch = dt_epoch(dt) + sec_of_day - offset * 60;\n\tdate->nsec = nanosecond;\n\tdate->tzoffset = offset;\n\tdate->tzindex = tzindex;\n\n\treturn str - svp;\n}", "Selected Statement": "int sec_of_day = 0, nanosecond = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 6, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "ssize_t\ndatetime_parse_full(struct datetime *date, const char *str, size_t len,\n\t\t const char *tzsuffix, int32_t offset)\n{\n\tsize_t n;\n\tdt_t dt;\n\tconst char *svp = str;\n\tchar c;\n\tint sec_of_day = 0, nanosecond = 0;\n\tint16_t tzindex = 0;\n\n\tn = dt_parse_iso_date(str, len, &dt);\n\tif (n == 0)\n\t\treturn 0;\n\n\tstr += n;\n\tlen -= n;\n\tif (len <= 0)\n\t\tgoto exit;\n\n\tc = *str++;\n\tif (c != 'T' && c != 't' && c != ' ')\n\t\treturn 0;\n\tlen--;\n\tif (len <= 0)\n\t\tgoto exit;\n\n\tn = dt_parse_iso_time(str, len, &sec_of_day, &nanosecond);\n\tif (n == 0)\n\t\treturn 0;\n\n\tstr += n;\n\tlen -= n;\n\tif (len <= 0)\n\t\tgoto exit;\n\n\t\n\ttime_t base = dt_epoch(dt) + sec_of_day - offset * 60;\n\tssize_t l;\n\tif (tzsuffix != NULL) {\n\t\tl = parse_tz_suffix(tzsuffix, strlen(tzsuffix), base,\n\t\t\t\t &tzindex, &offset);\n\t\tif (l < 0)\n\t\t\treturn l;\n\t\tgoto exit;\n\t}\n\n\tif (*str == ' ') {\n\t\tstr++;\n\t\tlen--;\n\t}\n\tif (len <= 0)\n\t\tgoto exit;\n\n\tl = parse_tz_suffix(str, len, base, &tzindex, &offset);\n\tif (l < 0)\n\t\treturn l;\n\tstr += l;\n\nexit:\n\tdate->epoch = dt_epoch(dt) + sec_of_day - offset * 60;\n\tdate->nsec = nanosecond;\n\tdate->tzoffset = offset;\n\tdate->tzindex = tzindex;\n\n\treturn str - svp;\n}", "Selected Statement": "n = dt_parse_iso_date(str, len, &dt);", "Function Input": {}, "Variable Values Before Statement": {"str": "0xe70cd0 \"\"", "len": "0"}, "Value After Statement Execution": "0", "Function Name": "dt_parse_iso_date", "Block_Size": 9, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "int\nuri_create(struct uri *uri, const char *str)\n{\n\tmemset(uri, 0, sizeof(struct uri));\n\tif (str == NULL)\n\t\treturn 0;\n\tstruct uri_raw uri_raw;\n\tif (uri_raw_parse(&uri_raw, str) != 0)\n\t\treturn -1;\n\turi->scheme = XSTRNDUP(uri_raw.scheme, uri_raw.scheme_len);\n\turi->login = XSTRNDUP(uri_raw.login, uri_raw.login_len);\n\turi->password = XSTRNDUP(uri_raw.password, uri_raw.password_len);\n\turi->host = XSTRNDUP(uri_raw.host, uri_raw.host_len);\n\turi->service = XSTRNDUP(uri_raw.service, uri_raw.service_len);\n\turi->path = XSTRNDUP(uri_raw.path, uri_raw.path_len);\n\turi->query = XSTRNDUP(uri_raw.query, uri_raw.query_len);\n\turi->fragment = XSTRNDUP(uri_raw.fragment, uri_raw.fragment_len);\n\turi->host_hint = uri_raw.host_hint;\n\tif (uri->query != NULL)\n\t\turi_create_params(uri, uri->query);\n\treturn 0;\n}", "Selected Statement": "uri->scheme = XSTRNDUP(uri_raw.scheme, uri_raw.scheme_len);", "Function Input": {}, "Variable Values Before Statement": {"uri_raw.scheme": "NULL", "uri_raw.scheme_len": "0"}, "Value After Statement Execution": "NULL", "Function Name": "XSTRNDUP", "Block_Size": 7, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "int\nuri_create(struct uri *uri, const char *str)\n{\n\tmemset(uri, 0, sizeof(struct uri));\n\tif (str == NULL)\n\t\treturn 0;\n\tstruct uri_raw uri_raw;\n\tif (uri_raw_parse(&uri_raw, str) != 0)\n\t\treturn -1;\n\turi->scheme = XSTRNDUP(uri_raw.scheme, uri_raw.scheme_len);\n\turi->login = XSTRNDUP(uri_raw.login, uri_raw.login_len);\n\turi->password = XSTRNDUP(uri_raw.password, uri_raw.password_len);\n\turi->host = XSTRNDUP(uri_raw.host, uri_raw.host_len);\n\turi->service = XSTRNDUP(uri_raw.service, uri_raw.service_len);\n\turi->path = XSTRNDUP(uri_raw.path, uri_raw.path_len);\n\turi->query = XSTRNDUP(uri_raw.query, uri_raw.query_len);\n\turi->fragment = XSTRNDUP(uri_raw.fragment, uri_raw.fragment_len);\n\turi->host_hint = uri_raw.host_hint;\n\tif (uri->query != NULL)\n\t\turi_create_params(uri, uri->query);\n\treturn 0;\n}", "Selected Statement": "uri->login = XSTRNDUP(uri_raw.login, uri_raw.login_len);", "Function Input": {}, "Variable Values Before Statement": {"uri_raw.login": "NULL", "uri_raw.login_len": "0"}, "Value After Statement Execution": "NULL", "Function Name": "XSTRNDUP", "Block_Size": 8, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "int\nuri_create(struct uri *uri, const char *str)\n{\n\tmemset(uri, 0, sizeof(struct uri));\n\tif (str == NULL)\n\t\treturn 0;\n\tstruct uri_raw uri_raw;\n\tif (uri_raw_parse(&uri_raw, str) != 0)\n\t\treturn -1;\n\turi->scheme = XSTRNDUP(uri_raw.scheme, uri_raw.scheme_len);\n\turi->login = XSTRNDUP(uri_raw.login, uri_raw.login_len);\n\turi->password = XSTRNDUP(uri_raw.password, uri_raw.password_len);\n\turi->host = XSTRNDUP(uri_raw.host, uri_raw.host_len);\n\turi->service = XSTRNDUP(uri_raw.service, uri_raw.service_len);\n\turi->path = XSTRNDUP(uri_raw.path, uri_raw.path_len);\n\turi->query = XSTRNDUP(uri_raw.query, uri_raw.query_len);\n\turi->fragment = XSTRNDUP(uri_raw.fragment, uri_raw.fragment_len);\n\turi->host_hint = uri_raw.host_hint;\n\tif (uri->query != NULL)\n\t\turi_create_params(uri, uri->query);\n\treturn 0;\n}", "Selected Statement": "uri->password = XSTRNDUP(uri_raw.password, uri_raw.password_len);", "Function Input": {}, "Variable Values Before Statement": {"uri_raw.password": "NULL", "uri_raw.password_len": "0"}, "Value After Statement Execution": "NULL", "Function Name": "XSTRNDUP", "Block_Size": 9, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "int\nuri_create(struct uri *uri, const char *str)\n{\n\tmemset(uri, 0, sizeof(struct uri));\n\tif (str == NULL)\n\t\treturn 0;\n\tstruct uri_raw uri_raw;\n\tif (uri_raw_parse(&uri_raw, str) != 0)\n\t\treturn -1;\n\turi->scheme = XSTRNDUP(uri_raw.scheme, uri_raw.scheme_len);\n\turi->login = XSTRNDUP(uri_raw.login, uri_raw.login_len);\n\turi->password = XSTRNDUP(uri_raw.password, uri_raw.password_len);\n\turi->host = XSTRNDUP(uri_raw.host, uri_raw.host_len);\n\turi->service = XSTRNDUP(uri_raw.service, uri_raw.service_len);\n\turi->path = XSTRNDUP(uri_raw.path, uri_raw.path_len);\n\turi->query = XSTRNDUP(uri_raw.query, uri_raw.query_len);\n\turi->fragment = XSTRNDUP(uri_raw.fragment, uri_raw.fragment_len);\n\turi->host_hint = uri_raw.host_hint;\n\tif (uri->query != NULL)\n\t\turi_create_params(uri, uri->query);\n\treturn 0;\n}", "Selected Statement": "uri->host = XSTRNDUP(uri_raw.host, uri_raw.host_len);", "Function Input": {}, "Variable Values Before Statement": {"uri_raw.host": "0xd0b580 \";E\"", "uri_raw.host_len": "2"}, "Value After Statement Execution": "0xd0f4b0 \";E\"", "Function Name": "XSTRNDUP", "Block_Size": 10, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "int\nuri_create(struct uri *uri, const char *str)\n{\n\tmemset(uri, 0, sizeof(struct uri));\n\tif (str == NULL)\n\t\treturn 0;\n\tstruct uri_raw uri_raw;\n\tif (uri_raw_parse(&uri_raw, str) != 0)\n\t\treturn -1;\n\turi->scheme = XSTRNDUP(uri_raw.scheme, uri_raw.scheme_len);\n\turi->login = XSTRNDUP(uri_raw.login, uri_raw.login_len);\n\turi->password = XSTRNDUP(uri_raw.password, uri_raw.password_len);\n\turi->host = XSTRNDUP(uri_raw.host, uri_raw.host_len);\n\turi->service = XSTRNDUP(uri_raw.service, uri_raw.service_len);\n\turi->path = XSTRNDUP(uri_raw.path, uri_raw.path_len);\n\turi->query = XSTRNDUP(uri_raw.query, uri_raw.query_len);\n\turi->fragment = XSTRNDUP(uri_raw.fragment, uri_raw.fragment_len);\n\turi->host_hint = uri_raw.host_hint;\n\tif (uri->query != NULL)\n\t\turi_create_params(uri, uri->query);\n\treturn 0;\n}", "Selected Statement": "uri->service = XSTRNDUP(uri_raw.service, uri_raw.service_len);", "Function Input": {}, "Variable Values Before Statement": {"uri_raw.service": "NULL", "uri_raw.service_len": "0"}, "Value After Statement Execution": "NULL", "Function Name": "XSTRNDUP", "Block_Size": 11, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "int\nuri_create(struct uri *uri, const char *str)\n{\n\tmemset(uri, 0, sizeof(struct uri));\n\tif (str == NULL)\n\t\treturn 0;\n\tstruct uri_raw uri_raw;\n\tif (uri_raw_parse(&uri_raw, str) != 0)\n\t\treturn -1;\n\turi->scheme = XSTRNDUP(uri_raw.scheme, uri_raw.scheme_len);\n\turi->login = XSTRNDUP(uri_raw.login, uri_raw.login_len);\n\turi->password = XSTRNDUP(uri_raw.password, uri_raw.password_len);\n\turi->host = XSTRNDUP(uri_raw.host, uri_raw.host_len);\n\turi->service = XSTRNDUP(uri_raw.service, uri_raw.service_len);\n\turi->path = XSTRNDUP(uri_raw.path, uri_raw.path_len);\n\turi->query = XSTRNDUP(uri_raw.query, uri_raw.query_len);\n\turi->fragment = XSTRNDUP(uri_raw.fragment, uri_raw.fragment_len);\n\turi->host_hint = uri_raw.host_hint;\n\tif (uri->query != NULL)\n\t\turi_create_params(uri, uri->query);\n\treturn 0;\n}", "Selected Statement": "uri->path = XSTRNDUP(uri_raw.path, uri_raw.path_len);", "Function Input": {}, "Variable Values Before Statement": {"uri_raw.path": "NULL", "uri_raw.path_len": "0"}, "Value After Statement Execution": "NULL", "Function Name": "XSTRNDUP", "Block_Size": 12, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "int\nuri_create(struct uri *uri, const char *str)\n{\n\tmemset(uri, 0, sizeof(struct uri));\n\tif (str == NULL)\n\t\treturn 0;\n\tstruct uri_raw uri_raw;\n\tif (uri_raw_parse(&uri_raw, str) != 0)\n\t\treturn -1;\n\turi->scheme = XSTRNDUP(uri_raw.scheme, uri_raw.scheme_len);\n\turi->login = XSTRNDUP(uri_raw.login, uri_raw.login_len);\n\turi->password = XSTRNDUP(uri_raw.password, uri_raw.password_len);\n\turi->host = XSTRNDUP(uri_raw.host, uri_raw.host_len);\n\turi->service = XSTRNDUP(uri_raw.service, uri_raw.service_len);\n\turi->path = XSTRNDUP(uri_raw.path, uri_raw.path_len);\n\turi->query = XSTRNDUP(uri_raw.query, uri_raw.query_len);\n\turi->fragment = XSTRNDUP(uri_raw.fragment, uri_raw.fragment_len);\n\turi->host_hint = uri_raw.host_hint;\n\tif (uri->query != NULL)\n\t\turi_create_params(uri, uri->query);\n\treturn 0;\n}", "Selected Statement": "uri->query = XSTRNDUP(uri_raw.query, uri_raw.query_len);", "Function Input": {}, "Variable Values Before Statement": {"uri_raw.query": "NULL", "uri_raw.query_len": "0"}, "Value After Statement Execution": "NULL", "Function Name": "XSTRNDUP", "Block_Size": 13, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "int\nuri_create(struct uri *uri, const char *str)\n{\n\tmemset(uri, 0, sizeof(struct uri));\n\tif (str == NULL)\n\t\treturn 0;\n\tstruct uri_raw uri_raw;\n\tif (uri_raw_parse(&uri_raw, str) != 0)\n\t\treturn -1;\n\turi->scheme = XSTRNDUP(uri_raw.scheme, uri_raw.scheme_len);\n\turi->login = XSTRNDUP(uri_raw.login, uri_raw.login_len);\n\turi->password = XSTRNDUP(uri_raw.password, uri_raw.password_len);\n\turi->host = XSTRNDUP(uri_raw.host, uri_raw.host_len);\n\turi->service = XSTRNDUP(uri_raw.service, uri_raw.service_len);\n\turi->path = XSTRNDUP(uri_raw.path, uri_raw.path_len);\n\turi->query = XSTRNDUP(uri_raw.query, uri_raw.query_len);\n\turi->fragment = XSTRNDUP(uri_raw.fragment, uri_raw.fragment_len);\n\turi->host_hint = uri_raw.host_hint;\n\tif (uri->query != NULL)\n\t\turi_create_params(uri, uri->query);\n\treturn 0;\n}", "Selected Statement": "uri->fragment = XSTRNDUP(uri_raw.fragment, uri_raw.fragment_len);", "Function Input": {}, "Variable Values Before Statement": {"uri_raw.fragment": "NULL", "uri_raw.fragment_len": "0"}, "Value After Statement Execution": "NULL", "Function Name": "XSTRNDUP", "Block_Size": 14, "Project Information": "tarantool"} +{"Programming Language": "C", "Source Code": "MemoryContext\nAllocSetContextCreateInternal(MemoryContext parent,\n\t\t\t\t\t\t\t const char *name,\n\t\t\t\t\t\t\t Size minContextSize,\n\t\t\t\t\t\t\t Size initBlockSize,\n\t\t\t\t\t\t\t Size maxBlockSize)\n{\n\tint\t\t\tfreeListIndex;\n\tSize\t\tfirstBlockSize;\n\tAllocSet\tset;\n\tAllocBlock\tblock;\n\n\t\n\tStaticAssertDecl(ALLOC_CHUNKHDRSZ == MAXALIGN(ALLOC_CHUNKHDRSZ),\n\t\t\t\t\t \"sizeof(MemoryChunk) is not maxaligned\");\n\t\n\tStaticAssertDecl(sizeof(AllocFreeListLink) <= (1 << ALLOC_MINBITS),\n\t\t\t\t\t \"sizeof(AllocFreeListLink) larger than minimum allocation size\");\n\n\t\n\tAssert(initBlockSize == MAXALIGN(initBlockSize) &&\n\t\t initBlockSize >= 1024);\n\tAssert(maxBlockSize == MAXALIGN(maxBlockSize) &&\n\t\t maxBlockSize >= initBlockSize &&\n\t\t AllocHugeSizeIsValid(maxBlockSize)); \n\tAssert(minContextSize == 0 ||\n\t\t (minContextSize == MAXALIGN(minContextSize) &&\n\t\t\tminContextSize >= 1024 &&\n\t\t\tminContextSize <= maxBlockSize));\n\tAssert(maxBlockSize <= MEMORYCHUNK_MAX_BLOCKOFFSET);\n\n\t\n\tif (minContextSize == ALLOCSET_DEFAULT_MINSIZE &&\n\t\tinitBlockSize == ALLOCSET_DEFAULT_INITSIZE)\n\t\tfreeListIndex = 0;\n\telse if (minContextSize == ALLOCSET_SMALL_MINSIZE &&\n\t\t\t initBlockSize == ALLOCSET_SMALL_INITSIZE)\n\t\tfreeListIndex = 1;\n\telse\n\t\tfreeListIndex = -1;\n\n\t\n\tif (freeListIndex >= 0)\n\t{\n\t\tAllocSetFreeList *freelist = &context_freelists[freeListIndex];\n\n\t\tif (freelist->first_free != NULL)\n\t\t{\n\t\t\t\n\t\t\tset = freelist->first_free;\n\t\t\tfreelist->first_free = (AllocSet) set->header.nextchild;\n\t\t\tfreelist->num_free--;\n\n\t\t\t\n\t\t\tset->maxBlockSize = maxBlockSize;\n\n\t\t\t\n\t\t\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\t\t\tparent,\n\t\t\t\t\t\t\t\tname);\n\n\t\t\t((MemoryContext) set)->mem_allocated =\n\t\t\t\tset->keeper->endptr - ((char *) set);\n\n\t\t\treturn (MemoryContext) set;\n\t\t}\n\t}\n\n\t\n\tfirstBlockSize = MAXALIGN(sizeof(AllocSetContext)) +\n\t\tALLOC_BLOCKHDRSZ + ALLOC_CHUNKHDRSZ;\n\tif (minContextSize != 0)\n\t\tfirstBlockSize = Max(firstBlockSize, minContextSize);\n\telse\n\t\tfirstBlockSize = Max(firstBlockSize, initBlockSize);\n\n\t\n\tset = (AllocSet) malloc(firstBlockSize);\n\tif (set == NULL)\n\t{\n\t\tif (TopMemoryContext)\n\t\t\tMemoryContextStats(TopMemoryContext);\n\t\tereport(ERROR,\n\t\t\t\t(errcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t errmsg(\"out of memory\"),\n\t\t\t\t errdetail(\"Failed while creating memory context \\\"%s\\\".\",\n\t\t\t\t\t\t name)));\n\t}\n\n\t\n\n\t\n\tblock = (AllocBlock) (((char *) set) + MAXALIGN(sizeof(AllocSetContext)));\n\tblock->aset = set;\n\tblock->freeptr = ((char *) block) + ALLOC_BLOCKHDRSZ;\n\tblock->endptr = ((char *) set) + firstBlockSize;\n\tblock->prev = NULL;\n\tblock->next = NULL;\n\n\t\n\tVALGRIND_MAKE_MEM_NOACCESS(block->freeptr, block->endptr - block->freeptr);\n\n\t\n\tset->blocks = block;\n\t\n\tset->keeper = block;\n\n\t\n\tMemSetAligned(set->freelist, 0, sizeof(set->freelist));\n\n\tset->initBlockSize = initBlockSize;\n\tset->maxBlockSize = maxBlockSize;\n\tset->nextBlockSize = initBlockSize;\n\tset->freeListIndex = freeListIndex;\n\n\t\n\tStaticAssertStmt(ALLOC_CHUNK_LIMIT == ALLOCSET_SEPARATE_THRESHOLD,\n\t\t\t\t\t \"ALLOC_CHUNK_LIMIT != ALLOCSET_SEPARATE_THRESHOLD\");\n\n\t\n\tset->allocChunkLimit = ALLOC_CHUNK_LIMIT;\n\twhile ((Size) (set->allocChunkLimit + ALLOC_CHUNKHDRSZ) >\n\t\t (Size) ((maxBlockSize - ALLOC_BLOCKHDRSZ) / ALLOC_CHUNK_FRACTION))\n\t\tset->allocChunkLimit >>= 1;\n\n\t\n\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\tparent,\n\t\t\t\t\t\tname);\n\n\t((MemoryContext) set)->mem_allocated = firstBlockSize;\n\n\treturn (MemoryContext) set;\n}", "Selected Statement": "block = (AllocBlock) (((char *) set) + MAXALIGN(sizeof(AllocSetContext)));", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "AllocBlock", "Function Name": "(AllocBlock)", "Block_Size": 114, "Project Information": "libpg_query"} +{"Programming Language": "C", "Source Code": "MemoryContext\nAllocSetContextCreateInternal(MemoryContext parent,\n\t\t\t\t\t\t\t const char *name,\n\t\t\t\t\t\t\t Size minContextSize,\n\t\t\t\t\t\t\t Size initBlockSize,\n\t\t\t\t\t\t\t Size maxBlockSize)\n{\n\tint\t\t\tfreeListIndex;\n\tSize\t\tfirstBlockSize;\n\tAllocSet\tset;\n\tAllocBlock\tblock;\n\n\t\n\tStaticAssertDecl(ALLOC_CHUNKHDRSZ == MAXALIGN(ALLOC_CHUNKHDRSZ),\n\t\t\t\t\t \"sizeof(MemoryChunk) is not maxaligned\");\n\t\n\tStaticAssertDecl(sizeof(AllocFreeListLink) <= (1 << ALLOC_MINBITS),\n\t\t\t\t\t \"sizeof(AllocFreeListLink) larger than minimum allocation size\");\n\n\t\n\tAssert(initBlockSize == MAXALIGN(initBlockSize) &&\n\t\t initBlockSize >= 1024);\n\tAssert(maxBlockSize == MAXALIGN(maxBlockSize) &&\n\t\t maxBlockSize >= initBlockSize &&\n\t\t AllocHugeSizeIsValid(maxBlockSize)); \n\tAssert(minContextSize == 0 ||\n\t\t (minContextSize == MAXALIGN(minContextSize) &&\n\t\t\tminContextSize >= 1024 &&\n\t\t\tminContextSize <= maxBlockSize));\n\tAssert(maxBlockSize <= MEMORYCHUNK_MAX_BLOCKOFFSET);\n\n\t\n\tif (minContextSize == ALLOCSET_DEFAULT_MINSIZE &&\n\t\tinitBlockSize == ALLOCSET_DEFAULT_INITSIZE)\n\t\tfreeListIndex = 0;\n\telse if (minContextSize == ALLOCSET_SMALL_MINSIZE &&\n\t\t\t initBlockSize == ALLOCSET_SMALL_INITSIZE)\n\t\tfreeListIndex = 1;\n\telse\n\t\tfreeListIndex = -1;\n\n\t\n\tif (freeListIndex >= 0)\n\t{\n\t\tAllocSetFreeList *freelist = &context_freelists[freeListIndex];\n\n\t\tif (freelist->first_free != NULL)\n\t\t{\n\t\t\t\n\t\t\tset = freelist->first_free;\n\t\t\tfreelist->first_free = (AllocSet) set->header.nextchild;\n\t\t\tfreelist->num_free--;\n\n\t\t\t\n\t\t\tset->maxBlockSize = maxBlockSize;\n\n\t\t\t\n\t\t\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\t\t\tparent,\n\t\t\t\t\t\t\t\tname);\n\n\t\t\t((MemoryContext) set)->mem_allocated =\n\t\t\t\tset->keeper->endptr - ((char *) set);\n\n\t\t\treturn (MemoryContext) set;\n\t\t}\n\t}\n\n\t\n\tfirstBlockSize = MAXALIGN(sizeof(AllocSetContext)) +\n\t\tALLOC_BLOCKHDRSZ + ALLOC_CHUNKHDRSZ;\n\tif (minContextSize != 0)\n\t\tfirstBlockSize = Max(firstBlockSize, minContextSize);\n\telse\n\t\tfirstBlockSize = Max(firstBlockSize, initBlockSize);\n\n\t\n\tset = (AllocSet) malloc(firstBlockSize);\n\tif (set == NULL)\n\t{\n\t\tif (TopMemoryContext)\n\t\t\tMemoryContextStats(TopMemoryContext);\n\t\tereport(ERROR,\n\t\t\t\t(errcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t errmsg(\"out of memory\"),\n\t\t\t\t errdetail(\"Failed while creating memory context \\\"%s\\\".\",\n\t\t\t\t\t\t name)));\n\t}\n\n\t\n\n\t\n\tblock = (AllocBlock) (((char *) set) + MAXALIGN(sizeof(AllocSetContext)));\n\tblock->aset = set;\n\tblock->freeptr = ((char *) block) + ALLOC_BLOCKHDRSZ;\n\tblock->endptr = ((char *) set) + firstBlockSize;\n\tblock->prev = NULL;\n\tblock->next = NULL;\n\n\t\n\tVALGRIND_MAKE_MEM_NOACCESS(block->freeptr, block->endptr - block->freeptr);\n\n\t\n\tset->blocks = block;\n\t\n\tset->keeper = block;\n\n\t\n\tMemSetAligned(set->freelist, 0, sizeof(set->freelist));\n\n\tset->initBlockSize = initBlockSize;\n\tset->maxBlockSize = maxBlockSize;\n\tset->nextBlockSize = initBlockSize;\n\tset->freeListIndex = freeListIndex;\n\n\t\n\tStaticAssertStmt(ALLOC_CHUNK_LIMIT == ALLOCSET_SEPARATE_THRESHOLD,\n\t\t\t\t\t \"ALLOC_CHUNK_LIMIT != ALLOCSET_SEPARATE_THRESHOLD\");\n\n\t\n\tset->allocChunkLimit = ALLOC_CHUNK_LIMIT;\n\twhile ((Size) (set->allocChunkLimit + ALLOC_CHUNKHDRSZ) >\n\t\t (Size) ((maxBlockSize - ALLOC_BLOCKHDRSZ) / ALLOC_CHUNK_FRACTION))\n\t\tset->allocChunkLimit >>= 1;\n\n\t\n\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\tparent,\n\t\t\t\t\t\tname);\n\n\t((MemoryContext) set)->mem_allocated = firstBlockSize;\n\n\treturn (MemoryContext) set;\n}", "Selected Statement": "block->aset = set;", "Function Input": {}, "Variable Values Before Statement": {"set": "AllocSet"}, "Value After Statement Execution": "AllocSet", "Block_Size": 115, "Project Information": "libpg_query"} +{"Programming Language": "C", "Source Code": "MemoryContext\nAllocSetContextCreateInternal(MemoryContext parent,\n\t\t\t\t\t\t\t const char *name,\n\t\t\t\t\t\t\t Size minContextSize,\n\t\t\t\t\t\t\t Size initBlockSize,\n\t\t\t\t\t\t\t Size maxBlockSize)\n{\n\tint\t\t\tfreeListIndex;\n\tSize\t\tfirstBlockSize;\n\tAllocSet\tset;\n\tAllocBlock\tblock;\n\n\t\n\tStaticAssertDecl(ALLOC_CHUNKHDRSZ == MAXALIGN(ALLOC_CHUNKHDRSZ),\n\t\t\t\t\t \"sizeof(MemoryChunk) is not maxaligned\");\n\t\n\tStaticAssertDecl(sizeof(AllocFreeListLink) <= (1 << ALLOC_MINBITS),\n\t\t\t\t\t \"sizeof(AllocFreeListLink) larger than minimum allocation size\");\n\n\t\n\tAssert(initBlockSize == MAXALIGN(initBlockSize) &&\n\t\t initBlockSize >= 1024);\n\tAssert(maxBlockSize == MAXALIGN(maxBlockSize) &&\n\t\t maxBlockSize >= initBlockSize &&\n\t\t AllocHugeSizeIsValid(maxBlockSize)); \n\tAssert(minContextSize == 0 ||\n\t\t (minContextSize == MAXALIGN(minContextSize) &&\n\t\t\tminContextSize >= 1024 &&\n\t\t\tminContextSize <= maxBlockSize));\n\tAssert(maxBlockSize <= MEMORYCHUNK_MAX_BLOCKOFFSET);\n\n\t\n\tif (minContextSize == ALLOCSET_DEFAULT_MINSIZE &&\n\t\tinitBlockSize == ALLOCSET_DEFAULT_INITSIZE)\n\t\tfreeListIndex = 0;\n\telse if (minContextSize == ALLOCSET_SMALL_MINSIZE &&\n\t\t\t initBlockSize == ALLOCSET_SMALL_INITSIZE)\n\t\tfreeListIndex = 1;\n\telse\n\t\tfreeListIndex = -1;\n\n\t\n\tif (freeListIndex >= 0)\n\t{\n\t\tAllocSetFreeList *freelist = &context_freelists[freeListIndex];\n\n\t\tif (freelist->first_free != NULL)\n\t\t{\n\t\t\t\n\t\t\tset = freelist->first_free;\n\t\t\tfreelist->first_free = (AllocSet) set->header.nextchild;\n\t\t\tfreelist->num_free--;\n\n\t\t\t\n\t\t\tset->maxBlockSize = maxBlockSize;\n\n\t\t\t\n\t\t\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\t\t\tparent,\n\t\t\t\t\t\t\t\tname);\n\n\t\t\t((MemoryContext) set)->mem_allocated =\n\t\t\t\tset->keeper->endptr - ((char *) set);\n\n\t\t\treturn (MemoryContext) set;\n\t\t}\n\t}\n\n\t\n\tfirstBlockSize = MAXALIGN(sizeof(AllocSetContext)) +\n\t\tALLOC_BLOCKHDRSZ + ALLOC_CHUNKHDRSZ;\n\tif (minContextSize != 0)\n\t\tfirstBlockSize = Max(firstBlockSize, minContextSize);\n\telse\n\t\tfirstBlockSize = Max(firstBlockSize, initBlockSize);\n\n\t\n\tset = (AllocSet) malloc(firstBlockSize);\n\tif (set == NULL)\n\t{\n\t\tif (TopMemoryContext)\n\t\t\tMemoryContextStats(TopMemoryContext);\n\t\tereport(ERROR,\n\t\t\t\t(errcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t errmsg(\"out of memory\"),\n\t\t\t\t errdetail(\"Failed while creating memory context \\\"%s\\\".\",\n\t\t\t\t\t\t name)));\n\t}\n\n\t\n\n\t\n\tblock = (AllocBlock) (((char *) set) + MAXALIGN(sizeof(AllocSetContext)));\n\tblock->aset = set;\n\tblock->freeptr = ((char *) block) + ALLOC_BLOCKHDRSZ;\n\tblock->endptr = ((char *) set) + firstBlockSize;\n\tblock->prev = NULL;\n\tblock->next = NULL;\n\n\t\n\tVALGRIND_MAKE_MEM_NOACCESS(block->freeptr, block->endptr - block->freeptr);\n\n\t\n\tset->blocks = block;\n\t\n\tset->keeper = block;\n\n\t\n\tMemSetAligned(set->freelist, 0, sizeof(set->freelist));\n\n\tset->initBlockSize = initBlockSize;\n\tset->maxBlockSize = maxBlockSize;\n\tset->nextBlockSize = initBlockSize;\n\tset->freeListIndex = freeListIndex;\n\n\t\n\tStaticAssertStmt(ALLOC_CHUNK_LIMIT == ALLOCSET_SEPARATE_THRESHOLD,\n\t\t\t\t\t \"ALLOC_CHUNK_LIMIT != ALLOCSET_SEPARATE_THRESHOLD\");\n\n\t\n\tset->allocChunkLimit = ALLOC_CHUNK_LIMIT;\n\twhile ((Size) (set->allocChunkLimit + ALLOC_CHUNKHDRSZ) >\n\t\t (Size) ((maxBlockSize - ALLOC_BLOCKHDRSZ) / ALLOC_CHUNK_FRACTION))\n\t\tset->allocChunkLimit >>= 1;\n\n\t\n\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\tparent,\n\t\t\t\t\t\tname);\n\n\t((MemoryContext) set)->mem_allocated = firstBlockSize;\n\n\treturn (MemoryContext) set;\n}", "Selected Statement": "block->freeptr = ((char *) block) + ALLOC_BLOCKHDRSZ;", "Function Input": {}, "Variable Values Before Statement": {"block": "AllocBlock", "ALLOC_BLOCKHDRSZ": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 116, "Project Information": "libpg_query"} +{"Programming Language": "C", "Source Code": "MemoryContext\nAllocSetContextCreateInternal(MemoryContext parent,\n\t\t\t\t\t\t\t const char *name,\n\t\t\t\t\t\t\t Size minContextSize,\n\t\t\t\t\t\t\t Size initBlockSize,\n\t\t\t\t\t\t\t Size maxBlockSize)\n{\n\tint\t\t\tfreeListIndex;\n\tSize\t\tfirstBlockSize;\n\tAllocSet\tset;\n\tAllocBlock\tblock;\n\n\t\n\tStaticAssertDecl(ALLOC_CHUNKHDRSZ == MAXALIGN(ALLOC_CHUNKHDRSZ),\n\t\t\t\t\t \"sizeof(MemoryChunk) is not maxaligned\");\n\t\n\tStaticAssertDecl(sizeof(AllocFreeListLink) <= (1 << ALLOC_MINBITS),\n\t\t\t\t\t \"sizeof(AllocFreeListLink) larger than minimum allocation size\");\n\n\t\n\tAssert(initBlockSize == MAXALIGN(initBlockSize) &&\n\t\t initBlockSize >= 1024);\n\tAssert(maxBlockSize == MAXALIGN(maxBlockSize) &&\n\t\t maxBlockSize >= initBlockSize &&\n\t\t AllocHugeSizeIsValid(maxBlockSize)); \n\tAssert(minContextSize == 0 ||\n\t\t (minContextSize == MAXALIGN(minContextSize) &&\n\t\t\tminContextSize >= 1024 &&\n\t\t\tminContextSize <= maxBlockSize));\n\tAssert(maxBlockSize <= MEMORYCHUNK_MAX_BLOCKOFFSET);\n\n\t\n\tif (minContextSize == ALLOCSET_DEFAULT_MINSIZE &&\n\t\tinitBlockSize == ALLOCSET_DEFAULT_INITSIZE)\n\t\tfreeListIndex = 0;\n\telse if (minContextSize == ALLOCSET_SMALL_MINSIZE &&\n\t\t\t initBlockSize == ALLOCSET_SMALL_INITSIZE)\n\t\tfreeListIndex = 1;\n\telse\n\t\tfreeListIndex = -1;\n\n\t\n\tif (freeListIndex >= 0)\n\t{\n\t\tAllocSetFreeList *freelist = &context_freelists[freeListIndex];\n\n\t\tif (freelist->first_free != NULL)\n\t\t{\n\t\t\t\n\t\t\tset = freelist->first_free;\n\t\t\tfreelist->first_free = (AllocSet) set->header.nextchild;\n\t\t\tfreelist->num_free--;\n\n\t\t\t\n\t\t\tset->maxBlockSize = maxBlockSize;\n\n\t\t\t\n\t\t\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\t\t\tparent,\n\t\t\t\t\t\t\t\tname);\n\n\t\t\t((MemoryContext) set)->mem_allocated =\n\t\t\t\tset->keeper->endptr - ((char *) set);\n\n\t\t\treturn (MemoryContext) set;\n\t\t}\n\t}\n\n\t\n\tfirstBlockSize = MAXALIGN(sizeof(AllocSetContext)) +\n\t\tALLOC_BLOCKHDRSZ + ALLOC_CHUNKHDRSZ;\n\tif (minContextSize != 0)\n\t\tfirstBlockSize = Max(firstBlockSize, minContextSize);\n\telse\n\t\tfirstBlockSize = Max(firstBlockSize, initBlockSize);\n\n\t\n\tset = (AllocSet) malloc(firstBlockSize);\n\tif (set == NULL)\n\t{\n\t\tif (TopMemoryContext)\n\t\t\tMemoryContextStats(TopMemoryContext);\n\t\tereport(ERROR,\n\t\t\t\t(errcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t errmsg(\"out of memory\"),\n\t\t\t\t errdetail(\"Failed while creating memory context \\\"%s\\\".\",\n\t\t\t\t\t\t name)));\n\t}\n\n\t\n\n\t\n\tblock = (AllocBlock) (((char *) set) + MAXALIGN(sizeof(AllocSetContext)));\n\tblock->aset = set;\n\tblock->freeptr = ((char *) block) + ALLOC_BLOCKHDRSZ;\n\tblock->endptr = ((char *) set) + firstBlockSize;\n\tblock->prev = NULL;\n\tblock->next = NULL;\n\n\t\n\tVALGRIND_MAKE_MEM_NOACCESS(block->freeptr, block->endptr - block->freeptr);\n\n\t\n\tset->blocks = block;\n\t\n\tset->keeper = block;\n\n\t\n\tMemSetAligned(set->freelist, 0, sizeof(set->freelist));\n\n\tset->initBlockSize = initBlockSize;\n\tset->maxBlockSize = maxBlockSize;\n\tset->nextBlockSize = initBlockSize;\n\tset->freeListIndex = freeListIndex;\n\n\t\n\tStaticAssertStmt(ALLOC_CHUNK_LIMIT == ALLOCSET_SEPARATE_THRESHOLD,\n\t\t\t\t\t \"ALLOC_CHUNK_LIMIT != ALLOCSET_SEPARATE_THRESHOLD\");\n\n\t\n\tset->allocChunkLimit = ALLOC_CHUNK_LIMIT;\n\twhile ((Size) (set->allocChunkLimit + ALLOC_CHUNKHDRSZ) >\n\t\t (Size) ((maxBlockSize - ALLOC_BLOCKHDRSZ) / ALLOC_CHUNK_FRACTION))\n\t\tset->allocChunkLimit >>= 1;\n\n\t\n\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\tparent,\n\t\t\t\t\t\tname);\n\n\t((MemoryContext) set)->mem_allocated = firstBlockSize;\n\n\treturn (MemoryContext) set;\n}", "Selected Statement": "set->initBlockSize = initBlockSize;", "Function Input": {}, "Variable Values Before Statement": {"initBlockSize": "Size"}, "Value After Statement Execution": "Size", "Block_Size": 132, "Project Information": "libpg_query"} +{"Programming Language": "C", "Source Code": "MemoryContext\nAllocSetContextCreateInternal(MemoryContext parent,\n\t\t\t\t\t\t\t const char *name,\n\t\t\t\t\t\t\t Size minContextSize,\n\t\t\t\t\t\t\t Size initBlockSize,\n\t\t\t\t\t\t\t Size maxBlockSize)\n{\n\tint\t\t\tfreeListIndex;\n\tSize\t\tfirstBlockSize;\n\tAllocSet\tset;\n\tAllocBlock\tblock;\n\n\t\n\tStaticAssertDecl(ALLOC_CHUNKHDRSZ == MAXALIGN(ALLOC_CHUNKHDRSZ),\n\t\t\t\t\t \"sizeof(MemoryChunk) is not maxaligned\");\n\t\n\tStaticAssertDecl(sizeof(AllocFreeListLink) <= (1 << ALLOC_MINBITS),\n\t\t\t\t\t \"sizeof(AllocFreeListLink) larger than minimum allocation size\");\n\n\t\n\tAssert(initBlockSize == MAXALIGN(initBlockSize) &&\n\t\t initBlockSize >= 1024);\n\tAssert(maxBlockSize == MAXALIGN(maxBlockSize) &&\n\t\t maxBlockSize >= initBlockSize &&\n\t\t AllocHugeSizeIsValid(maxBlockSize)); \n\tAssert(minContextSize == 0 ||\n\t\t (minContextSize == MAXALIGN(minContextSize) &&\n\t\t\tminContextSize >= 1024 &&\n\t\t\tminContextSize <= maxBlockSize));\n\tAssert(maxBlockSize <= MEMORYCHUNK_MAX_BLOCKOFFSET);\n\n\t\n\tif (minContextSize == ALLOCSET_DEFAULT_MINSIZE &&\n\t\tinitBlockSize == ALLOCSET_DEFAULT_INITSIZE)\n\t\tfreeListIndex = 0;\n\telse if (minContextSize == ALLOCSET_SMALL_MINSIZE &&\n\t\t\t initBlockSize == ALLOCSET_SMALL_INITSIZE)\n\t\tfreeListIndex = 1;\n\telse\n\t\tfreeListIndex = -1;\n\n\t\n\tif (freeListIndex >= 0)\n\t{\n\t\tAllocSetFreeList *freelist = &context_freelists[freeListIndex];\n\n\t\tif (freelist->first_free != NULL)\n\t\t{\n\t\t\t\n\t\t\tset = freelist->first_free;\n\t\t\tfreelist->first_free = (AllocSet) set->header.nextchild;\n\t\t\tfreelist->num_free--;\n\n\t\t\t\n\t\t\tset->maxBlockSize = maxBlockSize;\n\n\t\t\t\n\t\t\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\t\t\tparent,\n\t\t\t\t\t\t\t\tname);\n\n\t\t\t((MemoryContext) set)->mem_allocated =\n\t\t\t\tset->keeper->endptr - ((char *) set);\n\n\t\t\treturn (MemoryContext) set;\n\t\t}\n\t}\n\n\t\n\tfirstBlockSize = MAXALIGN(sizeof(AllocSetContext)) +\n\t\tALLOC_BLOCKHDRSZ + ALLOC_CHUNKHDRSZ;\n\tif (minContextSize != 0)\n\t\tfirstBlockSize = Max(firstBlockSize, minContextSize);\n\telse\n\t\tfirstBlockSize = Max(firstBlockSize, initBlockSize);\n\n\t\n\tset = (AllocSet) malloc(firstBlockSize);\n\tif (set == NULL)\n\t{\n\t\tif (TopMemoryContext)\n\t\t\tMemoryContextStats(TopMemoryContext);\n\t\tereport(ERROR,\n\t\t\t\t(errcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t errmsg(\"out of memory\"),\n\t\t\t\t errdetail(\"Failed while creating memory context \\\"%s\\\".\",\n\t\t\t\t\t\t name)));\n\t}\n\n\t\n\n\t\n\tblock = (AllocBlock) (((char *) set) + MAXALIGN(sizeof(AllocSetContext)));\n\tblock->aset = set;\n\tblock->freeptr = ((char *) block) + ALLOC_BLOCKHDRSZ;\n\tblock->endptr = ((char *) set) + firstBlockSize;\n\tblock->prev = NULL;\n\tblock->next = NULL;\n\n\t\n\tVALGRIND_MAKE_MEM_NOACCESS(block->freeptr, block->endptr - block->freeptr);\n\n\t\n\tset->blocks = block;\n\t\n\tset->keeper = block;\n\n\t\n\tMemSetAligned(set->freelist, 0, sizeof(set->freelist));\n\n\tset->initBlockSize = initBlockSize;\n\tset->maxBlockSize = maxBlockSize;\n\tset->nextBlockSize = initBlockSize;\n\tset->freeListIndex = freeListIndex;\n\n\t\n\tStaticAssertStmt(ALLOC_CHUNK_LIMIT == ALLOCSET_SEPARATE_THRESHOLD,\n\t\t\t\t\t \"ALLOC_CHUNK_LIMIT != ALLOCSET_SEPARATE_THRESHOLD\");\n\n\t\n\tset->allocChunkLimit = ALLOC_CHUNK_LIMIT;\n\twhile ((Size) (set->allocChunkLimit + ALLOC_CHUNKHDRSZ) >\n\t\t (Size) ((maxBlockSize - ALLOC_BLOCKHDRSZ) / ALLOC_CHUNK_FRACTION))\n\t\tset->allocChunkLimit >>= 1;\n\n\t\n\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\tparent,\n\t\t\t\t\t\tname);\n\n\t((MemoryContext) set)->mem_allocated = firstBlockSize;\n\n\treturn (MemoryContext) set;\n}", "Selected Statement": "set->maxBlockSize = maxBlockSize;", "Function Input": {}, "Variable Values Before Statement": {"maxBlockSize": "Size"}, "Value After Statement Execution": "Size", "Block_Size": 133, "Project Information": "libpg_query"} +{"Programming Language": "C", "Source Code": "MemoryContext\nAllocSetContextCreateInternal(MemoryContext parent,\n\t\t\t\t\t\t\t const char *name,\n\t\t\t\t\t\t\t Size minContextSize,\n\t\t\t\t\t\t\t Size initBlockSize,\n\t\t\t\t\t\t\t Size maxBlockSize)\n{\n\tint\t\t\tfreeListIndex;\n\tSize\t\tfirstBlockSize;\n\tAllocSet\tset;\n\tAllocBlock\tblock;\n\n\t\n\tStaticAssertDecl(ALLOC_CHUNKHDRSZ == MAXALIGN(ALLOC_CHUNKHDRSZ),\n\t\t\t\t\t \"sizeof(MemoryChunk) is not maxaligned\");\n\t\n\tStaticAssertDecl(sizeof(AllocFreeListLink) <= (1 << ALLOC_MINBITS),\n\t\t\t\t\t \"sizeof(AllocFreeListLink) larger than minimum allocation size\");\n\n\t\n\tAssert(initBlockSize == MAXALIGN(initBlockSize) &&\n\t\t initBlockSize >= 1024);\n\tAssert(maxBlockSize == MAXALIGN(maxBlockSize) &&\n\t\t maxBlockSize >= initBlockSize &&\n\t\t AllocHugeSizeIsValid(maxBlockSize)); \n\tAssert(minContextSize == 0 ||\n\t\t (minContextSize == MAXALIGN(minContextSize) &&\n\t\t\tminContextSize >= 1024 &&\n\t\t\tminContextSize <= maxBlockSize));\n\tAssert(maxBlockSize <= MEMORYCHUNK_MAX_BLOCKOFFSET);\n\n\t\n\tif (minContextSize == ALLOCSET_DEFAULT_MINSIZE &&\n\t\tinitBlockSize == ALLOCSET_DEFAULT_INITSIZE)\n\t\tfreeListIndex = 0;\n\telse if (minContextSize == ALLOCSET_SMALL_MINSIZE &&\n\t\t\t initBlockSize == ALLOCSET_SMALL_INITSIZE)\n\t\tfreeListIndex = 1;\n\telse\n\t\tfreeListIndex = -1;\n\n\t\n\tif (freeListIndex >= 0)\n\t{\n\t\tAllocSetFreeList *freelist = &context_freelists[freeListIndex];\n\n\t\tif (freelist->first_free != NULL)\n\t\t{\n\t\t\t\n\t\t\tset = freelist->first_free;\n\t\t\tfreelist->first_free = (AllocSet) set->header.nextchild;\n\t\t\tfreelist->num_free--;\n\n\t\t\t\n\t\t\tset->maxBlockSize = maxBlockSize;\n\n\t\t\t\n\t\t\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\t\t\tparent,\n\t\t\t\t\t\t\t\tname);\n\n\t\t\t((MemoryContext) set)->mem_allocated =\n\t\t\t\tset->keeper->endptr - ((char *) set);\n\n\t\t\treturn (MemoryContext) set;\n\t\t}\n\t}\n\n\t\n\tfirstBlockSize = MAXALIGN(sizeof(AllocSetContext)) +\n\t\tALLOC_BLOCKHDRSZ + ALLOC_CHUNKHDRSZ;\n\tif (minContextSize != 0)\n\t\tfirstBlockSize = Max(firstBlockSize, minContextSize);\n\telse\n\t\tfirstBlockSize = Max(firstBlockSize, initBlockSize);\n\n\t\n\tset = (AllocSet) malloc(firstBlockSize);\n\tif (set == NULL)\n\t{\n\t\tif (TopMemoryContext)\n\t\t\tMemoryContextStats(TopMemoryContext);\n\t\tereport(ERROR,\n\t\t\t\t(errcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t errmsg(\"out of memory\"),\n\t\t\t\t errdetail(\"Failed while creating memory context \\\"%s\\\".\",\n\t\t\t\t\t\t name)));\n\t}\n\n\t\n\n\t\n\tblock = (AllocBlock) (((char *) set) + MAXALIGN(sizeof(AllocSetContext)));\n\tblock->aset = set;\n\tblock->freeptr = ((char *) block) + ALLOC_BLOCKHDRSZ;\n\tblock->endptr = ((char *) set) + firstBlockSize;\n\tblock->prev = NULL;\n\tblock->next = NULL;\n\n\t\n\tVALGRIND_MAKE_MEM_NOACCESS(block->freeptr, block->endptr - block->freeptr);\n\n\t\n\tset->blocks = block;\n\t\n\tset->keeper = block;\n\n\t\n\tMemSetAligned(set->freelist, 0, sizeof(set->freelist));\n\n\tset->initBlockSize = initBlockSize;\n\tset->maxBlockSize = maxBlockSize;\n\tset->nextBlockSize = initBlockSize;\n\tset->freeListIndex = freeListIndex;\n\n\t\n\tStaticAssertStmt(ALLOC_CHUNK_LIMIT == ALLOCSET_SEPARATE_THRESHOLD,\n\t\t\t\t\t \"ALLOC_CHUNK_LIMIT != ALLOCSET_SEPARATE_THRESHOLD\");\n\n\t\n\tset->allocChunkLimit = ALLOC_CHUNK_LIMIT;\n\twhile ((Size) (set->allocChunkLimit + ALLOC_CHUNKHDRSZ) >\n\t\t (Size) ((maxBlockSize - ALLOC_BLOCKHDRSZ) / ALLOC_CHUNK_FRACTION))\n\t\tset->allocChunkLimit >>= 1;\n\n\t\n\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\tparent,\n\t\t\t\t\t\tname);\n\n\t((MemoryContext) set)->mem_allocated = firstBlockSize;\n\n\treturn (MemoryContext) set;\n}", "Selected Statement": "set->nextBlockSize = initBlockSize;", "Function Input": {}, "Variable Values Before Statement": {"initBlockSize": "Size"}, "Value After Statement Execution": "Size", "Block_Size": 134, "Project Information": "libpg_query"} +{"Programming Language": "C", "Source Code": "MemoryContext\nAllocSetContextCreateInternal(MemoryContext parent,\n\t\t\t\t\t\t\t const char *name,\n\t\t\t\t\t\t\t Size minContextSize,\n\t\t\t\t\t\t\t Size initBlockSize,\n\t\t\t\t\t\t\t Size maxBlockSize)\n{\n\tint\t\t\tfreeListIndex;\n\tSize\t\tfirstBlockSize;\n\tAllocSet\tset;\n\tAllocBlock\tblock;\n\n\t\n\tStaticAssertDecl(ALLOC_CHUNKHDRSZ == MAXALIGN(ALLOC_CHUNKHDRSZ),\n\t\t\t\t\t \"sizeof(MemoryChunk) is not maxaligned\");\n\t\n\tStaticAssertDecl(sizeof(AllocFreeListLink) <= (1 << ALLOC_MINBITS),\n\t\t\t\t\t \"sizeof(AllocFreeListLink) larger than minimum allocation size\");\n\n\t\n\tAssert(initBlockSize == MAXALIGN(initBlockSize) &&\n\t\t initBlockSize >= 1024);\n\tAssert(maxBlockSize == MAXALIGN(maxBlockSize) &&\n\t\t maxBlockSize >= initBlockSize &&\n\t\t AllocHugeSizeIsValid(maxBlockSize)); \n\tAssert(minContextSize == 0 ||\n\t\t (minContextSize == MAXALIGN(minContextSize) &&\n\t\t\tminContextSize >= 1024 &&\n\t\t\tminContextSize <= maxBlockSize));\n\tAssert(maxBlockSize <= MEMORYCHUNK_MAX_BLOCKOFFSET);\n\n\t\n\tif (minContextSize == ALLOCSET_DEFAULT_MINSIZE &&\n\t\tinitBlockSize == ALLOCSET_DEFAULT_INITSIZE)\n\t\tfreeListIndex = 0;\n\telse if (minContextSize == ALLOCSET_SMALL_MINSIZE &&\n\t\t\t initBlockSize == ALLOCSET_SMALL_INITSIZE)\n\t\tfreeListIndex = 1;\n\telse\n\t\tfreeListIndex = -1;\n\n\t\n\tif (freeListIndex >= 0)\n\t{\n\t\tAllocSetFreeList *freelist = &context_freelists[freeListIndex];\n\n\t\tif (freelist->first_free != NULL)\n\t\t{\n\t\t\t\n\t\t\tset = freelist->first_free;\n\t\t\tfreelist->first_free = (AllocSet) set->header.nextchild;\n\t\t\tfreelist->num_free--;\n\n\t\t\t\n\t\t\tset->maxBlockSize = maxBlockSize;\n\n\t\t\t\n\t\t\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\t\t\tparent,\n\t\t\t\t\t\t\t\tname);\n\n\t\t\t((MemoryContext) set)->mem_allocated =\n\t\t\t\tset->keeper->endptr - ((char *) set);\n\n\t\t\treturn (MemoryContext) set;\n\t\t}\n\t}\n\n\t\n\tfirstBlockSize = MAXALIGN(sizeof(AllocSetContext)) +\n\t\tALLOC_BLOCKHDRSZ + ALLOC_CHUNKHDRSZ;\n\tif (minContextSize != 0)\n\t\tfirstBlockSize = Max(firstBlockSize, minContextSize);\n\telse\n\t\tfirstBlockSize = Max(firstBlockSize, initBlockSize);\n\n\t\n\tset = (AllocSet) malloc(firstBlockSize);\n\tif (set == NULL)\n\t{\n\t\tif (TopMemoryContext)\n\t\t\tMemoryContextStats(TopMemoryContext);\n\t\tereport(ERROR,\n\t\t\t\t(errcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t errmsg(\"out of memory\"),\n\t\t\t\t errdetail(\"Failed while creating memory context \\\"%s\\\".\",\n\t\t\t\t\t\t name)));\n\t}\n\n\t\n\n\t\n\tblock = (AllocBlock) (((char *) set) + MAXALIGN(sizeof(AllocSetContext)));\n\tblock->aset = set;\n\tblock->freeptr = ((char *) block) + ALLOC_BLOCKHDRSZ;\n\tblock->endptr = ((char *) set) + firstBlockSize;\n\tblock->prev = NULL;\n\tblock->next = NULL;\n\n\t\n\tVALGRIND_MAKE_MEM_NOACCESS(block->freeptr, block->endptr - block->freeptr);\n\n\t\n\tset->blocks = block;\n\t\n\tset->keeper = block;\n\n\t\n\tMemSetAligned(set->freelist, 0, sizeof(set->freelist));\n\n\tset->initBlockSize = initBlockSize;\n\tset->maxBlockSize = maxBlockSize;\n\tset->nextBlockSize = initBlockSize;\n\tset->freeListIndex = freeListIndex;\n\n\t\n\tStaticAssertStmt(ALLOC_CHUNK_LIMIT == ALLOCSET_SEPARATE_THRESHOLD,\n\t\t\t\t\t \"ALLOC_CHUNK_LIMIT != ALLOCSET_SEPARATE_THRESHOLD\");\n\n\t\n\tset->allocChunkLimit = ALLOC_CHUNK_LIMIT;\n\twhile ((Size) (set->allocChunkLimit + ALLOC_CHUNKHDRSZ) >\n\t\t (Size) ((maxBlockSize - ALLOC_BLOCKHDRSZ) / ALLOC_CHUNK_FRACTION))\n\t\tset->allocChunkLimit >>= 1;\n\n\t\n\tMemoryContextCreate((MemoryContext) set,\n\t\t\t\t\t\tT_AllocSetContext,\n\t\t\t\t\t\tMCTX_ASET_ID,\n\t\t\t\t\t\tparent,\n\t\t\t\t\t\tname);\n\n\t((MemoryContext) set)->mem_allocated = firstBlockSize;\n\n\treturn (MemoryContext) set;\n}", "Selected Statement": "set->allocChunkLimit = ALLOC_CHUNK_LIMIT;", "Function Input": {}, "Variable Values Before Statement": {"ALLOC_CHUNK_LIMIT": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 161, "Project Information": "libpg_query"} +{"Programming Language": "C", "Source Code": "void\ninitStringInfo(StringInfo str)\n{\n\tint\t\t\tsize = 1024;\t\n\n\tstr->data = (char *) palloc(size);\n\tstr->maxlen = size;\n\tresetStringInfo(str);\n}", "Selected Statement": "str->maxlen = size;", "Function Input": {"str": {"value": ""}}, "Variable Values Before Statement": {"size": "int"}, "Value After Statement Execution": "int", "Block_Size": 4, "Project Information": "libpg_query"} +{"Programming Language": "C", "Source Code": "int\npg_vsnprintf(char *str, size_t count, const char *fmt, va_list args)\n{\n\tPrintfTarget target;\n\tchar\t\tonebyte[1];\n\n\t\n\tif (count == 0)\n\t{\n\t\tstr = onebyte;\n\t\tcount = 1;\n\t}\n\ttarget.bufstart = target.bufptr = str;\n\ttarget.bufend = str + count - 1;\n\ttarget.stream = NULL;\n\ttarget.nchars = 0;\n\ttarget.failed = false;\n\tdopr(&target, fmt, args);\n\t*(target.bufptr) = '\\0';\n\treturn target.failed ? -1 : (target.bufptr - target.bufstart\n\t\t\t\t\t\t\t\t + target.nchars);\n}", "Selected Statement": "target.bufstart = target.bufptr = str;", "Function Input": {"count": {"value": ""}, "fmt": {"value": ""}, "str": {"value": ""}}, "Variable Values Before Statement": {"str": "\"\""}, "Value After Statement Execution": "\"\"", "Block_Size": 15, "Project Information": "libpg_query"} +{"Programming Language": "C", "Source Code": "int\npg_vsnprintf(char *str, size_t count, const char *fmt, va_list args)\n{\n\tPrintfTarget target;\n\tchar\t\tonebyte[1];\n\n\t\n\tif (count == 0)\n\t{\n\t\tstr = onebyte;\n\t\tcount = 1;\n\t}\n\ttarget.bufstart = target.bufptr = str;\n\ttarget.bufend = str + count - 1;\n\ttarget.stream = NULL;\n\ttarget.nchars = 0;\n\ttarget.failed = false;\n\tdopr(&target, fmt, args);\n\t*(target.bufptr) = '\\0';\n\treturn target.failed ? -1 : (target.bufptr - target.bufstart\n\t\t\t\t\t\t\t\t + target.nchars);\n}", "Selected Statement": "target.bufend = str + count - 1;", "Function Input": {"count": {"value": ""}, "fmt": {"value": ""}, "str": {"value": ""}}, "Variable Values Before Statement": {"str": "0x11ad798 \"\"", "count": "1024"}, "Value After Statement Execution": "0x11adb97 \"\"", "Block_Size": 16, "Project Information": "libpg_query"} +{"Programming Language": "C", "Source Code": "int\npg_vsnprintf(char *str, size_t count, const char *fmt, va_list args)\n{\n\tPrintfTarget target;\n\tchar\t\tonebyte[1];\n\n\t\n\tif (count == 0)\n\t{\n\t\tstr = onebyte;\n\t\tcount = 1;\n\t}\n\ttarget.bufstart = target.bufptr = str;\n\ttarget.bufend = str + count - 1;\n\ttarget.stream = NULL;\n\ttarget.nchars = 0;\n\ttarget.failed = false;\n\tdopr(&target, fmt, args);\n\t*(target.bufptr) = '\\0';\n\treturn target.failed ? -1 : (target.bufptr - target.bufstart\n\t\t\t\t\t\t\t\t + target.nchars);\n}", "Selected Statement": "target.nchars = 0;", "Function Input": {"count": {"value": ""}, "fmt": {"value": ""}, "str": {"value": ""}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 18, "Project Information": "libpg_query"} +{"Programming Language": "C", "Source Code": "static void process_wtmp_file(const struct last_control *ctl,\n\t\t\t const char *filename)\n{\n\tFILE *fp;\t\t\n\n\tstruct utmpx ut;\t\n\tstruct utmplist *ulist = NULL;\t\n\tstruct utmplist *p;\t\n\tstruct utmplist *next;\t\n\n\ttime_t lastboot = 0;\t\n\ttime_t lastrch = 0;\t\n\ttime_t lastdown;\t\n\ttime_t begintime;\t\n\tint whydown = 0;\t\n\n\tint c, x;\t\t\n\tstruct stat st;\t\t\n\tint quit = 0;\t\t\n\tint down = 0;\t\t\n\n#ifndef FUZZ_TARGET\n\ttime(&lastdown);\n#else\n\tlastdown = 1596001948;\n#endif\n\t\n\tlastdate = currentdate = lastrch = lastdown;\n\n#ifndef FUZZ_TARGET\n\t\n\tsignal(SIGINT, int_handler);\n\tsignal(SIGQUIT, quit_handler);\n#endif\n\n\t\n\tif ((fp = fopen(filename, \"r\")) == NULL)\n\t\terr(EXIT_FAILURE, _(\"cannot open %s\"), filename);\n\n\t\n\tsetvbuf(fp, NULL, _IOFBF, UCHUNKSIZE);\n\n\t\n\tif (uread(fp, &ut, NULL, filename) == 1)\n\t\tbegintime = ut.ut_tv.tv_sec;\n\telse {\n\t\tif (fstat(fileno(fp), &st) != 0)\n\t\t\terr(EXIT_FAILURE, _(\"stat of %s failed\"), filename);\n\t\tbegintime = st.st_ctime;\n\t\tquit = 1;\n\t}\n\n\t\n\turead(fp, NULL, NULL, filename);\n\n\t\n\twhile (!quit) {\n\n\t\tif (uread(fp, &ut, &quit, filename) != 1)\n\t\t\tbreak;\n\n\t\tif (ctl->since && ut.ut_tv.tv_sec < ctl->since)\n\t\t\tcontinue;\n\n\t\tif (ctl->until && ctl->until < ut.ut_tv.tv_sec)\n\t\t\tcontinue;\n\n\t\tlastdate = ut.ut_tv.tv_sec;\n\n\t\tif (ctl->lastb) {\n\t\t\tquit = list(ctl, &ut, ut.ut_tv.tv_sec, R_NORMAL);\n\t\t\tcontinue;\n\t\t}\n\n\t\t\n\t\tif (strncmp(ut.ut_line, \"~\", 1) == 0) {\n\t\t\tif (strncmp(ut.ut_user, \"shutdown\", 8) == 0)\n\t\t\t\tut.ut_type = SHUTDOWN_TIME;\n\t\t\telse if (strncmp(ut.ut_user, \"reboot\", 6) == 0)\n\t\t\t\tut.ut_type = BOOT_TIME;\n\t\t\telse if (strncmp(ut.ut_user, \"runlevel\", 8) == 0)\n\t\t\t\tut.ut_type = RUN_LVL;\n\t\t}\n#if 1 \n\t\t\n\t\telse {\n\t\t\tif (ut.ut_type != DEAD_PROCESS &&\n\t\t\t ut.ut_user[0] && ut.ut_line[0] &&\n\t\t\t strncmp(ut.ut_user, \"LOGIN\", 5) != 0)\n\t\t\t\tut.ut_type = USER_PROCESS;\n\t\t\t\n\t\t\tif (ut.ut_user[0] == 0)\n\t\t\t\tut.ut_type = DEAD_PROCESS;\n\n\t\t\t\n\t\t\tif (strncmp(ut.ut_user, \"date\", 4) == 0) {\n\t\t\t\tif (ut.ut_line[0] == '|')\n\t\t\t\t\tut.ut_type = OLD_TIME;\n\t\t\t\tif (ut.ut_line[0] == '{')\n\t\t\t\t\tut.ut_type = NEW_TIME;\n\t\t\t}\n\t\t}\n#endif\n\t\tswitch (ut.ut_type) {\n\t\tcase SHUTDOWN_TIME:\n\t\t\tif (ctl->extended) {\n\t\t\t\tstrcpy(ut.ut_line, \"system down\");\n\t\t\t\tquit = list(ctl, &ut, lastboot, R_NORMAL);\n\t\t\t}\n\t\t\tlastdown = lastrch = ut.ut_tv.tv_sec;\n\t\t\tdown = 1;\n\t\t\tbreak;\n\t\tcase OLD_TIME:\n\t\tcase NEW_TIME:\n\t\t\tif (ctl->extended) {\n\t\t\t\tstrcpy(ut.ut_line,\n\t\t\t\tut.ut_type == NEW_TIME ? \"new time\" :\n\t\t\t\t\t\"old time\");\n\t\t\t\tquit = list(ctl, &ut, lastdown, R_TIMECHANGE);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase BOOT_TIME:\n\t\t\tstrcpy(ut.ut_line, \"system boot\");\n\t\t\tif (lastdown > lastboot && lastdown != currentdate)\n\t\t\t\tquit = list(ctl, &ut, lastboot, R_REBOOT_CRASH);\n\t\t\telse\n\t\t\t\tquit = list(ctl, &ut, lastdown, R_REBOOT);\n\t\t\tlastboot = ut.ut_tv.tv_sec;\n\t\t\tdown = 1;\n\t\t\tbreak;\n\t\tcase RUN_LVL:\n\t\t\tx = ut.ut_pid & 255;\n\t\t\tif (ctl->extended) {\n\t\t\t\tsnprintf(ut.ut_line, sizeof(ut.ut_line), \"(to lvl %c)\", x);\n\t\t\t\tquit = list(ctl, &ut, lastrch, R_NORMAL);\n\t\t\t}\n\t\t\tif (x == '0' || x == '6') {\n\t\t\t\tlastdown = ut.ut_tv.tv_sec;\n\t\t\t\tdown = 1;\n\t\t\t\tut.ut_type = SHUTDOWN_TIME;\n\t\t\t}\n\t\t\tlastrch = ut.ut_tv.tv_sec;\n\t\t\tbreak;\n\n\t\tcase USER_PROCESS:\n\t\t\t\n\t\t\tc = 0;\n\t\t\tfor (p = ulist; p; p = next) {\n\t\t\t\tnext = p->next;\n\t\t\t\tif (strncmp(p->ut.ut_line, ut.ut_line,\n\t\t\t\t sizeof(ut.ut_line)) == 0) {\n\t\t\t\t\t\n\t\t\t\t\tif (c == 0) {\n\t\t\t\t\t\tquit = list(ctl, &ut, p->ut.ut_tv.tv_sec, R_NORMAL);\n\t\t\t\t\t\tc = 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (p->next)\n\t\t\t\t\t\tp->next->prev = p->prev;\n\t\t\t\t\tif (p->prev)\n\t\t\t\t\t\tp->prev->next = p->next;\n\t\t\t\t\telse\n\t\t\t\t\t\tulist = p->next;\n\t\t\t\t\tfree(p);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (c == 0) {\n\t\t\t\tif (!lastboot) {\n\t\t\t\t\tc = R_NOW;\n\t\t\t\t\t\n\t\t\t\t\tif (is_phantom(ctl, &ut))\n\t\t\t\t\t\tc = R_PHANTOM;\n\t\t\t\t} else\n\t\t\t\t\tc = whydown;\n\t\t\t\tquit = list(ctl, &ut, lastboot, c);\n\t\t\t}\n\t\t\t\n\n\t\tcase DEAD_PROCESS:\n\t\t\t\n\t\t\tif (ut.ut_line[0] == 0)\n\t\t\t\tbreak;\n\t\t\tp = xmalloc(sizeof(struct utmplist));\n\t\t\tmemcpy(&p->ut, &ut, sizeof(struct utmpx));\n\t\t\tp->next = ulist;\n\t\t\tp->prev = NULL;\n\t\t\tif (ulist)\n\t\t\t\tulist->prev = p;\n\t\t\tulist = p;\n\t\t\tbreak;\n\n\t\tcase EMPTY:\n\t\tcase INIT_PROCESS:\n\t\tcase LOGIN_PROCESS:\n#ifdef ACCOUNTING\n\t\tcase ACCOUNTING:\n#endif\n\t\t\t\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\twarnx(\"unrecognized ut_type: %d\", ut.ut_type);\n\t\t}\n\n\t\t\n\t\tif (down) {\n\t\t\tlastboot = ut.ut_tv.tv_sec;\n\t\t\twhydown = (ut.ut_type == SHUTDOWN_TIME) ? R_DOWN : R_CRASH;\n\t\t\tfor (p = ulist; p; p = next) {\n\t\t\t\tnext = p->next;\n\t\t\t\tfree(p);\n\t\t\t}\n\t\t\tulist = NULL;\n\t\t\tdown = 0;\n\t\t}\n\t}\n\n\tif (ctl->time_fmt != LAST_TIMEFTM_NONE) {\n\t\tstruct last_timefmt *fmt;\n\t\tchar timestr[LAST_TIMESTAMP_LEN];\n\t\tchar *tmp = xstrdup(filename);\n\n\t\tfmt = &timefmts[ctl->time_fmt];\n\t\tif (time_formatter(fmt->in_fmt, timestr,\n\t\t\t\t sizeof(timestr), &begintime) < 0)\n\t\t\terrx(EXIT_FAILURE, _(\"preallocation size exceeded\"));\n\t\tprintf(_(\"\\n%s begins %s\\n\"), basename(tmp), timestr);\n\t\tfree(tmp);\n\t}\n\n\tfclose(fp);\n\n\tfor (p = ulist; p; p = next) {\n\t\tnext = p->next;\n\t\tfree(p);\n\t}\n}", "Selected Statement": "time_t lastboot = 0;\t/* Last boottime */", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 9, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "static void process_wtmp_file(const struct last_control *ctl,\n\t\t\t const char *filename)\n{\n\tFILE *fp;\t\t\n\n\tstruct utmpx ut;\t\n\tstruct utmplist *ulist = NULL;\t\n\tstruct utmplist *p;\t\n\tstruct utmplist *next;\t\n\n\ttime_t lastboot = 0;\t\n\ttime_t lastrch = 0;\t\n\ttime_t lastdown;\t\n\ttime_t begintime;\t\n\tint whydown = 0;\t\n\n\tint c, x;\t\t\n\tstruct stat st;\t\t\n\tint quit = 0;\t\t\n\tint down = 0;\t\t\n\n#ifndef FUZZ_TARGET\n\ttime(&lastdown);\n#else\n\tlastdown = 1596001948;\n#endif\n\t\n\tlastdate = currentdate = lastrch = lastdown;\n\n#ifndef FUZZ_TARGET\n\t\n\tsignal(SIGINT, int_handler);\n\tsignal(SIGQUIT, quit_handler);\n#endif\n\n\t\n\tif ((fp = fopen(filename, \"r\")) == NULL)\n\t\terr(EXIT_FAILURE, _(\"cannot open %s\"), filename);\n\n\t\n\tsetvbuf(fp, NULL, _IOFBF, UCHUNKSIZE);\n\n\t\n\tif (uread(fp, &ut, NULL, filename) == 1)\n\t\tbegintime = ut.ut_tv.tv_sec;\n\telse {\n\t\tif (fstat(fileno(fp), &st) != 0)\n\t\t\terr(EXIT_FAILURE, _(\"stat of %s failed\"), filename);\n\t\tbegintime = st.st_ctime;\n\t\tquit = 1;\n\t}\n\n\t\n\turead(fp, NULL, NULL, filename);\n\n\t\n\twhile (!quit) {\n\n\t\tif (uread(fp, &ut, &quit, filename) != 1)\n\t\t\tbreak;\n\n\t\tif (ctl->since && ut.ut_tv.tv_sec < ctl->since)\n\t\t\tcontinue;\n\n\t\tif (ctl->until && ctl->until < ut.ut_tv.tv_sec)\n\t\t\tcontinue;\n\n\t\tlastdate = ut.ut_tv.tv_sec;\n\n\t\tif (ctl->lastb) {\n\t\t\tquit = list(ctl, &ut, ut.ut_tv.tv_sec, R_NORMAL);\n\t\t\tcontinue;\n\t\t}\n\n\t\t\n\t\tif (strncmp(ut.ut_line, \"~\", 1) == 0) {\n\t\t\tif (strncmp(ut.ut_user, \"shutdown\", 8) == 0)\n\t\t\t\tut.ut_type = SHUTDOWN_TIME;\n\t\t\telse if (strncmp(ut.ut_user, \"reboot\", 6) == 0)\n\t\t\t\tut.ut_type = BOOT_TIME;\n\t\t\telse if (strncmp(ut.ut_user, \"runlevel\", 8) == 0)\n\t\t\t\tut.ut_type = RUN_LVL;\n\t\t}\n#if 1 \n\t\t\n\t\telse {\n\t\t\tif (ut.ut_type != DEAD_PROCESS &&\n\t\t\t ut.ut_user[0] && ut.ut_line[0] &&\n\t\t\t strncmp(ut.ut_user, \"LOGIN\", 5) != 0)\n\t\t\t\tut.ut_type = USER_PROCESS;\n\t\t\t\n\t\t\tif (ut.ut_user[0] == 0)\n\t\t\t\tut.ut_type = DEAD_PROCESS;\n\n\t\t\t\n\t\t\tif (strncmp(ut.ut_user, \"date\", 4) == 0) {\n\t\t\t\tif (ut.ut_line[0] == '|')\n\t\t\t\t\tut.ut_type = OLD_TIME;\n\t\t\t\tif (ut.ut_line[0] == '{')\n\t\t\t\t\tut.ut_type = NEW_TIME;\n\t\t\t}\n\t\t}\n#endif\n\t\tswitch (ut.ut_type) {\n\t\tcase SHUTDOWN_TIME:\n\t\t\tif (ctl->extended) {\n\t\t\t\tstrcpy(ut.ut_line, \"system down\");\n\t\t\t\tquit = list(ctl, &ut, lastboot, R_NORMAL);\n\t\t\t}\n\t\t\tlastdown = lastrch = ut.ut_tv.tv_sec;\n\t\t\tdown = 1;\n\t\t\tbreak;\n\t\tcase OLD_TIME:\n\t\tcase NEW_TIME:\n\t\t\tif (ctl->extended) {\n\t\t\t\tstrcpy(ut.ut_line,\n\t\t\t\tut.ut_type == NEW_TIME ? \"new time\" :\n\t\t\t\t\t\"old time\");\n\t\t\t\tquit = list(ctl, &ut, lastdown, R_TIMECHANGE);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase BOOT_TIME:\n\t\t\tstrcpy(ut.ut_line, \"system boot\");\n\t\t\tif (lastdown > lastboot && lastdown != currentdate)\n\t\t\t\tquit = list(ctl, &ut, lastboot, R_REBOOT_CRASH);\n\t\t\telse\n\t\t\t\tquit = list(ctl, &ut, lastdown, R_REBOOT);\n\t\t\tlastboot = ut.ut_tv.tv_sec;\n\t\t\tdown = 1;\n\t\t\tbreak;\n\t\tcase RUN_LVL:\n\t\t\tx = ut.ut_pid & 255;\n\t\t\tif (ctl->extended) {\n\t\t\t\tsnprintf(ut.ut_line, sizeof(ut.ut_line), \"(to lvl %c)\", x);\n\t\t\t\tquit = list(ctl, &ut, lastrch, R_NORMAL);\n\t\t\t}\n\t\t\tif (x == '0' || x == '6') {\n\t\t\t\tlastdown = ut.ut_tv.tv_sec;\n\t\t\t\tdown = 1;\n\t\t\t\tut.ut_type = SHUTDOWN_TIME;\n\t\t\t}\n\t\t\tlastrch = ut.ut_tv.tv_sec;\n\t\t\tbreak;\n\n\t\tcase USER_PROCESS:\n\t\t\t\n\t\t\tc = 0;\n\t\t\tfor (p = ulist; p; p = next) {\n\t\t\t\tnext = p->next;\n\t\t\t\tif (strncmp(p->ut.ut_line, ut.ut_line,\n\t\t\t\t sizeof(ut.ut_line)) == 0) {\n\t\t\t\t\t\n\t\t\t\t\tif (c == 0) {\n\t\t\t\t\t\tquit = list(ctl, &ut, p->ut.ut_tv.tv_sec, R_NORMAL);\n\t\t\t\t\t\tc = 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (p->next)\n\t\t\t\t\t\tp->next->prev = p->prev;\n\t\t\t\t\tif (p->prev)\n\t\t\t\t\t\tp->prev->next = p->next;\n\t\t\t\t\telse\n\t\t\t\t\t\tulist = p->next;\n\t\t\t\t\tfree(p);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (c == 0) {\n\t\t\t\tif (!lastboot) {\n\t\t\t\t\tc = R_NOW;\n\t\t\t\t\t\n\t\t\t\t\tif (is_phantom(ctl, &ut))\n\t\t\t\t\t\tc = R_PHANTOM;\n\t\t\t\t} else\n\t\t\t\t\tc = whydown;\n\t\t\t\tquit = list(ctl, &ut, lastboot, c);\n\t\t\t}\n\t\t\t\n\n\t\tcase DEAD_PROCESS:\n\t\t\t\n\t\t\tif (ut.ut_line[0] == 0)\n\t\t\t\tbreak;\n\t\t\tp = xmalloc(sizeof(struct utmplist));\n\t\t\tmemcpy(&p->ut, &ut, sizeof(struct utmpx));\n\t\t\tp->next = ulist;\n\t\t\tp->prev = NULL;\n\t\t\tif (ulist)\n\t\t\t\tulist->prev = p;\n\t\t\tulist = p;\n\t\t\tbreak;\n\n\t\tcase EMPTY:\n\t\tcase INIT_PROCESS:\n\t\tcase LOGIN_PROCESS:\n#ifdef ACCOUNTING\n\t\tcase ACCOUNTING:\n#endif\n\t\t\t\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\twarnx(\"unrecognized ut_type: %d\", ut.ut_type);\n\t\t}\n\n\t\t\n\t\tif (down) {\n\t\t\tlastboot = ut.ut_tv.tv_sec;\n\t\t\twhydown = (ut.ut_type == SHUTDOWN_TIME) ? R_DOWN : R_CRASH;\n\t\t\tfor (p = ulist; p; p = next) {\n\t\t\t\tnext = p->next;\n\t\t\t\tfree(p);\n\t\t\t}\n\t\t\tulist = NULL;\n\t\t\tdown = 0;\n\t\t}\n\t}\n\n\tif (ctl->time_fmt != LAST_TIMEFTM_NONE) {\n\t\tstruct last_timefmt *fmt;\n\t\tchar timestr[LAST_TIMESTAMP_LEN];\n\t\tchar *tmp = xstrdup(filename);\n\n\t\tfmt = &timefmts[ctl->time_fmt];\n\t\tif (time_formatter(fmt->in_fmt, timestr,\n\t\t\t\t sizeof(timestr), &begintime) < 0)\n\t\t\terrx(EXIT_FAILURE, _(\"preallocation size exceeded\"));\n\t\tprintf(_(\"\\n%s begins %s\\n\"), basename(tmp), timestr);\n\t\tfree(tmp);\n\t}\n\n\tfclose(fp);\n\n\tfor (p = ulist; p; p = next) {\n\t\tnext = p->next;\n\t\tfree(p);\n\t}\n}", "Selected Statement": "int quit = 0;\t\t/* Flag */", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 17, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "static int process_file(const char *name)\n{\n int rc = -1;\n blkid_probe pr = blkid_new_probe_from_filename(name);\n if (pr != NULL) {\n blkid_probe_enable_partitions(pr, TRUE);\n blkid_probe_set_partitions_flags(pr, FALSE);\n blkid_probe_enable_superblocks(pr, TRUE);\n blkid_probe_set_superblocks_flags(pr, BLKID_SUBLKS_DEFAULT | BLKID_SUBLKS_FSINFO | BLKID_SUBLKS_MAGIC | BLKID_SUBLKS_VERSION | BLKID_SUBLKS_BADCSUM);\n rc = blkid_do_safeprobe(pr) == -1 ? -1 : 0;\n }\n blkid_free_probe(pr);\n return rc;\n}", "Selected Statement": "int rc = -1;", "Function Input": {"name": {"value": null}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 1, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "static int process_file(const char *name)\n{\n int rc = -1;\n blkid_probe pr = blkid_new_probe_from_filename(name);\n if (pr != NULL) {\n blkid_probe_enable_partitions(pr, TRUE);\n blkid_probe_set_partitions_flags(pr, FALSE);\n blkid_probe_enable_superblocks(pr, TRUE);\n blkid_probe_set_superblocks_flags(pr, BLKID_SUBLKS_DEFAULT | BLKID_SUBLKS_FSINFO | BLKID_SUBLKS_MAGIC | BLKID_SUBLKS_VERSION | BLKID_SUBLKS_BADCSUM);\n rc = blkid_do_safeprobe(pr) == -1 ? -1 : 0;\n }\n blkid_free_probe(pr);\n return rc;\n}", "Selected Statement": "blkid_probe pr = blkid_new_probe_from_filename(name);", "Function Input": {"name": {"value": null}}, "Variable Values Before Statement": {"name": "0x7fffffffdf20 \"/tmp/test-script-fuzz.2FhyGN\""}, "Value After Statement Execution": "blkid_probe", "Function Name": "blkid_new_probe_from_filename", "Block_Size": 2, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "blkid_probe blkid_new_probe_from_filename(const char *filename)\n{\n\tint fd;\n\tblkid_probe pr = NULL;\n\n\tfd = open(filename, O_RDONLY|O_CLOEXEC|O_NONBLOCK);\n\tif (fd < 0)\n\t\treturn NULL;\n\n\tpr = blkid_new_probe();\n\tif (!pr)\n\t\tgoto err;\n\n\tif (blkid_probe_set_device(pr, fd, 0, 0))\n\t\tgoto err;\n\n\tpr->flags |= BLKID_FL_PRIVATE_FD;\n\treturn pr;\nerr:\n\tclose(fd);\n\tblkid_free_probe(pr);\n\treturn NULL;\n}", "Selected Statement": "fd = open(filename, O_RDONLY|O_CLOEXEC|O_NONBLOCK);", "Function Input": {}, "Variable Values Before Statement": {"filename": "0x7fffffffdf20 \"/tmp/test-script-fuzz.2FhyGN\""}, "Value After Statement Execution": "int", "Function Name": "open", "Block_Size": 4, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "blkid_probe blkid_new_probe_from_filename(const char *filename)\n{\n\tint fd;\n\tblkid_probe pr = NULL;\n\n\tfd = open(filename, O_RDONLY|O_CLOEXEC|O_NONBLOCK);\n\tif (fd < 0)\n\t\treturn NULL;\n\n\tpr = blkid_new_probe();\n\tif (!pr)\n\t\tgoto err;\n\n\tif (blkid_probe_set_device(pr, fd, 0, 0))\n\t\tgoto err;\n\n\tpr->flags |= BLKID_FL_PRIVATE_FD;\n\treturn pr;\nerr:\n\tclose(fd);\n\tblkid_free_probe(pr);\n\treturn NULL;\n}", "Selected Statement": "pr = blkid_new_probe();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "blkid_probe", "Function Name": "blkid_new_probe", "Block_Size": 8, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "blkid_probe blkid_new_probe_from_filename(const char *filename)\n{\n\tint fd;\n\tblkid_probe pr = NULL;\n\n\tfd = open(filename, O_RDONLY|O_CLOEXEC|O_NONBLOCK);\n\tif (fd < 0)\n\t\treturn NULL;\n\n\tpr = blkid_new_probe();\n\tif (!pr)\n\t\tgoto err;\n\n\tif (blkid_probe_set_device(pr, fd, 0, 0))\n\t\tgoto err;\n\n\tpr->flags |= BLKID_FL_PRIVATE_FD;\n\treturn pr;\nerr:\n\tclose(fd);\n\tblkid_free_probe(pr);\n\treturn NULL;\n}", "Selected Statement": "pr->flags |= BLKID_FL_PRIVATE_FD;", "Function Input": {}, "Variable Values Before Statement": {"BLKID_FL_PRIVATE_FD": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 15, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "int blkid_probe_enable_partitions(blkid_probe pr, int enable)\n{\n\tpr->chains[BLKID_CHAIN_PARTS].enabled = enable;\n\treturn 0;\n}", "Selected Statement": "pr->chains[BLKID_CHAIN_PARTS].enabled = enable;", "Function Input": {"enable": {"value": "32767"}, "pr": {"value": "0xff0320"}}, "Variable Values Before Statement": {"enable": "int"}, "Value After Statement Execution": "int", "Block_Size": 1, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "int blkid_probe_enable_superblocks(blkid_probe pr, int enable)\n{\n\tpr->chains[BLKID_CHAIN_SUBLKS].enabled = enable;\n\treturn 0;\n}", "Selected Statement": "pr->chains[BLKID_CHAIN_SUBLKS].enabled = enable;", "Function Input": {"enable": {"value": "0"}, "pr": {"value": "0xff0320"}}, "Variable Values Before Statement": {"enable": "int"}, "Value After Statement Execution": "int", "Block_Size": 1, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "int mnt_table_parse_stream(struct libmnt_table *tb, FILE *f, const char *filename)\n{\n\tint rc = -1;\n\tint flags = 0;\n\tpid_t tid = -1;\n\tstruct libmnt_parser pa = { .line = 0 };\n\n\tassert(tb);\n\tassert(f);\n\tassert(filename);\n\n\tDBG(TAB, ul_debugobj(tb, \"%s: start parsing [entries=%d, filter=%s]\",\n\t\t\t\tfilename, mnt_table_get_nents(tb),\n\t\t\t\ttb->fltrcb ? \"yes\" : \"not\"));\n\n\tpa.filename = filename;\n\tpa.f = f;\n\n\t\n\tif (tb->fmt == MNT_FMT_SWAPS)\n\t\tflags = MNT_FS_SWAP;\n\telse if (filename && strcmp(filename, _PATH_PROC_MOUNTS) == 0)\n\t\tflags = MNT_FS_KERNEL;\n\n\tdo {\n\t\tstruct libmnt_fs *fs;\n\n\t\tif (feof(f)) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"end-of-file\"));\n\t\t\tbreak;\n\t\t}\n\t\tfs = mnt_new_fs();\n\t\tif (!fs)\n\t\t\tgoto err;\n\n\t\t\n\t\trc = mnt_table_parse_next(&pa, tb, fs);\n\n\t\tif (rc == 0 && tb->fltrcb && tb->fltrcb(fs, tb->fltrcb_data))\n\t\t\trc = 1;\t\n\n\t\tif (rc == 0 && mnt_table_is_noautofs(tb)) {\n\t\t\tconst char *fstype = mnt_fs_get_fstype(fs);\n\n\t\t\tif (fstype && strcmp(fstype, \"autofs\") == 0 &&\n\t\t\t mnt_fs_get_option(fs, \"ignore\", NULL, NULL) == 0)\n\t\t\t\trc = 1; \n\t\t}\n\n\t\t\n\t\tif (rc == 0) {\n\t\t\trc = mnt_table_add_fs(tb, fs);\n\t\t\tfs->flags |= flags;\n\n\t\t\tif (rc == 0 && tb->fmt == MNT_FMT_MOUNTINFO) {\n\t\t\t\trc = kernel_fs_postparse(&pa, tb, fs, &tid);\n\t\t\t\tif (rc)\n\t\t\t\t\tmnt_table_remove_fs(tb, fs);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tmnt_unref_fs(fs);\n\n\t\t\n\t\tif (rc > 0) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"recoverable error (continue)\"));\n\t\t\tcontinue;\n\t\t}\n\n\t\t\n\t\tif (rc < 0 && !feof(f)) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"fatal error\"));\n\t\t\tgoto err;\n\t\t}\n\t} while (1);\n\n\tDBG(TAB, ul_debugobj(tb, \"%s: stop parsing (%d entries)\",\n\t\t\t\tfilename, mnt_table_get_nents(tb)));\n\tparser_cleanup(&pa);\n\treturn 0;\nerr:\n\tDBG(TAB, ul_debugobj(tb, \"%s: parse error (rc=%d)\", filename, rc));\n\tparser_cleanup(&pa);\n\treturn rc;\n}", "Selected Statement": "int rc = -1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 1, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "int mnt_table_parse_stream(struct libmnt_table *tb, FILE *f, const char *filename)\n{\n\tint rc = -1;\n\tint flags = 0;\n\tpid_t tid = -1;\n\tstruct libmnt_parser pa = { .line = 0 };\n\n\tassert(tb);\n\tassert(f);\n\tassert(filename);\n\n\tDBG(TAB, ul_debugobj(tb, \"%s: start parsing [entries=%d, filter=%s]\",\n\t\t\t\tfilename, mnt_table_get_nents(tb),\n\t\t\t\ttb->fltrcb ? \"yes\" : \"not\"));\n\n\tpa.filename = filename;\n\tpa.f = f;\n\n\t\n\tif (tb->fmt == MNT_FMT_SWAPS)\n\t\tflags = MNT_FS_SWAP;\n\telse if (filename && strcmp(filename, _PATH_PROC_MOUNTS) == 0)\n\t\tflags = MNT_FS_KERNEL;\n\n\tdo {\n\t\tstruct libmnt_fs *fs;\n\n\t\tif (feof(f)) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"end-of-file\"));\n\t\t\tbreak;\n\t\t}\n\t\tfs = mnt_new_fs();\n\t\tif (!fs)\n\t\t\tgoto err;\n\n\t\t\n\t\trc = mnt_table_parse_next(&pa, tb, fs);\n\n\t\tif (rc == 0 && tb->fltrcb && tb->fltrcb(fs, tb->fltrcb_data))\n\t\t\trc = 1;\t\n\n\t\tif (rc == 0 && mnt_table_is_noautofs(tb)) {\n\t\t\tconst char *fstype = mnt_fs_get_fstype(fs);\n\n\t\t\tif (fstype && strcmp(fstype, \"autofs\") == 0 &&\n\t\t\t mnt_fs_get_option(fs, \"ignore\", NULL, NULL) == 0)\n\t\t\t\trc = 1; \n\t\t}\n\n\t\t\n\t\tif (rc == 0) {\n\t\t\trc = mnt_table_add_fs(tb, fs);\n\t\t\tfs->flags |= flags;\n\n\t\t\tif (rc == 0 && tb->fmt == MNT_FMT_MOUNTINFO) {\n\t\t\t\trc = kernel_fs_postparse(&pa, tb, fs, &tid);\n\t\t\t\tif (rc)\n\t\t\t\t\tmnt_table_remove_fs(tb, fs);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tmnt_unref_fs(fs);\n\n\t\t\n\t\tif (rc > 0) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"recoverable error (continue)\"));\n\t\t\tcontinue;\n\t\t}\n\n\t\t\n\t\tif (rc < 0 && !feof(f)) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"fatal error\"));\n\t\t\tgoto err;\n\t\t}\n\t} while (1);\n\n\tDBG(TAB, ul_debugobj(tb, \"%s: stop parsing (%d entries)\",\n\t\t\t\tfilename, mnt_table_get_nents(tb)));\n\tparser_cleanup(&pa);\n\treturn 0;\nerr:\n\tDBG(TAB, ul_debugobj(tb, \"%s: parse error (rc=%d)\", filename, rc));\n\tparser_cleanup(&pa);\n\treturn rc;\n}", "Selected Statement": "int flags = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 2, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "int mnt_table_parse_stream(struct libmnt_table *tb, FILE *f, const char *filename)\n{\n\tint rc = -1;\n\tint flags = 0;\n\tpid_t tid = -1;\n\tstruct libmnt_parser pa = { .line = 0 };\n\n\tassert(tb);\n\tassert(f);\n\tassert(filename);\n\n\tDBG(TAB, ul_debugobj(tb, \"%s: start parsing [entries=%d, filter=%s]\",\n\t\t\t\tfilename, mnt_table_get_nents(tb),\n\t\t\t\ttb->fltrcb ? \"yes\" : \"not\"));\n\n\tpa.filename = filename;\n\tpa.f = f;\n\n\t\n\tif (tb->fmt == MNT_FMT_SWAPS)\n\t\tflags = MNT_FS_SWAP;\n\telse if (filename && strcmp(filename, _PATH_PROC_MOUNTS) == 0)\n\t\tflags = MNT_FS_KERNEL;\n\n\tdo {\n\t\tstruct libmnt_fs *fs;\n\n\t\tif (feof(f)) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"end-of-file\"));\n\t\t\tbreak;\n\t\t}\n\t\tfs = mnt_new_fs();\n\t\tif (!fs)\n\t\t\tgoto err;\n\n\t\t\n\t\trc = mnt_table_parse_next(&pa, tb, fs);\n\n\t\tif (rc == 0 && tb->fltrcb && tb->fltrcb(fs, tb->fltrcb_data))\n\t\t\trc = 1;\t\n\n\t\tif (rc == 0 && mnt_table_is_noautofs(tb)) {\n\t\t\tconst char *fstype = mnt_fs_get_fstype(fs);\n\n\t\t\tif (fstype && strcmp(fstype, \"autofs\") == 0 &&\n\t\t\t mnt_fs_get_option(fs, \"ignore\", NULL, NULL) == 0)\n\t\t\t\trc = 1; \n\t\t}\n\n\t\t\n\t\tif (rc == 0) {\n\t\t\trc = mnt_table_add_fs(tb, fs);\n\t\t\tfs->flags |= flags;\n\n\t\t\tif (rc == 0 && tb->fmt == MNT_FMT_MOUNTINFO) {\n\t\t\t\trc = kernel_fs_postparse(&pa, tb, fs, &tid);\n\t\t\t\tif (rc)\n\t\t\t\t\tmnt_table_remove_fs(tb, fs);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tmnt_unref_fs(fs);\n\n\t\t\n\t\tif (rc > 0) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"recoverable error (continue)\"));\n\t\t\tcontinue;\n\t\t}\n\n\t\t\n\t\tif (rc < 0 && !feof(f)) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"fatal error\"));\n\t\t\tgoto err;\n\t\t}\n\t} while (1);\n\n\tDBG(TAB, ul_debugobj(tb, \"%s: stop parsing (%d entries)\",\n\t\t\t\tfilename, mnt_table_get_nents(tb)));\n\tparser_cleanup(&pa);\n\treturn 0;\nerr:\n\tDBG(TAB, ul_debugobj(tb, \"%s: parse error (rc=%d)\", filename, rc));\n\tparser_cleanup(&pa);\n\treturn rc;\n}", "Selected Statement": "pid_t tid = -1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 3, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "int mnt_table_parse_stream(struct libmnt_table *tb, FILE *f, const char *filename)\n{\n\tint rc = -1;\n\tint flags = 0;\n\tpid_t tid = -1;\n\tstruct libmnt_parser pa = { .line = 0 };\n\n\tassert(tb);\n\tassert(f);\n\tassert(filename);\n\n\tDBG(TAB, ul_debugobj(tb, \"%s: start parsing [entries=%d, filter=%s]\",\n\t\t\t\tfilename, mnt_table_get_nents(tb),\n\t\t\t\ttb->fltrcb ? \"yes\" : \"not\"));\n\n\tpa.filename = filename;\n\tpa.f = f;\n\n\t\n\tif (tb->fmt == MNT_FMT_SWAPS)\n\t\tflags = MNT_FS_SWAP;\n\telse if (filename && strcmp(filename, _PATH_PROC_MOUNTS) == 0)\n\t\tflags = MNT_FS_KERNEL;\n\n\tdo {\n\t\tstruct libmnt_fs *fs;\n\n\t\tif (feof(f)) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"end-of-file\"));\n\t\t\tbreak;\n\t\t}\n\t\tfs = mnt_new_fs();\n\t\tif (!fs)\n\t\t\tgoto err;\n\n\t\t\n\t\trc = mnt_table_parse_next(&pa, tb, fs);\n\n\t\tif (rc == 0 && tb->fltrcb && tb->fltrcb(fs, tb->fltrcb_data))\n\t\t\trc = 1;\t\n\n\t\tif (rc == 0 && mnt_table_is_noautofs(tb)) {\n\t\t\tconst char *fstype = mnt_fs_get_fstype(fs);\n\n\t\t\tif (fstype && strcmp(fstype, \"autofs\") == 0 &&\n\t\t\t mnt_fs_get_option(fs, \"ignore\", NULL, NULL) == 0)\n\t\t\t\trc = 1; \n\t\t}\n\n\t\t\n\t\tif (rc == 0) {\n\t\t\trc = mnt_table_add_fs(tb, fs);\n\t\t\tfs->flags |= flags;\n\n\t\t\tif (rc == 0 && tb->fmt == MNT_FMT_MOUNTINFO) {\n\t\t\t\trc = kernel_fs_postparse(&pa, tb, fs, &tid);\n\t\t\t\tif (rc)\n\t\t\t\t\tmnt_table_remove_fs(tb, fs);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tmnt_unref_fs(fs);\n\n\t\t\n\t\tif (rc > 0) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"recoverable error (continue)\"));\n\t\t\tcontinue;\n\t\t}\n\n\t\t\n\t\tif (rc < 0 && !feof(f)) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"fatal error\"));\n\t\t\tgoto err;\n\t\t}\n\t} while (1);\n\n\tDBG(TAB, ul_debugobj(tb, \"%s: stop parsing (%d entries)\",\n\t\t\t\tfilename, mnt_table_get_nents(tb)));\n\tparser_cleanup(&pa);\n\treturn 0;\nerr:\n\tDBG(TAB, ul_debugobj(tb, \"%s: parse error (rc=%d)\", filename, rc));\n\tparser_cleanup(&pa);\n\treturn rc;\n}", "Selected Statement": "pa.filename = filename;", "Function Input": {}, "Variable Values Before Statement": {"filename": "\"mountinfo\""}, "Value After Statement Execution": "\"mountinfo\"", "Block_Size": 14, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "int mnt_table_parse_stream(struct libmnt_table *tb, FILE *f, const char *filename)\n{\n\tint rc = -1;\n\tint flags = 0;\n\tpid_t tid = -1;\n\tstruct libmnt_parser pa = { .line = 0 };\n\n\tassert(tb);\n\tassert(f);\n\tassert(filename);\n\n\tDBG(TAB, ul_debugobj(tb, \"%s: start parsing [entries=%d, filter=%s]\",\n\t\t\t\tfilename, mnt_table_get_nents(tb),\n\t\t\t\ttb->fltrcb ? \"yes\" : \"not\"));\n\n\tpa.filename = filename;\n\tpa.f = f;\n\n\t\n\tif (tb->fmt == MNT_FMT_SWAPS)\n\t\tflags = MNT_FS_SWAP;\n\telse if (filename && strcmp(filename, _PATH_PROC_MOUNTS) == 0)\n\t\tflags = MNT_FS_KERNEL;\n\n\tdo {\n\t\tstruct libmnt_fs *fs;\n\n\t\tif (feof(f)) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"end-of-file\"));\n\t\t\tbreak;\n\t\t}\n\t\tfs = mnt_new_fs();\n\t\tif (!fs)\n\t\t\tgoto err;\n\n\t\t\n\t\trc = mnt_table_parse_next(&pa, tb, fs);\n\n\t\tif (rc == 0 && tb->fltrcb && tb->fltrcb(fs, tb->fltrcb_data))\n\t\t\trc = 1;\t\n\n\t\tif (rc == 0 && mnt_table_is_noautofs(tb)) {\n\t\t\tconst char *fstype = mnt_fs_get_fstype(fs);\n\n\t\t\tif (fstype && strcmp(fstype, \"autofs\") == 0 &&\n\t\t\t mnt_fs_get_option(fs, \"ignore\", NULL, NULL) == 0)\n\t\t\t\trc = 1; \n\t\t}\n\n\t\t\n\t\tif (rc == 0) {\n\t\t\trc = mnt_table_add_fs(tb, fs);\n\t\t\tfs->flags |= flags;\n\n\t\t\tif (rc == 0 && tb->fmt == MNT_FMT_MOUNTINFO) {\n\t\t\t\trc = kernel_fs_postparse(&pa, tb, fs, &tid);\n\t\t\t\tif (rc)\n\t\t\t\t\tmnt_table_remove_fs(tb, fs);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tmnt_unref_fs(fs);\n\n\t\t\n\t\tif (rc > 0) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"recoverable error (continue)\"));\n\t\t\tcontinue;\n\t\t}\n\n\t\t\n\t\tif (rc < 0 && !feof(f)) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"fatal error\"));\n\t\t\tgoto err;\n\t\t}\n\t} while (1);\n\n\tDBG(TAB, ul_debugobj(tb, \"%s: stop parsing (%d entries)\",\n\t\t\t\tfilename, mnt_table_get_nents(tb)));\n\tparser_cleanup(&pa);\n\treturn 0;\nerr:\n\tDBG(TAB, ul_debugobj(tb, \"%s: parse error (rc=%d)\", filename, rc));\n\tparser_cleanup(&pa);\n\treturn rc;\n}", "Selected Statement": "flags = MNT_FS_SWAP;", "Function Input": {}, "Variable Values Before Statement": {"MNT_FS_SWAP": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 21, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "int mnt_table_parse_stream(struct libmnt_table *tb, FILE *f, const char *filename)\n{\n\tint rc = -1;\n\tint flags = 0;\n\tpid_t tid = -1;\n\tstruct libmnt_parser pa = { .line = 0 };\n\n\tassert(tb);\n\tassert(f);\n\tassert(filename);\n\n\tDBG(TAB, ul_debugobj(tb, \"%s: start parsing [entries=%d, filter=%s]\",\n\t\t\t\tfilename, mnt_table_get_nents(tb),\n\t\t\t\ttb->fltrcb ? \"yes\" : \"not\"));\n\n\tpa.filename = filename;\n\tpa.f = f;\n\n\t\n\tif (tb->fmt == MNT_FMT_SWAPS)\n\t\tflags = MNT_FS_SWAP;\n\telse if (filename && strcmp(filename, _PATH_PROC_MOUNTS) == 0)\n\t\tflags = MNT_FS_KERNEL;\n\n\tdo {\n\t\tstruct libmnt_fs *fs;\n\n\t\tif (feof(f)) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"end-of-file\"));\n\t\t\tbreak;\n\t\t}\n\t\tfs = mnt_new_fs();\n\t\tif (!fs)\n\t\t\tgoto err;\n\n\t\t\n\t\trc = mnt_table_parse_next(&pa, tb, fs);\n\n\t\tif (rc == 0 && tb->fltrcb && tb->fltrcb(fs, tb->fltrcb_data))\n\t\t\trc = 1;\t\n\n\t\tif (rc == 0 && mnt_table_is_noautofs(tb)) {\n\t\t\tconst char *fstype = mnt_fs_get_fstype(fs);\n\n\t\t\tif (fstype && strcmp(fstype, \"autofs\") == 0 &&\n\t\t\t mnt_fs_get_option(fs, \"ignore\", NULL, NULL) == 0)\n\t\t\t\trc = 1; \n\t\t}\n\n\t\t\n\t\tif (rc == 0) {\n\t\t\trc = mnt_table_add_fs(tb, fs);\n\t\t\tfs->flags |= flags;\n\n\t\t\tif (rc == 0 && tb->fmt == MNT_FMT_MOUNTINFO) {\n\t\t\t\trc = kernel_fs_postparse(&pa, tb, fs, &tid);\n\t\t\t\tif (rc)\n\t\t\t\t\tmnt_table_remove_fs(tb, fs);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tmnt_unref_fs(fs);\n\n\t\t\n\t\tif (rc > 0) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"recoverable error (continue)\"));\n\t\t\tcontinue;\n\t\t}\n\n\t\t\n\t\tif (rc < 0 && !feof(f)) {\n\t\t\tDBG(TAB, ul_debugobj(tb, \"fatal error\"));\n\t\t\tgoto err;\n\t\t}\n\t} while (1);\n\n\tDBG(TAB, ul_debugobj(tb, \"%s: stop parsing (%d entries)\",\n\t\t\t\tfilename, mnt_table_get_nents(tb)));\n\tparser_cleanup(&pa);\n\treturn 0;\nerr:\n\tDBG(TAB, ul_debugobj(tb, \"%s: parse error (rc=%d)\", filename, rc));\n\tparser_cleanup(&pa);\n\treturn rc;\n}", "Selected Statement": "fs = mnt_new_fs();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": {"ents": null, "tab": null, "refcount": "1", "opts_age": "0", "optlist": null, "id": "0", "parent": "0", "devno": "0", "bindsrc": null, "source": null, "tagname": null, "tagval": null, "root": null, "target": null, "fstype": null, "optstr": null, "vfs_optstr": null, "opt_fields": null, "fs_optstr": null, "user_optstr": null, "attrs": null, "freq": "0", "passno": "0", "swaptype": null, "size": "0", "usedsize": "0", "priority": "0", "flags": "0", "tid": "0", "comment": null, "userdata": null}, "Function Name": "mnt_new_fs", "Block_Size": 32, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "int strappend(char **a, const char *b)\n{\n\tsize_t al, bl;\n\tchar *tmp;\n\n\tif (!a)\n\t\treturn -EINVAL;\n\tif (!b || !*b)\n\t\treturn 0;\n\tif (!*a) {\n\t\t*a = strdup(b);\n\t\treturn !*a ? -ENOMEM : 0;\n\t}\n\n\tal = strlen(*a);\n\tbl = strlen(b);\n\n\ttmp = realloc(*a, al + bl + 1);\n\tif (!tmp)\n\t\treturn -ENOMEM;\n\t*a = tmp;\n\tmemcpy((*a) + al, b, bl + 1);\n\treturn 0;\n}", "Selected Statement": "*a = strdup(b);", "Function Input": {}, "Variable Values Before Statement": {"b": "0x1056ca0 \"#\\n\""}, "Value After Statement Execution": "NULL", "Function Name": "strdup", "Block_Size": 9, "Project Information": "util-linux"} +{"Programming Language": "C", "Source Code": "APR_DECLARE(apr_status_t) apr_pool_initialize(void)\n{\n apr_status_t rv;\n#if (APR_POOL_DEBUG & APR_POOL_DEBUG_VERBOSE_ALL)\n char *logpath;\n apr_file_t *debug_log = NULL;\n#endif\n\n if (apr_pools_initialized++)\n return APR_SUCCESS;\n\n#if defined(_SC_PAGESIZE)\n boundary_size = sysconf(_SC_PAGESIZE);\n#elif defined(WIN32)\n {\n SYSTEM_INFO si;\n GetSystemInfo(&si);\n boundary_size = si.dwPageSize;\n }\n#endif\n boundary_index = 12;\n while ( (1 << boundary_index) < boundary_size)\n boundary_index++;\n boundary_size = (1 << boundary_index);\n\n \n if ((rv = apr_pool_create_ex(&global_pool, NULL, NULL,\n NULL)) != APR_SUCCESS) {\n return rv;\n }\n\n apr_pool_tag(global_pool, \"APR global pool\");\n\n apr_pools_initialized = 1;\n\n \n if ((rv = apr_atomic_init(global_pool)) != APR_SUCCESS) {\n return rv;\n }\n\n#if (APR_POOL_DEBUG & APR_POOL_DEBUG_VERBOSE_ALL)\n rv = apr_env_get(&logpath, \"APR_POOL_DEBUG_LOG\", global_pool);\n\n \n if (rv == APR_SUCCESS) {\n apr_file_open(&debug_log, logpath,\n APR_FOPEN_APPEND|APR_FOPEN_WRITE|APR_FOPEN_CREATE,\n APR_FPROT_OS_DEFAULT, global_pool);\n }\n else {\n apr_file_open_stderr(&debug_log, global_pool);\n }\n\n \n file_stderr = debug_log;\n\n if (file_stderr) {\n apr_file_printf(file_stderr,\n \"POOL DEBUG: [PID\"\n#if APR_HAS_THREADS\n \"/TID\"\n#endif \n \"] ACTION (SIZE /POOL SIZE /TOTAL SIZE) \"\n \"POOL \\\"TAG\\\" <__FILE__:__LINE__> PARENT (ALLOCS/TOTAL ALLOCS/CLEARS)\\n\");\n\n apr_pool_log_event(global_pool, \"GLOBAL\", __FILE__ \":apr_pool_initialize\", 0);\n\n \n apr_pool_cleanup_register(global_pool, NULL,\n apr_pool_cleanup_file_stderr,\n apr_pool_cleanup_null);\n }\n#endif \n\n return APR_SUCCESS;\n}", "Selected Statement": "boundary_index = 12;", "Function Input": {}, "Variable Values Before Statement": {"constant": "12"}, "Value After Statement Execution": "12", "Block_Size": 19, "Project Information": "apache-httpd"} +{"Programming Language": "C", "Source Code": "APR_DECLARE(apr_status_t) apr_thread_mutex_create(apr_thread_mutex_t **mutex,\n unsigned int flags,\n apr_pool_t *pool)\n{\n apr_thread_mutex_t *new_mutex;\n apr_status_t rv;\n\n#ifndef HAVE_PTHREAD_MUTEX_RECURSIVE\n if (flags & APR_THREAD_MUTEX_NESTED) {\n return APR_ENOTIMPL;\n }\n#endif\n\n new_mutex = apr_pcalloc(pool, sizeof(apr_thread_mutex_t));\n new_mutex->pool = pool;\n\n#ifdef HAVE_PTHREAD_MUTEX_RECURSIVE\n if (flags & APR_THREAD_MUTEX_NESTED) {\n pthread_mutexattr_t mattr;\n\n rv = pthread_mutexattr_init(&mattr);\n if (rv) return rv;\n\n rv = pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_RECURSIVE);\n if (rv) {\n pthread_mutexattr_destroy(&mattr);\n return rv;\n }\n\n rv = pthread_mutex_init(&new_mutex->mutex, &mattr);\n\n pthread_mutexattr_destroy(&mattr);\n } else\n#endif\n {\n#if defined(APR_THREAD_DEBUG)\n pthread_mutexattr_t mattr;\n\n rv = pthread_mutexattr_init(&mattr);\n if (rv) return rv;\n\n rv = pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_ERRORCHECK);\n if (rv) {\n pthread_mutexattr_destroy(&mattr);\n return rv;\n }\n\n rv = pthread_mutex_init(&new_mutex->mutex, &mattr);\n\n pthread_mutexattr_destroy(&mattr);\n#else\n rv = pthread_mutex_init(&new_mutex->mutex, NULL);\n#endif\n }\n\n if (rv) {\n#ifdef HAVE_ZOS_PTHREADS\n rv = errno;\n#endif\n return rv;\n }\n\n#ifndef HAVE_PTHREAD_MUTEX_TIMEDLOCK\n if (flags & APR_THREAD_MUTEX_TIMED) {\n rv = apr_thread_cond_create(&new_mutex->cond, pool);\n if (rv) {\n#ifdef HAVE_ZOS_PTHREADS\n rv = errno;\n#endif\n pthread_mutex_destroy(&new_mutex->mutex);\n return rv;\n }\n }\n#endif\n\n apr_pool_cleanup_register(new_mutex->pool,\n new_mutex, thread_mutex_cleanup,\n apr_pool_cleanup_null);\n\n *mutex = new_mutex;\n return APR_SUCCESS;\n}", "Selected Statement": "new_mutex = apr_pcalloc(pool, sizeof(apr_thread_mutex_t));", "Function Input": {}, "Variable Values Before Statement": {"pool": {"parent": null, "child": null, "sibling": null, "ref": null, "cleanups": null, "free_cleanups": null, "allocator": null, "subprocesses": null, "abort_fn": null, "user_data": null, "tag": "0x6d2f95 \"memory/unix/apr_pools.c:1704\"", "joined": null, "nodes": null, "file_line": "0x6d2f95 \"memory/unix/apr_pools.c:1704\"", "creation_flags": "0", "stat_alloc": "1", "stat_total_alloc": "1", "stat_clear": "0", "owner": "0", "mutex": null, "pre_cleanups": null}}, "Value After Statement Execution": {"pool": null, "mutex": null}, "Function Name": "apr_pcalloc", "Block_Size": 12, "Project Information": "apache-httpd"} +{"Programming Language": "C", "Source Code": "APR_DECLARE(apr_status_t) apr_thread_mutex_create(apr_thread_mutex_t **mutex,\n unsigned int flags,\n apr_pool_t *pool)\n{\n apr_thread_mutex_t *new_mutex;\n apr_status_t rv;\n\n#ifndef HAVE_PTHREAD_MUTEX_RECURSIVE\n if (flags & APR_THREAD_MUTEX_NESTED) {\n return APR_ENOTIMPL;\n }\n#endif\n\n new_mutex = apr_pcalloc(pool, sizeof(apr_thread_mutex_t));\n new_mutex->pool = pool;\n\n#ifdef HAVE_PTHREAD_MUTEX_RECURSIVE\n if (flags & APR_THREAD_MUTEX_NESTED) {\n pthread_mutexattr_t mattr;\n\n rv = pthread_mutexattr_init(&mattr);\n if (rv) return rv;\n\n rv = pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_RECURSIVE);\n if (rv) {\n pthread_mutexattr_destroy(&mattr);\n return rv;\n }\n\n rv = pthread_mutex_init(&new_mutex->mutex, &mattr);\n\n pthread_mutexattr_destroy(&mattr);\n } else\n#endif\n {\n#if defined(APR_THREAD_DEBUG)\n pthread_mutexattr_t mattr;\n\n rv = pthread_mutexattr_init(&mattr);\n if (rv) return rv;\n\n rv = pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_ERRORCHECK);\n if (rv) {\n pthread_mutexattr_destroy(&mattr);\n return rv;\n }\n\n rv = pthread_mutex_init(&new_mutex->mutex, &mattr);\n\n pthread_mutexattr_destroy(&mattr);\n#else\n rv = pthread_mutex_init(&new_mutex->mutex, NULL);\n#endif\n }\n\n if (rv) {\n#ifdef HAVE_ZOS_PTHREADS\n rv = errno;\n#endif\n return rv;\n }\n\n#ifndef HAVE_PTHREAD_MUTEX_TIMEDLOCK\n if (flags & APR_THREAD_MUTEX_TIMED) {\n rv = apr_thread_cond_create(&new_mutex->cond, pool);\n if (rv) {\n#ifdef HAVE_ZOS_PTHREADS\n rv = errno;\n#endif\n pthread_mutex_destroy(&new_mutex->mutex);\n return rv;\n }\n }\n#endif\n\n apr_pool_cleanup_register(new_mutex->pool,\n new_mutex, thread_mutex_cleanup,\n apr_pool_cleanup_null);\n\n *mutex = new_mutex;\n return APR_SUCCESS;\n}", "Selected Statement": "rv = pthread_mutexattr_init(&mattr);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "apr_status_t", "Function Name": "pthread_mutexattr_init", "Block_Size": 19, "Project Information": "apache-httpd"} +{"Programming Language": "C", "Source Code": "APR_DECLARE(apr_status_t) apr_thread_mutex_create(apr_thread_mutex_t **mutex,\n unsigned int flags,\n apr_pool_t *pool)\n{\n apr_thread_mutex_t *new_mutex;\n apr_status_t rv;\n\n#ifndef HAVE_PTHREAD_MUTEX_RECURSIVE\n if (flags & APR_THREAD_MUTEX_NESTED) {\n return APR_ENOTIMPL;\n }\n#endif\n\n new_mutex = apr_pcalloc(pool, sizeof(apr_thread_mutex_t));\n new_mutex->pool = pool;\n\n#ifdef HAVE_PTHREAD_MUTEX_RECURSIVE\n if (flags & APR_THREAD_MUTEX_NESTED) {\n pthread_mutexattr_t mattr;\n\n rv = pthread_mutexattr_init(&mattr);\n if (rv) return rv;\n\n rv = pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_RECURSIVE);\n if (rv) {\n pthread_mutexattr_destroy(&mattr);\n return rv;\n }\n\n rv = pthread_mutex_init(&new_mutex->mutex, &mattr);\n\n pthread_mutexattr_destroy(&mattr);\n } else\n#endif\n {\n#if defined(APR_THREAD_DEBUG)\n pthread_mutexattr_t mattr;\n\n rv = pthread_mutexattr_init(&mattr);\n if (rv) return rv;\n\n rv = pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_ERRORCHECK);\n if (rv) {\n pthread_mutexattr_destroy(&mattr);\n return rv;\n }\n\n rv = pthread_mutex_init(&new_mutex->mutex, &mattr);\n\n pthread_mutexattr_destroy(&mattr);\n#else\n rv = pthread_mutex_init(&new_mutex->mutex, NULL);\n#endif\n }\n\n if (rv) {\n#ifdef HAVE_ZOS_PTHREADS\n rv = errno;\n#endif\n return rv;\n }\n\n#ifndef HAVE_PTHREAD_MUTEX_TIMEDLOCK\n if (flags & APR_THREAD_MUTEX_TIMED) {\n rv = apr_thread_cond_create(&new_mutex->cond, pool);\n if (rv) {\n#ifdef HAVE_ZOS_PTHREADS\n rv = errno;\n#endif\n pthread_mutex_destroy(&new_mutex->mutex);\n return rv;\n }\n }\n#endif\n\n apr_pool_cleanup_register(new_mutex->pool,\n new_mutex, thread_mutex_cleanup,\n apr_pool_cleanup_null);\n\n *mutex = new_mutex;\n return APR_SUCCESS;\n}", "Selected Statement": "rv = pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_RECURSIVE);", "Function Input": {}, "Variable Values Before Statement": {"PTHREAD_MUTEX_RECURSIVE": "NULL"}, "Value After Statement Execution": "apr_status_t", "Function Name": "pthread_mutexattr_settype", "Block_Size": 22, "Project Information": "apache-httpd"} +{"Programming Language": "C", "Source Code": "APR_DECLARE(apr_status_t) apr_thread_mutex_create(apr_thread_mutex_t **mutex,\n unsigned int flags,\n apr_pool_t *pool)\n{\n apr_thread_mutex_t *new_mutex;\n apr_status_t rv;\n\n#ifndef HAVE_PTHREAD_MUTEX_RECURSIVE\n if (flags & APR_THREAD_MUTEX_NESTED) {\n return APR_ENOTIMPL;\n }\n#endif\n\n new_mutex = apr_pcalloc(pool, sizeof(apr_thread_mutex_t));\n new_mutex->pool = pool;\n\n#ifdef HAVE_PTHREAD_MUTEX_RECURSIVE\n if (flags & APR_THREAD_MUTEX_NESTED) {\n pthread_mutexattr_t mattr;\n\n rv = pthread_mutexattr_init(&mattr);\n if (rv) return rv;\n\n rv = pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_RECURSIVE);\n if (rv) {\n pthread_mutexattr_destroy(&mattr);\n return rv;\n }\n\n rv = pthread_mutex_init(&new_mutex->mutex, &mattr);\n\n pthread_mutexattr_destroy(&mattr);\n } else\n#endif\n {\n#if defined(APR_THREAD_DEBUG)\n pthread_mutexattr_t mattr;\n\n rv = pthread_mutexattr_init(&mattr);\n if (rv) return rv;\n\n rv = pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_ERRORCHECK);\n if (rv) {\n pthread_mutexattr_destroy(&mattr);\n return rv;\n }\n\n rv = pthread_mutex_init(&new_mutex->mutex, &mattr);\n\n pthread_mutexattr_destroy(&mattr);\n#else\n rv = pthread_mutex_init(&new_mutex->mutex, NULL);\n#endif\n }\n\n if (rv) {\n#ifdef HAVE_ZOS_PTHREADS\n rv = errno;\n#endif\n return rv;\n }\n\n#ifndef HAVE_PTHREAD_MUTEX_TIMEDLOCK\n if (flags & APR_THREAD_MUTEX_TIMED) {\n rv = apr_thread_cond_create(&new_mutex->cond, pool);\n if (rv) {\n#ifdef HAVE_ZOS_PTHREADS\n rv = errno;\n#endif\n pthread_mutex_destroy(&new_mutex->mutex);\n return rv;\n }\n }\n#endif\n\n apr_pool_cleanup_register(new_mutex->pool,\n new_mutex, thread_mutex_cleanup,\n apr_pool_cleanup_null);\n\n *mutex = new_mutex;\n return APR_SUCCESS;\n}", "Selected Statement": "*mutex = new_mutex;", "Function Input": {}, "Variable Values Before Statement": {"new_mutex": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 78, "Project Information": "apache-httpd"} +{"Programming Language": "C", "Source Code": "void af_gb_init() {\n pointer_idx = 0;\n\n for (int i = 0; i < GB_SIZE; i++) {\n pointer_arr[i] = NULL;\n }\n}", "Selected Statement": "pointer_idx = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 2, "Project Information": "apache-httpd"} +{"Programming Language": "C", "Source Code": "void af_gb_init() {\n pointer_idx = 0;\n\n for (int i = 0; i < GB_SIZE; i++) {\n pointer_arr[i] = NULL;\n }\n}", "Selected Statement": "for (int i = 0; i < GB_SIZE; i++) {", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 4, "Project Information": "apache-httpd"} +{"Programming Language": "C", "Source Code": "APR_DECLARE(apr_status_t) apr_tokenize_to_argv(const char *arg_str,\n char ***argv_out,\n apr_pool_t *token_context)\n{\n const char *cp;\n const char *ct;\n char *cleaned, *dirty;\n int escaped;\n int isquoted, numargs = 0, argnum;\n\n#define SKIP_WHITESPACE(cp) \\\n for ( ; *cp == ' ' || *cp == '\\t'; ) { \\\n cp++; \\\n };\n\n#define CHECK_QUOTATION(cp,isquoted) \\\n isquoted = 0; \\\n if (*cp == '\"') { \\\n isquoted = 1; \\\n cp++; \\\n } \\\n else if (*cp == '\\'') { \\\n isquoted = 2; \\\n cp++; \\\n }\n\n\n#define DETERMINE_NEXTSTRING(cp,isquoted) \\\n for ( ; *cp != '\\0'; cp++) { \\\n if ( (*cp == '\\\\' && (*(cp+1) == ' ' || *(cp+1) == '\\t' || \\\n *(cp+1) == '\"' || *(cp+1) == '\\''))) { \\\n cp++; \\\n continue; \\\n } \\\n if ( (!isquoted && (*cp == ' ' || *cp == '\\t')) \\\n || (isquoted == 1 && *cp == '\"') \\\n || (isquoted == 2 && *cp == '\\'') ) { \\\n break; \\\n } \\\n }\n\n\n#define REMOVE_ESCAPE_CHARS(cleaned, dirty, escaped) \\\n escaped = 0; \\\n while(*dirty) { \\\n if (!escaped && *dirty == '\\\\') { \\\n escaped = 1; \\\n } \\\n else { \\\n escaped = 0; \\\n *cleaned++ = *dirty; \\\n } \\\n ++dirty; \\\n } \\\n *cleaned = 0; \n\n cp = arg_str;\n SKIP_WHITESPACE(cp);\n ct = cp;\n\n \n numargs = 1;\n while (*ct != '\\0') {\n CHECK_QUOTATION(ct, isquoted);\n DETERMINE_NEXTSTRING(ct, isquoted);\n if (*ct != '\\0') {\n ct++;\n }\n numargs++;\n SKIP_WHITESPACE(ct);\n }\n *argv_out = apr_palloc(token_context, numargs * sizeof(char*));\n\n \n for (argnum = 0; argnum < (numargs-1); argnum++) {\n SKIP_WHITESPACE(cp);\n CHECK_QUOTATION(cp, isquoted);\n ct = cp;\n DETERMINE_NEXTSTRING(cp, isquoted);\n cp++;\n (*argv_out)[argnum] = apr_palloc(token_context, cp - ct);\n apr_cpystrn((*argv_out)[argnum], ct, cp - ct);\n cleaned = dirty = (*argv_out)[argnum];\n REMOVE_ESCAPE_CHARS(cleaned, dirty, escaped);\n }\n (*argv_out)[argnum] = NULL;\n\n return APR_SUCCESS;\n}", "Selected Statement": "cp = arg_str;", "Function Input": {}, "Variable Values Before Statement": {"arg_str": "\"\""}, "Value After Statement Execution": "\"\"", "Block_Size": 61, "Project Information": "apache-httpd"} +{"Programming Language": "C", "Source Code": "APR_DECLARE(apr_status_t) apr_tokenize_to_argv(const char *arg_str,\n char ***argv_out,\n apr_pool_t *token_context)\n{\n const char *cp;\n const char *ct;\n char *cleaned, *dirty;\n int escaped;\n int isquoted, numargs = 0, argnum;\n\n#define SKIP_WHITESPACE(cp) \\\n for ( ; *cp == ' ' || *cp == '\\t'; ) { \\\n cp++; \\\n };\n\n#define CHECK_QUOTATION(cp,isquoted) \\\n isquoted = 0; \\\n if (*cp == '\"') { \\\n isquoted = 1; \\\n cp++; \\\n } \\\n else if (*cp == '\\'') { \\\n isquoted = 2; \\\n cp++; \\\n }\n\n\n#define DETERMINE_NEXTSTRING(cp,isquoted) \\\n for ( ; *cp != '\\0'; cp++) { \\\n if ( (*cp == '\\\\' && (*(cp+1) == ' ' || *(cp+1) == '\\t' || \\\n *(cp+1) == '\"' || *(cp+1) == '\\''))) { \\\n cp++; \\\n continue; \\\n } \\\n if ( (!isquoted && (*cp == ' ' || *cp == '\\t')) \\\n || (isquoted == 1 && *cp == '\"') \\\n || (isquoted == 2 && *cp == '\\'') ) { \\\n break; \\\n } \\\n }\n\n\n#define REMOVE_ESCAPE_CHARS(cleaned, dirty, escaped) \\\n escaped = 0; \\\n while(*dirty) { \\\n if (!escaped && *dirty == '\\\\') { \\\n escaped = 1; \\\n } \\\n else { \\\n escaped = 0; \\\n *cleaned++ = *dirty; \\\n } \\\n ++dirty; \\\n } \\\n *cleaned = 0; \n\n cp = arg_str;\n SKIP_WHITESPACE(cp);\n ct = cp;\n\n \n numargs = 1;\n while (*ct != '\\0') {\n CHECK_QUOTATION(ct, isquoted);\n DETERMINE_NEXTSTRING(ct, isquoted);\n if (*ct != '\\0') {\n ct++;\n }\n numargs++;\n SKIP_WHITESPACE(ct);\n }\n *argv_out = apr_palloc(token_context, numargs * sizeof(char*));\n\n \n for (argnum = 0; argnum < (numargs-1); argnum++) {\n SKIP_WHITESPACE(cp);\n CHECK_QUOTATION(cp, isquoted);\n ct = cp;\n DETERMINE_NEXTSTRING(cp, isquoted);\n cp++;\n (*argv_out)[argnum] = apr_palloc(token_context, cp - ct);\n apr_cpystrn((*argv_out)[argnum], ct, cp - ct);\n cleaned = dirty = (*argv_out)[argnum];\n REMOVE_ESCAPE_CHARS(cleaned, dirty, escaped);\n }\n (*argv_out)[argnum] = NULL;\n\n return APR_SUCCESS;\n}", "Selected Statement": "numargs = 1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 71, "Project Information": "apache-httpd"} +{"Programming Language": "C", "Source Code": "APR_DECLARE(apr_status_t) apr_parse_addr_port(char **addr,\n char **scope_id,\n apr_port_t *port,\n const char *str,\n apr_pool_t *p)\n{\n const char *ch, *lastchar;\n int big_port;\n apr_size_t addrlen;\n\n *addr = NULL; \n *scope_id = NULL; \n *port = 0; \n\n \n ch = lastchar = str + strlen(str) - 1;\n while (ch >= str && apr_isdigit(*ch)) {\n --ch;\n }\n\n if (ch < str) { \n big_port = atoi(str);\n if (big_port < 1 || big_port > 65535) {\n return APR_EINVAL;\n }\n *port = big_port;\n return APR_SUCCESS;\n }\n\n if (*ch == ':' && ch < lastchar) { \n if (ch == str) { \n return APR_EINVAL;\n }\n big_port = atoi(ch + 1);\n if (big_port < 1 || big_port > 65535) {\n return APR_EINVAL;\n }\n *port = big_port;\n lastchar = ch - 1;\n }\n\n \n addrlen = lastchar - str + 1;\n\n\n#if APR_HAVE_IPV6\n if (*str == '[') {\n const char *end_bracket = memchr(str, ']', addrlen);\n struct in6_addr ipaddr;\n const char *scope_delim;\n\n if (!end_bracket || end_bracket != lastchar) {\n *port = 0;\n return APR_EINVAL;\n }\n\n \n scope_delim = memchr(str, '%', addrlen);\n if (scope_delim) {\n if (scope_delim == end_bracket - 1) { \n *port = 0;\n return APR_EINVAL;\n }\n addrlen = scope_delim - str - 1;\n *scope_id = apr_pstrmemdup(p, scope_delim + 1, end_bracket - scope_delim - 1);\n }\n else {\n addrlen = addrlen - 2; \n }\n\n *addr = apr_pstrmemdup(p, str + 1, addrlen);\n if (apr_inet_pton(AF_INET6, *addr, &ipaddr) != 1) {\n *addr = NULL;\n *scope_id = NULL;\n *port = 0;\n return APR_EINVAL;\n }\n }\n else\n#endif\n {\n \n *addr = apr_pstrmemdup(p, str, addrlen);\n }\n return APR_SUCCESS;\n}", "Selected Statement": "ch = lastchar = str + strlen(str) - 1;", "Function Input": {}, "Variable Values Before Statement": {"str": "0x11a16a0 \"\"", "strlen": "NULL"}, "Value After Statement Execution": "0x11a169f \"\"", "Block_Size": 16, "Project Information": "apache-httpd"} +{"Programming Language": "C", "Source Code": "APR_DECLARE(apr_status_t) apr_parse_addr_port(char **addr,\n char **scope_id,\n apr_port_t *port,\n const char *str,\n apr_pool_t *p)\n{\n const char *ch, *lastchar;\n int big_port;\n apr_size_t addrlen;\n\n *addr = NULL; \n *scope_id = NULL; \n *port = 0; \n\n \n ch = lastchar = str + strlen(str) - 1;\n while (ch >= str && apr_isdigit(*ch)) {\n --ch;\n }\n\n if (ch < str) { \n big_port = atoi(str);\n if (big_port < 1 || big_port > 65535) {\n return APR_EINVAL;\n }\n *port = big_port;\n return APR_SUCCESS;\n }\n\n if (*ch == ':' && ch < lastchar) { \n if (ch == str) { \n return APR_EINVAL;\n }\n big_port = atoi(ch + 1);\n if (big_port < 1 || big_port > 65535) {\n return APR_EINVAL;\n }\n *port = big_port;\n lastchar = ch - 1;\n }\n\n \n addrlen = lastchar - str + 1;\n\n\n#if APR_HAVE_IPV6\n if (*str == '[') {\n const char *end_bracket = memchr(str, ']', addrlen);\n struct in6_addr ipaddr;\n const char *scope_delim;\n\n if (!end_bracket || end_bracket != lastchar) {\n *port = 0;\n return APR_EINVAL;\n }\n\n \n scope_delim = memchr(str, '%', addrlen);\n if (scope_delim) {\n if (scope_delim == end_bracket - 1) { \n *port = 0;\n return APR_EINVAL;\n }\n addrlen = scope_delim - str - 1;\n *scope_id = apr_pstrmemdup(p, scope_delim + 1, end_bracket - scope_delim - 1);\n }\n else {\n addrlen = addrlen - 2; \n }\n\n *addr = apr_pstrmemdup(p, str + 1, addrlen);\n if (apr_inet_pton(AF_INET6, *addr, &ipaddr) != 1) {\n *addr = NULL;\n *scope_id = NULL;\n *port = 0;\n return APR_EINVAL;\n }\n }\n else\n#endif\n {\n \n *addr = apr_pstrmemdup(p, str, addrlen);\n }\n return APR_SUCCESS;\n}", "Selected Statement": "big_port = atoi(str);", "Function Input": {}, "Variable Values Before Statement": {"str": "0x11a16a0 \"\""}, "Value After Statement Execution": "int", "Function Name": "atoi", "Block_Size": 22, "Project Information": "apache-httpd"} +{"Programming Language": "C", "Source Code": "void nxt_cdecl\nnxt_log_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...)\n{\n u_char *p, *end;\n#if 0\n u_char *syslogmsg;\n#endif\n va_list args;\n u_char msg[NXT_MAX_ERROR_STR];\n\n p = msg;\n end = msg + NXT_MAX_ERROR_STR;\n\n if (nxt_log_prefix != NULL) {\n p = nxt_cpystrn(p, nxt_log_prefix, end - p);\n *p++ = ':';\n *p++ = ' ';\n }\n\n#if 0\n syslogmsg = p;\n#endif\n\n p = nxt_sprintf(p, end, (log->ident != 0) ? \"[%V] *%D \" : \"[%V] \",\n &nxt_log_levels[level], log->ident);\n\n va_start(args, fmt);\n p = nxt_vsprintf(p, end, fmt, args);\n va_end(args);\n\n if (level != NXT_LOG_DEBUG && log->ctx_handler != NULL) {\n p = log->ctx_handler(log->ctx, p, end);\n }\n\n if (p > end - nxt_length(\"\\n\")) {\n p = end - nxt_length(\"\\n\");\n }\n\n *p++ = '\\n';\n\n (void) nxt_write_console(nxt_stderr, msg, p - msg);\n\n#if 0\n if (level == NXT_LOG_ALERT) {\n *(p - nxt_length(\"\\n\")) = '\\0';\n\n \n nxt_write_syslog(LOG_ALERT, syslogmsg);\n }\n#endif\n}", "Selected Statement": "p = msg;", "Function Input": {}, "Variable Values Before Statement": {"msg": "\"x\\000\\000\\000\\000\\000\\000\\000\\346o\\254\\367\\377\\177\\000\\000\\002\\000\\000\\000\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\210\\303\\367\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000r\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\377\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\225\\000\\000\\000\\000\\000\\000\\000 \\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\177\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000r\\334\\377\\377\\377\\177\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\210\\303\\367\\377\\177\\000\\000h\\r\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000p\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000dir, corpus)\\000rb\\000\\000\\000\\000\\000\\000\\000\\000\\000 \\000\\000\\0000\\000\\000\\000`\\334\\377\\377\\377\\177\\000\\000\\200\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\327\\377\\365\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\327\\377\\365\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000G\\000\\000\\000H\\000\\000\\000M\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\000\\200\\037\\000\\000\\377\\377\\000\\000side use -detect\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\323G\\366TPf)\\002\\000\\000\\000\\000\\000\\000\\000\\360\\334\\377\\377\\377\\177\\000\\000\\300\\325\\303\\367\\377\\177\\000\\000\\234`[\\000\\000\\000\\000\\000\\260\\335\\377\\377\\377\\177\\000\\000$m\\254\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000G\\000\\000\\000H\\000\\000\\000M\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000dside use\\000\\323G\\366TPf)\\002\\000\\000\\000\\000\\000\\000\\000\\220\\335\\377\\377\\377\\177\\000\\000\\300\\325\\303\\367\\377\\177\\000\\000\\3113[\\000\\000\\000\\000\\000P\\336\\377\\377\\377\\177\\000\\000$m\\254\\367\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\177\\000\\000g\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000g\\333\\377\\377\\377\\177\\000\\000\\260\\330\\377\\377\\377\\17795\\000\\323G\\366TPf)P\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\027\\000\\000\\000\\000\\000\\000\\000\\260\\330\\377\\377\\377\\177\\000\\000@\\333\\377\\377\\377\\177\\000\\0000\\332\\377\\377\\377\\177\\000\\000P\\333\\377\\377\\377\\177\\000\\000\\232\\277\\255\\367\\377\\177\\000\\000\\000 \\304\\367\\377\\177\\000\\000\\240\\331\\377\\377\\377\\177\\000\\000\\001\\200\\255\\373\\000\\000\\000\\000P\\333\\377\\377\\377\\177\\000\\000P\\333\\377\\377\\377\\177\\000\\000P\\333\\377\\377\\377\\177\\000\\000\\360\\333\\377\\377\\377\\177\\000\\000\\a\\334\\377\\377\\377\\177\\000\\000g\\333\\377\\377\\377\\177\\000\\000\\a\\334\\377\\377\\377\\177\\000\\000P\\331\\377\\377\\377\\17795\\000\\323G\\366TPf)\\360\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\027\\000\\000\\000\\000\\000\\000\\000P\\331\\377\\377\\377\\177\\000\\000\\340\\333\\377\\377\\377\\177\\000\\000\\320\\332\\377\\377\\377\\177\\000\\000\\360\\333\\377\\377\\377\\177\\000\\000\\232\\277\\255\\367\\377\\177\\000\\000\\300\\325\\303\\367\\377\\177\\000\\000@\\332\\377\\377\\377\\177\\000\\000\\001\\200\\255\\373\\377\\377\\377\\377\\360\\333\\377\\377\\377\\177\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\227\\334\\377\\377\\377\\177\\000\\000\\360\\333\\377\\377\\377\\177\\000\\000\\227\\334\\377\\377\\377\\177\\000\\000\\340\\331\\377\\377\\377\\17795\\000\\323G\\366TPf)\\200\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\027\\000\\000\\000\\000\\000\\000\\000\\340\\331\\377\\377\\377\\177\\000\\000p\\334\\377\\377\\377\\177\\000\\000`\\333\\377\\377\\377\\177\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\232\\277\\255\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\320\\332\\377\\377\\377\\177\\000\\000\\001\\200\\255\\373\\000\\000\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\202\\334\\377\\377\\377\\177\\000\\000\\227\\334\\377\\377\\377\\177\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\227\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000H7b\\000\\200\\000\\000\\000\\240\\332\\377\\377\\377\\177\\000\\000\\000\\000i\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\0000\\000\\000\\000\\000\\000\\000\\0000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000,\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\177\\000\\000\\360\\333\\377\\377\\377\\177\\000\\000X\\335\\377\\377\\377\\177\\000\\000\\240\\221\\303\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\n\\204\\256\\367\\377\\177\\000\\000\\020\\302\\a\\001\\000\\000\\000\\000\\340\\313\\303\\367\\377\\177\\000\\000\\a\\000\\000\\000\\000\\000\\000\\000\\016\\242\\005\\001\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000c\\000\\000\\000\\377\\177\\000\\000\\b\\250\\005\\001\\000\\000\\000\\0000\\020\\000\\000\\000\\000\\000\\000@\\000\\000\\000\\000\\000\\000\\000\\001\\001\\000\\000p\\000\\000\\000\\b\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000|\\000\\000\\000w\\000\\000\\000o\\000\\000\\000c\\000\\000\\000p\\334\\377\\377\\377\\177\\000\\000\\030\\000\\000\\000\\000\\000\\000\\000\\377\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\200\\313\\303\\367\\377\\177\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377 \\302\\a\\001\\000\\000\\000\\000 \\322\\a\\001\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\240Q\\a\\001\\000\\000\\000\\000\\035\\035\\255\\367\\377\\177\\000\\000\\000\\375\\000\\000\\000\\000\\000\\000q\\002T\\006\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\244\\201\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\b\\000\\000\\000\\000\\000\\000\\000\\203\\023@f\\000\\000\\000\\000h\\315\\323\\t\\000\\000\\000\\000\\203\\023@f\\000\\000\\000\\000\\177rq\\a\\000\\000\\000\\000\\203\\023@f\\000\\000\\000\\000\\177rq\\a\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\""}, "Value After Statement Execution": "\"x\\000\\000\\000\\000\\000\\000\\000\\346o\\254\\367\\377\\177\\000\\000\\002\\000\\000\\000\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\210\\303\\367\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000r\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\377\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\225\\000\\000\\000\\000\\000\\000\\000 \\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\177\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000r\\334\\377\\377\\377\\177\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\210\\303\\367\\377\\177\\000\\000h\\r\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000p\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000dir, corpus)\\000rb\\000\\000\\000\\000\\000\\000\\000\\000\\000 \\000\\000\\0000\\000\\000\\000`\\334\\377\\377\\377\\177\\000\\000\\200\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\327\\377\\365\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\327\\377\\365\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000G\\000\\000\\000H\\000\\000\\000M\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\000\\200\\037\\000\\000\\377\\377\\000\\000side use -detect\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\323G\\366TPf)\\002\\000\\000\\000\\000\\000\\000\\000\\360\\334\\377\\377\\377\\177\\000\\000\\300\\325\\303\\367\\377\\177\\000\\000\\234`[\\000\\000\\000\\000\\000\\260\\335\\377\\377\\377\\177\\000\\000$m\\254\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000G\\000\\000\\000H\\000\\000\\000M\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000dside use\\000\\323G\\366TPf)\\002\\000\\000\\000\\000\\000\\000\\000\\220\\335\\377\\377\\377\\177\\000\\000\\300\\325\\303\\367\\377\\177\\000\\000\\3113[\\000\\000\\000\\000\\000P\\336\\377\\377\\377\\177\\000\\000$m\\254\\367\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\177\\000\\000g\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000g\\333\\377\\377\\377\\177\\000\\000\\260\\330\\377\\377\\377\\17795\\000\\323G\\366TPf)P\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\027\\000\\000\\000\\000\\000\\000\\000\\260\\330\\377\\377\\377\\177\\000\\000@\\333\\377\\377\\377\\177\\000\\0000\\332\\377\\377\\377\\177\\000\\000P\\333\\377\\377\\377\\177\\000\\000\\232\\277\\255\\367\\377\\177\\000\\000\\000 \\304\\367\\377\\177\\000\\000\\240\\331\\377\\377\\377\\177\\000\\000\\001\\200\\255\\373\\000\\000\\000\\000P\\333\\377\\377\\377\\177\\000\\000P\\333\\377\\377\\377\\177\\000\\000P\\333\\377\\377\\377\\177\\000\\000\\360\\333\\377\\377\\377\\177\\000\\000\\a\\334\\377\\377\\377\\177\\000\\000g\\333\\377\\377\\377\\177\\000\\000\\a\\334\\377\\377\\377\\177\\000\\000P\\331\\377\\377\\377\\17795\\000\\323G\\366TPf)\\360\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\027\\000\\000\\000\\000\\000\\000\\000P\\331\\377\\377\\377\\177\\000\\000\\340\\333\\377\\377\\377\\177\\000\\000\\320\\332\\377\\377\\377\\177\\000\\000\\360\\333\\377\\377\\377\\177\\000\\000\\232\\277\\255\\367\\377\\177\\000\\000\\300\\325\\303\\367\\377\\177\\000\\000@\\332\\377\\377\\377\\177\\000\\000\\001\\200\\255\\373\\377\\377\\377\\377\\360\\333\\377\\377\\377\\177\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\227\\334\\377\\377\\377\\177\\000\\000\\360\\333\\377\\377\\377\\177\\000\\000\\227\\334\\377\\377\\377\\177\\000\\000\\340\\331\\377\\377\\377\\17795\\000\\323G\\366TPf)\\200\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\027\\000\\000\\000\\000\\000\\000\\000\\340\\331\\377\\377\\377\\177\\000\\000p\\334\\377\\377\\377\\177\\000\\000`\\333\\377\\377\\377\\177\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\232\\277\\255\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\320\\332\\377\\377\\377\\177\\000\\000\\001\\200\\255\\373\\000\\000\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\202\\334\\377\\377\\377\\177\\000\\000\\227\\334\\377\\377\\377\\177\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\227\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000H7b\\000\\200\\000\\000\\000\\240\\332\\377\\377\\377\\177\\000\\000\\000\\000i\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\0000\\000\\000\\000\\000\\000\\000\\0000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000,\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\177\\000\\000\\360\\333\\377\\377\\377\\177\\000\\000X\\335\\377\\377\\377\\177\\000\\000\\240\\221\\303\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\n\\204\\256\\367\\377\\177\\000\\000\\020\\302\\a\\001\\000\\000\\000\\000\\340\\313\\303\\367\\377\\177\\000\\000\\a\\000\\000\\000\\000\\000\\000\\000\\016\\242\\005\\001\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000c\\000\\000\\000\\377\\177\\000\\000\\b\\250\\005\\001\\000\\000\\000\\0000\\020\\000\\000\\000\\000\\000\\000@\\000\\000\\000\\000\\000\\000\\000\\001\\001\\000\\000p\\000\\000\\000\\b\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000|\\000\\000\\000w\\000\\000\\000o\\000\\000\\000c\\000\\000\\000p\\334\\377\\377\\377\\177\\000\\000\\030\\000\\000\\000\\000\\000\\000\\000\\377\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\200\\313\\303\\367\\377\\177\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377 \\302\\a\\001\\000\\000\\000\\000 \\322\\a\\001\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\240Q\\a\\001\\000\\000\\000\\000\\035\\035\\255\\367\\377\\177\\000\\000\\000\\375\\000\\000\\000\\000\\000\\000q\\002T\\006\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\244\\201\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\b\\000\\000\\000\\000\\000\\000\\000\\203\\023@f\\000\\000\\000\\000h\\315\\323\\t\\000\\000\\000\\000\\203\\023@f\\000\\000\\000\\000\\177rq\\a\\000\\000\\000\\000\\203\\023@f\\000\\000\\000\\000\\177rq\\a\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\"", "Block_Size": 8, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "void nxt_cdecl\nnxt_log_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...)\n{\n u_char *p, *end;\n#if 0\n u_char *syslogmsg;\n#endif\n va_list args;\n u_char msg[NXT_MAX_ERROR_STR];\n\n p = msg;\n end = msg + NXT_MAX_ERROR_STR;\n\n if (nxt_log_prefix != NULL) {\n p = nxt_cpystrn(p, nxt_log_prefix, end - p);\n *p++ = ':';\n *p++ = ' ';\n }\n\n#if 0\n syslogmsg = p;\n#endif\n\n p = nxt_sprintf(p, end, (log->ident != 0) ? \"[%V] *%D \" : \"[%V] \",\n &nxt_log_levels[level], log->ident);\n\n va_start(args, fmt);\n p = nxt_vsprintf(p, end, fmt, args);\n va_end(args);\n\n if (level != NXT_LOG_DEBUG && log->ctx_handler != NULL) {\n p = log->ctx_handler(log->ctx, p, end);\n }\n\n if (p > end - nxt_length(\"\\n\")) {\n p = end - nxt_length(\"\\n\");\n }\n\n *p++ = '\\n';\n\n (void) nxt_write_console(nxt_stderr, msg, p - msg);\n\n#if 0\n if (level == NXT_LOG_ALERT) {\n *(p - nxt_length(\"\\n\")) = '\\0';\n\n \n nxt_write_syslog(LOG_ALERT, syslogmsg);\n }\n#endif\n}", "Selected Statement": "p = nxt_cpystrn(p, nxt_log_prefix, end - p);", "Function Input": {}, "Variable Values Before Statement": {"p": "0x7fffffffd445 \"\"", "nxt_log_prefix": "0x5e195d \"tests\""}, "Value After Statement Execution": "0x7fffffffd445 \"\"", "Function Name": "nxt_cpystrn", "Block_Size": 12, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "void nxt_cdecl\nnxt_log_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...)\n{\n u_char *p, *end;\n#if 0\n u_char *syslogmsg;\n#endif\n va_list args;\n u_char msg[NXT_MAX_ERROR_STR];\n\n p = msg;\n end = msg + NXT_MAX_ERROR_STR;\n\n if (nxt_log_prefix != NULL) {\n p = nxt_cpystrn(p, nxt_log_prefix, end - p);\n *p++ = ':';\n *p++ = ' ';\n }\n\n#if 0\n syslogmsg = p;\n#endif\n\n p = nxt_sprintf(p, end, (log->ident != 0) ? \"[%V] *%D \" : \"[%V] \",\n &nxt_log_levels[level], log->ident);\n\n va_start(args, fmt);\n p = nxt_vsprintf(p, end, fmt, args);\n va_end(args);\n\n if (level != NXT_LOG_DEBUG && log->ctx_handler != NULL) {\n p = log->ctx_handler(log->ctx, p, end);\n }\n\n if (p > end - nxt_length(\"\\n\")) {\n p = end - nxt_length(\"\\n\");\n }\n\n *p++ = '\\n';\n\n (void) nxt_write_console(nxt_stderr, msg, p - msg);\n\n#if 0\n if (level == NXT_LOG_ALERT) {\n *(p - nxt_length(\"\\n\")) = '\\0';\n\n \n nxt_write_syslog(LOG_ALERT, syslogmsg);\n }\n#endif\n}", "Selected Statement": "p = nxt_vsprintf(p, end, fmt, args);", "Function Input": {}, "Variable Values Before Statement": {"p": "0x7fffffffd463 \"\\367\"", "end": "0x7fffffffdc40 \"(\"", "fmt": "0x5e19ab \"malloc(%uz): %p\"", "args": "NULL"}, "Value After Statement Execution": "0x7fffffffd463 \"\\367\"", "Function Name": "nxt_vsprintf", "Block_Size": 25, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "void\nnxt_rbtree_init(nxt_rbtree_t *tree, nxt_rbtree_compare_t compare)\n{\n \n\n \n tree->sentinel.left = &tree->sentinel;\n\n \n tree->sentinel.right = (void *) compare;\n\n \n tree->sentinel.color = NXT_RBTREE_BLACK;\n}", "Selected Statement": "tree->sentinel.color = NXT_RBTREE_BLACK;", "Function Input": {"compare": {"value": "0x1074ed0"}, "tree": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xa8\n", "message": "Cannot access memory at address 0xa8"}}}, "Variable Values Before Statement": {"NXT_RBTREE_BLACK": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 20, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_lib_start(const char *app, char **argv, char ***envp)\n{\n int n;\n nxt_int_t flags;\n nxt_bool_t update;\n nxt_thread_t *thread;\n\n flags = nxt_stderr_start();\n\n nxt_log_start(app);\n\n nxt_pid = getpid();\n nxt_ppid = getppid();\n nxt_euid = geteuid();\n nxt_egid = getegid();\n\n#if (NXT_DEBUG)\n\n nxt_main_log.level = NXT_LOG_DEBUG;\n\n#if (NXT_HAVE_MALLOPT)\n \n mallopt(M_PERTURB, 0x55);\n#endif\n\n#if (NXT_MACOSX)\n \n setenv(\"MallocScribble\", \"1\", 0);\n#endif\n\n#endif \n\n \n\n nxt_thread_init_data(nxt_thread_context);\n thread = nxt_thread();\n thread->log = &nxt_main_log;\n\n thread->handle = nxt_thread_handle();\n thread->time.signal = -1;\n nxt_thread_time_update(thread);\n\n nxt_main_task.thread = thread;\n nxt_main_task.log = thread->log;\n nxt_main_task.ident = nxt_task_next_ident();\n\n if (nxt_strerror_start() != NXT_OK) {\n return NXT_ERROR;\n }\n\n if (flags != -1) {\n nxt_debug(&nxt_main_task, \"stderr flags: 0x%04Xd\", flags);\n }\n\n#ifdef _SC_NPROCESSORS_ONLN\n \n n = sysconf(_SC_NPROCESSORS_ONLN);\n\n#elif (NXT_HPUX)\n n = mpctl(MPC_GETNUMSPUS, NULL, NULL);\n\n#else\n n = 0;\n\n#endif\n\n nxt_debug(&nxt_main_task, \"ncpu: %d\", n);\n\n if (n > 1) {\n nxt_ncpu = n;\n }\n\n nxt_thread_spin_init(nxt_ncpu, 0);\n\n nxt_random_init(&thread->random);\n\n nxt_pagesize = getpagesize();\n\n nxt_debug(&nxt_main_task, \"pagesize: %ui\", nxt_pagesize);\n\n if (argv != NULL) {\n update = (argv[0] == app);\n\n nxt_process_arguments(&nxt_main_task, argv, envp);\n\n if (update) {\n nxt_log_start(nxt_process_argv[0]);\n }\n }\n\n return NXT_OK;\n}", "Selected Statement": "nxt_pid = getpid();", "Function Input": {"app": {"value": "0x622e00 \"\\260.b\""}, "argv": {"value": {"type_category": "string", "concrete_type": "string", "value": "0x8c48348707e8b49 "}}, "envp": {"value": null}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "getpid", "Block_Size": 10, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_lib_start(const char *app, char **argv, char ***envp)\n{\n int n;\n nxt_int_t flags;\n nxt_bool_t update;\n nxt_thread_t *thread;\n\n flags = nxt_stderr_start();\n\n nxt_log_start(app);\n\n nxt_pid = getpid();\n nxt_ppid = getppid();\n nxt_euid = geteuid();\n nxt_egid = getegid();\n\n#if (NXT_DEBUG)\n\n nxt_main_log.level = NXT_LOG_DEBUG;\n\n#if (NXT_HAVE_MALLOPT)\n \n mallopt(M_PERTURB, 0x55);\n#endif\n\n#if (NXT_MACOSX)\n \n setenv(\"MallocScribble\", \"1\", 0);\n#endif\n\n#endif \n\n \n\n nxt_thread_init_data(nxt_thread_context);\n thread = nxt_thread();\n thread->log = &nxt_main_log;\n\n thread->handle = nxt_thread_handle();\n thread->time.signal = -1;\n nxt_thread_time_update(thread);\n\n nxt_main_task.thread = thread;\n nxt_main_task.log = thread->log;\n nxt_main_task.ident = nxt_task_next_ident();\n\n if (nxt_strerror_start() != NXT_OK) {\n return NXT_ERROR;\n }\n\n if (flags != -1) {\n nxt_debug(&nxt_main_task, \"stderr flags: 0x%04Xd\", flags);\n }\n\n#ifdef _SC_NPROCESSORS_ONLN\n \n n = sysconf(_SC_NPROCESSORS_ONLN);\n\n#elif (NXT_HPUX)\n n = mpctl(MPC_GETNUMSPUS, NULL, NULL);\n\n#else\n n = 0;\n\n#endif\n\n nxt_debug(&nxt_main_task, \"ncpu: %d\", n);\n\n if (n > 1) {\n nxt_ncpu = n;\n }\n\n nxt_thread_spin_init(nxt_ncpu, 0);\n\n nxt_random_init(&thread->random);\n\n nxt_pagesize = getpagesize();\n\n nxt_debug(&nxt_main_task, \"pagesize: %ui\", nxt_pagesize);\n\n if (argv != NULL) {\n update = (argv[0] == app);\n\n nxt_process_arguments(&nxt_main_task, argv, envp);\n\n if (update) {\n nxt_log_start(nxt_process_argv[0]);\n }\n }\n\n return NXT_OK;\n}", "Selected Statement": "nxt_ppid = getppid();", "Function Input": {"app": {"value": "0x622e00 \"\\260.b\""}, "argv": {"value": {"type_category": "string", "concrete_type": "string", "value": "0x8c48348707e8b49 "}}, "envp": {"value": null}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "getppid", "Block_Size": 11, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_lib_start(const char *app, char **argv, char ***envp)\n{\n int n;\n nxt_int_t flags;\n nxt_bool_t update;\n nxt_thread_t *thread;\n\n flags = nxt_stderr_start();\n\n nxt_log_start(app);\n\n nxt_pid = getpid();\n nxt_ppid = getppid();\n nxt_euid = geteuid();\n nxt_egid = getegid();\n\n#if (NXT_DEBUG)\n\n nxt_main_log.level = NXT_LOG_DEBUG;\n\n#if (NXT_HAVE_MALLOPT)\n \n mallopt(M_PERTURB, 0x55);\n#endif\n\n#if (NXT_MACOSX)\n \n setenv(\"MallocScribble\", \"1\", 0);\n#endif\n\n#endif \n\n \n\n nxt_thread_init_data(nxt_thread_context);\n thread = nxt_thread();\n thread->log = &nxt_main_log;\n\n thread->handle = nxt_thread_handle();\n thread->time.signal = -1;\n nxt_thread_time_update(thread);\n\n nxt_main_task.thread = thread;\n nxt_main_task.log = thread->log;\n nxt_main_task.ident = nxt_task_next_ident();\n\n if (nxt_strerror_start() != NXT_OK) {\n return NXT_ERROR;\n }\n\n if (flags != -1) {\n nxt_debug(&nxt_main_task, \"stderr flags: 0x%04Xd\", flags);\n }\n\n#ifdef _SC_NPROCESSORS_ONLN\n \n n = sysconf(_SC_NPROCESSORS_ONLN);\n\n#elif (NXT_HPUX)\n n = mpctl(MPC_GETNUMSPUS, NULL, NULL);\n\n#else\n n = 0;\n\n#endif\n\n nxt_debug(&nxt_main_task, \"ncpu: %d\", n);\n\n if (n > 1) {\n nxt_ncpu = n;\n }\n\n nxt_thread_spin_init(nxt_ncpu, 0);\n\n nxt_random_init(&thread->random);\n\n nxt_pagesize = getpagesize();\n\n nxt_debug(&nxt_main_task, \"pagesize: %ui\", nxt_pagesize);\n\n if (argv != NULL) {\n update = (argv[0] == app);\n\n nxt_process_arguments(&nxt_main_task, argv, envp);\n\n if (update) {\n nxt_log_start(nxt_process_argv[0]);\n }\n }\n\n return NXT_OK;\n}", "Selected Statement": "nxt_euid = geteuid();", "Function Input": {"app": {"value": "0x622e00 \"\\260.b\""}, "argv": {"value": {"type_category": "string", "concrete_type": "string", "value": "0x8c48348707e8b49 "}}, "envp": {"value": null}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "geteuid", "Block_Size": 12, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_lib_start(const char *app, char **argv, char ***envp)\n{\n int n;\n nxt_int_t flags;\n nxt_bool_t update;\n nxt_thread_t *thread;\n\n flags = nxt_stderr_start();\n\n nxt_log_start(app);\n\n nxt_pid = getpid();\n nxt_ppid = getppid();\n nxt_euid = geteuid();\n nxt_egid = getegid();\n\n#if (NXT_DEBUG)\n\n nxt_main_log.level = NXT_LOG_DEBUG;\n\n#if (NXT_HAVE_MALLOPT)\n \n mallopt(M_PERTURB, 0x55);\n#endif\n\n#if (NXT_MACOSX)\n \n setenv(\"MallocScribble\", \"1\", 0);\n#endif\n\n#endif \n\n \n\n nxt_thread_init_data(nxt_thread_context);\n thread = nxt_thread();\n thread->log = &nxt_main_log;\n\n thread->handle = nxt_thread_handle();\n thread->time.signal = -1;\n nxt_thread_time_update(thread);\n\n nxt_main_task.thread = thread;\n nxt_main_task.log = thread->log;\n nxt_main_task.ident = nxt_task_next_ident();\n\n if (nxt_strerror_start() != NXT_OK) {\n return NXT_ERROR;\n }\n\n if (flags != -1) {\n nxt_debug(&nxt_main_task, \"stderr flags: 0x%04Xd\", flags);\n }\n\n#ifdef _SC_NPROCESSORS_ONLN\n \n n = sysconf(_SC_NPROCESSORS_ONLN);\n\n#elif (NXT_HPUX)\n n = mpctl(MPC_GETNUMSPUS, NULL, NULL);\n\n#else\n n = 0;\n\n#endif\n\n nxt_debug(&nxt_main_task, \"ncpu: %d\", n);\n\n if (n > 1) {\n nxt_ncpu = n;\n }\n\n nxt_thread_spin_init(nxt_ncpu, 0);\n\n nxt_random_init(&thread->random);\n\n nxt_pagesize = getpagesize();\n\n nxt_debug(&nxt_main_task, \"pagesize: %ui\", nxt_pagesize);\n\n if (argv != NULL) {\n update = (argv[0] == app);\n\n nxt_process_arguments(&nxt_main_task, argv, envp);\n\n if (update) {\n nxt_log_start(nxt_process_argv[0]);\n }\n }\n\n return NXT_OK;\n}", "Selected Statement": "thread = nxt_thread();", "Function Input": {"app": {"value": "0x622e00 \"\\260.b\""}, "argv": {"value": {"type_category": "string", "concrete_type": "string", "value": "0x8c48348707e8b49 "}}, "envp": {"value": null}}, "Variable Values Before Statement": {}, "Value After Statement Execution": {"log": null, "main_log": null, "task": null, "tid": "0", "handle": "0", "link": null, "thread_pool": null, "time": null, "runtime": null, "engine": null, "data": null, "random": null}, "Function Name": "nxt_thread", "Block_Size": 34, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_lib_start(const char *app, char **argv, char ***envp)\n{\n int n;\n nxt_int_t flags;\n nxt_bool_t update;\n nxt_thread_t *thread;\n\n flags = nxt_stderr_start();\n\n nxt_log_start(app);\n\n nxt_pid = getpid();\n nxt_ppid = getppid();\n nxt_euid = geteuid();\n nxt_egid = getegid();\n\n#if (NXT_DEBUG)\n\n nxt_main_log.level = NXT_LOG_DEBUG;\n\n#if (NXT_HAVE_MALLOPT)\n \n mallopt(M_PERTURB, 0x55);\n#endif\n\n#if (NXT_MACOSX)\n \n setenv(\"MallocScribble\", \"1\", 0);\n#endif\n\n#endif \n\n \n\n nxt_thread_init_data(nxt_thread_context);\n thread = nxt_thread();\n thread->log = &nxt_main_log;\n\n thread->handle = nxt_thread_handle();\n thread->time.signal = -1;\n nxt_thread_time_update(thread);\n\n nxt_main_task.thread = thread;\n nxt_main_task.log = thread->log;\n nxt_main_task.ident = nxt_task_next_ident();\n\n if (nxt_strerror_start() != NXT_OK) {\n return NXT_ERROR;\n }\n\n if (flags != -1) {\n nxt_debug(&nxt_main_task, \"stderr flags: 0x%04Xd\", flags);\n }\n\n#ifdef _SC_NPROCESSORS_ONLN\n \n n = sysconf(_SC_NPROCESSORS_ONLN);\n\n#elif (NXT_HPUX)\n n = mpctl(MPC_GETNUMSPUS, NULL, NULL);\n\n#else\n n = 0;\n\n#endif\n\n nxt_debug(&nxt_main_task, \"ncpu: %d\", n);\n\n if (n > 1) {\n nxt_ncpu = n;\n }\n\n nxt_thread_spin_init(nxt_ncpu, 0);\n\n nxt_random_init(&thread->random);\n\n nxt_pagesize = getpagesize();\n\n nxt_debug(&nxt_main_task, \"pagesize: %ui\", nxt_pagesize);\n\n if (argv != NULL) {\n update = (argv[0] == app);\n\n nxt_process_arguments(&nxt_main_task, argv, envp);\n\n if (update) {\n nxt_log_start(nxt_process_argv[0]);\n }\n }\n\n return NXT_OK;\n}", "Selected Statement": "thread->handle = nxt_thread_handle();", "Function Input": {"app": {"value": "0x622e00 \"\\260.b\""}, "argv": {"value": {"type_category": "string", "concrete_type": "string", "value": "0x8c48348707e8b49 "}}, "envp": {"value": null}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "140737348164032", "Function Name": "nxt_thread_handle", "Block_Size": 37, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_lib_start(const char *app, char **argv, char ***envp)\n{\n int n;\n nxt_int_t flags;\n nxt_bool_t update;\n nxt_thread_t *thread;\n\n flags = nxt_stderr_start();\n\n nxt_log_start(app);\n\n nxt_pid = getpid();\n nxt_ppid = getppid();\n nxt_euid = geteuid();\n nxt_egid = getegid();\n\n#if (NXT_DEBUG)\n\n nxt_main_log.level = NXT_LOG_DEBUG;\n\n#if (NXT_HAVE_MALLOPT)\n \n mallopt(M_PERTURB, 0x55);\n#endif\n\n#if (NXT_MACOSX)\n \n setenv(\"MallocScribble\", \"1\", 0);\n#endif\n\n#endif \n\n \n\n nxt_thread_init_data(nxt_thread_context);\n thread = nxt_thread();\n thread->log = &nxt_main_log;\n\n thread->handle = nxt_thread_handle();\n thread->time.signal = -1;\n nxt_thread_time_update(thread);\n\n nxt_main_task.thread = thread;\n nxt_main_task.log = thread->log;\n nxt_main_task.ident = nxt_task_next_ident();\n\n if (nxt_strerror_start() != NXT_OK) {\n return NXT_ERROR;\n }\n\n if (flags != -1) {\n nxt_debug(&nxt_main_task, \"stderr flags: 0x%04Xd\", flags);\n }\n\n#ifdef _SC_NPROCESSORS_ONLN\n \n n = sysconf(_SC_NPROCESSORS_ONLN);\n\n#elif (NXT_HPUX)\n n = mpctl(MPC_GETNUMSPUS, NULL, NULL);\n\n#else\n n = 0;\n\n#endif\n\n nxt_debug(&nxt_main_task, \"ncpu: %d\", n);\n\n if (n > 1) {\n nxt_ncpu = n;\n }\n\n nxt_thread_spin_init(nxt_ncpu, 0);\n\n nxt_random_init(&thread->random);\n\n nxt_pagesize = getpagesize();\n\n nxt_debug(&nxt_main_task, \"pagesize: %ui\", nxt_pagesize);\n\n if (argv != NULL) {\n update = (argv[0] == app);\n\n nxt_process_arguments(&nxt_main_task, argv, envp);\n\n if (update) {\n nxt_log_start(nxt_process_argv[0]);\n }\n }\n\n return NXT_OK;\n}", "Selected Statement": "thread->time.signal = -1;", "Function Input": {"app": {"value": "0x622e00 \"\\260.b\""}, "argv": {"value": {"type_category": "string", "concrete_type": "string", "value": "0x8c48348707e8b49 "}}, "envp": {"value": null}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 38, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_lib_start(const char *app, char **argv, char ***envp)\n{\n int n;\n nxt_int_t flags;\n nxt_bool_t update;\n nxt_thread_t *thread;\n\n flags = nxt_stderr_start();\n\n nxt_log_start(app);\n\n nxt_pid = getpid();\n nxt_ppid = getppid();\n nxt_euid = geteuid();\n nxt_egid = getegid();\n\n#if (NXT_DEBUG)\n\n nxt_main_log.level = NXT_LOG_DEBUG;\n\n#if (NXT_HAVE_MALLOPT)\n \n mallopt(M_PERTURB, 0x55);\n#endif\n\n#if (NXT_MACOSX)\n \n setenv(\"MallocScribble\", \"1\", 0);\n#endif\n\n#endif \n\n \n\n nxt_thread_init_data(nxt_thread_context);\n thread = nxt_thread();\n thread->log = &nxt_main_log;\n\n thread->handle = nxt_thread_handle();\n thread->time.signal = -1;\n nxt_thread_time_update(thread);\n\n nxt_main_task.thread = thread;\n nxt_main_task.log = thread->log;\n nxt_main_task.ident = nxt_task_next_ident();\n\n if (nxt_strerror_start() != NXT_OK) {\n return NXT_ERROR;\n }\n\n if (flags != -1) {\n nxt_debug(&nxt_main_task, \"stderr flags: 0x%04Xd\", flags);\n }\n\n#ifdef _SC_NPROCESSORS_ONLN\n \n n = sysconf(_SC_NPROCESSORS_ONLN);\n\n#elif (NXT_HPUX)\n n = mpctl(MPC_GETNUMSPUS, NULL, NULL);\n\n#else\n n = 0;\n\n#endif\n\n nxt_debug(&nxt_main_task, \"ncpu: %d\", n);\n\n if (n > 1) {\n nxt_ncpu = n;\n }\n\n nxt_thread_spin_init(nxt_ncpu, 0);\n\n nxt_random_init(&thread->random);\n\n nxt_pagesize = getpagesize();\n\n nxt_debug(&nxt_main_task, \"pagesize: %ui\", nxt_pagesize);\n\n if (argv != NULL) {\n update = (argv[0] == app);\n\n nxt_process_arguments(&nxt_main_task, argv, envp);\n\n if (update) {\n nxt_log_start(nxt_process_argv[0]);\n }\n }\n\n return NXT_OK;\n}", "Selected Statement": "nxt_main_task.thread = thread;", "Function Input": {"app": {"value": "0x622e00 \"\\260.b\""}, "argv": {"value": {"type_category": "string", "concrete_type": "string", "value": "0x8c48348707e8b49 "}}, "envp": {"value": null}}, "Variable Values Before Statement": {"thread": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 41, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "void\nnxt_monotonic_time(nxt_monotonic_time_t *now)\n{\n nxt_nsec_t current;\n nxt_nsec_int_t delta;\n struct timeval tv;\n\n (void) gettimeofday(&tv, NULL);\n\n now->realtime.sec = (nxt_time_t) tv.tv_sec;\n now->realtime.nsec = tv.tv_usec * 1000;\n\n \n\n current = (nxt_nsec_t) tv.tv_sec * 1000000000 + tv.tv_usec * 1000;\n delta = current - now->previous;\n now->previous = current;\n\n if (delta > 0) {\n now->monotonic += delta;\n\n } else {\n \n now->monotonic++;\n }\n\n \n now->update = now->monotonic + 1;\n}", "Selected Statement": "now->monotonic = (nxt_nsec_t) ts.tv_sec * 1000000000 + ts.tv_nsec;", "Function Input": {"now": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"realtime": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"sec": {"type_category": "unknown", "concrete_type": "nxt_time_t", "value": "17259380"}, "nsec": {"type_category": "unknown", "concrete_type": "nxt_uint_t", "value": "0"}}}, "monotonic": {"type_category": "unknown", "concrete_type": "nxt_nsec_t", "value": "0"}, "update": {"type_category": "unknown", "concrete_type": "nxt_nsec_t", "value": "33"}}}}}, "Variable Values Before Statement": {"ts": {"tv_sec": "36258", "tv_nsec": "128765920"}}, "Value After Statement Execution": "NULL", "Block_Size": 5, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_strerror_start(void)\n{\n char *msg;\n u_char *p;\n size_t size, length, n;\n nxt_uint_t err, invalid;\n\n \n size = nxt_length(\"Unknown error\");\n\n \n\n for (invalid = 0; invalid < 100 && nxt_sys_nerr < 65536; nxt_sys_nerr++) {\n\n nxt_set_errno(0);\n msg = strerror((int) nxt_sys_nerr);\n\n \n\n if (msg == NULL) {\n invalid++;\n continue;\n }\n\n length = nxt_strlen(msg);\n size += length;\n\n if (length == 0 \n || nxt_errno == NXT_EINVAL\n || memcmp(msg, \"Unknown error\", 13) == 0)\n {\n invalid++;\n continue;\n }\n\n#if (NXT_AIX)\n\n if (memcmp(msg, \"Error \", 6) == 0\n && memcmp(msg + length - 10, \" occurred.\", 9) == 0)\n {\n invalid++;\n continue;\n }\n\n#endif\n }\n\n nxt_sys_nerr -= invalid;\n\n nxt_main_log_debug(\"sys_nerr: %d\", nxt_sys_nerr);\n\n n = (nxt_sys_nerr + 1) * sizeof(nxt_str_t);\n\n nxt_sys_errlist = nxt_malloc(n + size);\n if (nxt_sys_errlist == NULL) {\n return NXT_ERROR;\n }\n\n p = nxt_pointer_to(nxt_sys_errlist, n);\n\n for (err = 0; err < nxt_sys_nerr; err++) {\n msg = strerror((int) err);\n length = nxt_strlen(msg);\n\n nxt_sys_errlist[err].length = length;\n nxt_sys_errlist[err].start = p;\n\n p = nxt_cpymem(p, msg, length);\n }\n\n nxt_sys_errlist[err].length = 13;\n nxt_sys_errlist[err].start = p;\n nxt_memcpy(p, \"Unknown error\", 13);\n\n nxt_strerror = nxt_runtime_strerror;\n\n return NXT_OK;\n}", "Selected Statement": "length = nxt_strlen(msg);", "Function Input": {}, "Variable Values Before Statement": {"msg": "0x106d410 \"Unknown error 231\""}, "Value After Statement Execution": "17", "Function Name": "nxt_strlen", "Block_Size": 39, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_strerror_start(void)\n{\n char *msg;\n u_char *p;\n size_t size, length, n;\n nxt_uint_t err, invalid;\n\n \n size = nxt_length(\"Unknown error\");\n\n \n\n for (invalid = 0; invalid < 100 && nxt_sys_nerr < 65536; nxt_sys_nerr++) {\n\n nxt_set_errno(0);\n msg = strerror((int) nxt_sys_nerr);\n\n \n\n if (msg == NULL) {\n invalid++;\n continue;\n }\n\n length = nxt_strlen(msg);\n size += length;\n\n if (length == 0 \n || nxt_errno == NXT_EINVAL\n || memcmp(msg, \"Unknown error\", 13) == 0)\n {\n invalid++;\n continue;\n }\n\n#if (NXT_AIX)\n\n if (memcmp(msg, \"Error \", 6) == 0\n && memcmp(msg + length - 10, \" occurred.\", 9) == 0)\n {\n invalid++;\n continue;\n }\n\n#endif\n }\n\n nxt_sys_nerr -= invalid;\n\n nxt_main_log_debug(\"sys_nerr: %d\", nxt_sys_nerr);\n\n n = (nxt_sys_nerr + 1) * sizeof(nxt_str_t);\n\n nxt_sys_errlist = nxt_malloc(n + size);\n if (nxt_sys_errlist == NULL) {\n return NXT_ERROR;\n }\n\n p = nxt_pointer_to(nxt_sys_errlist, n);\n\n for (err = 0; err < nxt_sys_nerr; err++) {\n msg = strerror((int) err);\n length = nxt_strlen(msg);\n\n nxt_sys_errlist[err].length = length;\n nxt_sys_errlist[err].start = p;\n\n p = nxt_cpymem(p, msg, length);\n }\n\n nxt_sys_errlist[err].length = 13;\n nxt_sys_errlist[err].start = p;\n nxt_memcpy(p, \"Unknown error\", 13);\n\n nxt_strerror = nxt_runtime_strerror;\n\n return NXT_OK;\n}", "Selected Statement": "nxt_sys_errlist = nxt_malloc(n + size);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": {"length": "12297829382473034410", "start": "0xaaaaaaaaaaaaaaaa "}, "Function Name": "nxt_malloc", "Block_Size": 68, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_strerror_start(void)\n{\n char *msg;\n u_char *p;\n size_t size, length, n;\n nxt_uint_t err, invalid;\n\n \n size = nxt_length(\"Unknown error\");\n\n \n\n for (invalid = 0; invalid < 100 && nxt_sys_nerr < 65536; nxt_sys_nerr++) {\n\n nxt_set_errno(0);\n msg = strerror((int) nxt_sys_nerr);\n\n \n\n if (msg == NULL) {\n invalid++;\n continue;\n }\n\n length = nxt_strlen(msg);\n size += length;\n\n if (length == 0 \n || nxt_errno == NXT_EINVAL\n || memcmp(msg, \"Unknown error\", 13) == 0)\n {\n invalid++;\n continue;\n }\n\n#if (NXT_AIX)\n\n if (memcmp(msg, \"Error \", 6) == 0\n && memcmp(msg + length - 10, \" occurred.\", 9) == 0)\n {\n invalid++;\n continue;\n }\n\n#endif\n }\n\n nxt_sys_nerr -= invalid;\n\n nxt_main_log_debug(\"sys_nerr: %d\", nxt_sys_nerr);\n\n n = (nxt_sys_nerr + 1) * sizeof(nxt_str_t);\n\n nxt_sys_errlist = nxt_malloc(n + size);\n if (nxt_sys_errlist == NULL) {\n return NXT_ERROR;\n }\n\n p = nxt_pointer_to(nxt_sys_errlist, n);\n\n for (err = 0; err < nxt_sys_nerr; err++) {\n msg = strerror((int) err);\n length = nxt_strlen(msg);\n\n nxt_sys_errlist[err].length = length;\n nxt_sys_errlist[err].start = p;\n\n p = nxt_cpymem(p, msg, length);\n }\n\n nxt_sys_errlist[err].length = 13;\n nxt_sys_errlist[err].start = p;\n nxt_memcpy(p, \"Unknown error\", 13);\n\n nxt_strerror = nxt_runtime_strerror;\n\n return NXT_OK;\n}", "Selected Statement": "for (err = 0; err < nxt_sys_nerr; err++) {", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 75, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_strerror_start(void)\n{\n char *msg;\n u_char *p;\n size_t size, length, n;\n nxt_uint_t err, invalid;\n\n \n size = nxt_length(\"Unknown error\");\n\n \n\n for (invalid = 0; invalid < 100 && nxt_sys_nerr < 65536; nxt_sys_nerr++) {\n\n nxt_set_errno(0);\n msg = strerror((int) nxt_sys_nerr);\n\n \n\n if (msg == NULL) {\n invalid++;\n continue;\n }\n\n length = nxt_strlen(msg);\n size += length;\n\n if (length == 0 \n || nxt_errno == NXT_EINVAL\n || memcmp(msg, \"Unknown error\", 13) == 0)\n {\n invalid++;\n continue;\n }\n\n#if (NXT_AIX)\n\n if (memcmp(msg, \"Error \", 6) == 0\n && memcmp(msg + length - 10, \" occurred.\", 9) == 0)\n {\n invalid++;\n continue;\n }\n\n#endif\n }\n\n nxt_sys_nerr -= invalid;\n\n nxt_main_log_debug(\"sys_nerr: %d\", nxt_sys_nerr);\n\n n = (nxt_sys_nerr + 1) * sizeof(nxt_str_t);\n\n nxt_sys_errlist = nxt_malloc(n + size);\n if (nxt_sys_errlist == NULL) {\n return NXT_ERROR;\n }\n\n p = nxt_pointer_to(nxt_sys_errlist, n);\n\n for (err = 0; err < nxt_sys_nerr; err++) {\n msg = strerror((int) err);\n length = nxt_strlen(msg);\n\n nxt_sys_errlist[err].length = length;\n nxt_sys_errlist[err].start = p;\n\n p = nxt_cpymem(p, msg, length);\n }\n\n nxt_sys_errlist[err].length = 13;\n nxt_sys_errlist[err].start = p;\n nxt_memcpy(p, \"Unknown error\", 13);\n\n nxt_strerror = nxt_runtime_strerror;\n\n return NXT_OK;\n}", "Selected Statement": "msg = strerror((int) err);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "0x7ffff7c050a3 \"State not recoverable\"", "Function Name": "strerror", "Block_Size": 76, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_strerror_start(void)\n{\n char *msg;\n u_char *p;\n size_t size, length, n;\n nxt_uint_t err, invalid;\n\n \n size = nxt_length(\"Unknown error\");\n\n \n\n for (invalid = 0; invalid < 100 && nxt_sys_nerr < 65536; nxt_sys_nerr++) {\n\n nxt_set_errno(0);\n msg = strerror((int) nxt_sys_nerr);\n\n \n\n if (msg == NULL) {\n invalid++;\n continue;\n }\n\n length = nxt_strlen(msg);\n size += length;\n\n if (length == 0 \n || nxt_errno == NXT_EINVAL\n || memcmp(msg, \"Unknown error\", 13) == 0)\n {\n invalid++;\n continue;\n }\n\n#if (NXT_AIX)\n\n if (memcmp(msg, \"Error \", 6) == 0\n && memcmp(msg + length - 10, \" occurred.\", 9) == 0)\n {\n invalid++;\n continue;\n }\n\n#endif\n }\n\n nxt_sys_nerr -= invalid;\n\n nxt_main_log_debug(\"sys_nerr: %d\", nxt_sys_nerr);\n\n n = (nxt_sys_nerr + 1) * sizeof(nxt_str_t);\n\n nxt_sys_errlist = nxt_malloc(n + size);\n if (nxt_sys_errlist == NULL) {\n return NXT_ERROR;\n }\n\n p = nxt_pointer_to(nxt_sys_errlist, n);\n\n for (err = 0; err < nxt_sys_nerr; err++) {\n msg = strerror((int) err);\n length = nxt_strlen(msg);\n\n nxt_sys_errlist[err].length = length;\n nxt_sys_errlist[err].start = p;\n\n p = nxt_cpymem(p, msg, length);\n }\n\n nxt_sys_errlist[err].length = 13;\n nxt_sys_errlist[err].start = p;\n nxt_memcpy(p, \"Unknown error\", 13);\n\n nxt_strerror = nxt_runtime_strerror;\n\n return NXT_OK;\n}", "Selected Statement": "nxt_sys_errlist[err].length = length;", "Function Input": {}, "Variable Values Before Statement": {"length": "21"}, "Value After Statement Execution": "21", "Block_Size": 79, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_strerror_start(void)\n{\n char *msg;\n u_char *p;\n size_t size, length, n;\n nxt_uint_t err, invalid;\n\n \n size = nxt_length(\"Unknown error\");\n\n \n\n for (invalid = 0; invalid < 100 && nxt_sys_nerr < 65536; nxt_sys_nerr++) {\n\n nxt_set_errno(0);\n msg = strerror((int) nxt_sys_nerr);\n\n \n\n if (msg == NULL) {\n invalid++;\n continue;\n }\n\n length = nxt_strlen(msg);\n size += length;\n\n if (length == 0 \n || nxt_errno == NXT_EINVAL\n || memcmp(msg, \"Unknown error\", 13) == 0)\n {\n invalid++;\n continue;\n }\n\n#if (NXT_AIX)\n\n if (memcmp(msg, \"Error \", 6) == 0\n && memcmp(msg + length - 10, \" occurred.\", 9) == 0)\n {\n invalid++;\n continue;\n }\n\n#endif\n }\n\n nxt_sys_nerr -= invalid;\n\n nxt_main_log_debug(\"sys_nerr: %d\", nxt_sys_nerr);\n\n n = (nxt_sys_nerr + 1) * sizeof(nxt_str_t);\n\n nxt_sys_errlist = nxt_malloc(n + size);\n if (nxt_sys_errlist == NULL) {\n return NXT_ERROR;\n }\n\n p = nxt_pointer_to(nxt_sys_errlist, n);\n\n for (err = 0; err < nxt_sys_nerr; err++) {\n msg = strerror((int) err);\n length = nxt_strlen(msg);\n\n nxt_sys_errlist[err].length = length;\n nxt_sys_errlist[err].start = p;\n\n p = nxt_cpymem(p, msg, length);\n }\n\n nxt_sys_errlist[err].length = 13;\n nxt_sys_errlist[err].start = p;\n nxt_memcpy(p, \"Unknown error\", 13);\n\n nxt_strerror = nxt_runtime_strerror;\n\n return NXT_OK;\n}", "Selected Statement": "nxt_sys_errlist[err].length = 13;", "Function Input": {}, "Variable Values Before Statement": {"constant": "13"}, "Value After Statement Execution": "13", "Block_Size": 85, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "nxt_int_t\nnxt_strerror_start(void)\n{\n char *msg;\n u_char *p;\n size_t size, length, n;\n nxt_uint_t err, invalid;\n\n \n size = nxt_length(\"Unknown error\");\n\n \n\n for (invalid = 0; invalid < 100 && nxt_sys_nerr < 65536; nxt_sys_nerr++) {\n\n nxt_set_errno(0);\n msg = strerror((int) nxt_sys_nerr);\n\n \n\n if (msg == NULL) {\n invalid++;\n continue;\n }\n\n length = nxt_strlen(msg);\n size += length;\n\n if (length == 0 \n || nxt_errno == NXT_EINVAL\n || memcmp(msg, \"Unknown error\", 13) == 0)\n {\n invalid++;\n continue;\n }\n\n#if (NXT_AIX)\n\n if (memcmp(msg, \"Error \", 6) == 0\n && memcmp(msg + length - 10, \" occurred.\", 9) == 0)\n {\n invalid++;\n continue;\n }\n\n#endif\n }\n\n nxt_sys_nerr -= invalid;\n\n nxt_main_log_debug(\"sys_nerr: %d\", nxt_sys_nerr);\n\n n = (nxt_sys_nerr + 1) * sizeof(nxt_str_t);\n\n nxt_sys_errlist = nxt_malloc(n + size);\n if (nxt_sys_errlist == NULL) {\n return NXT_ERROR;\n }\n\n p = nxt_pointer_to(nxt_sys_errlist, n);\n\n for (err = 0; err < nxt_sys_nerr; err++) {\n msg = strerror((int) err);\n length = nxt_strlen(msg);\n\n nxt_sys_errlist[err].length = length;\n nxt_sys_errlist[err].start = p;\n\n p = nxt_cpymem(p, msg, length);\n }\n\n nxt_sys_errlist[err].length = 13;\n nxt_sys_errlist[err].start = p;\n nxt_memcpy(p, \"Unknown error\", 13);\n\n nxt_strerror = nxt_runtime_strerror;\n\n return NXT_OK;\n}", "Selected Statement": "nxt_sys_errlist[err].start = p;", "Function Input": {}, "Variable Values Before Statement": {"p": "\"\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\25269f7\\261\\037\\002\""}, "Value After Statement Execution": "\"\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\252\\25269f7\\261\\037\\002\"", "Block_Size": 86, "Project Information": "unit"} +{"Programming Language": "C", "Source Code": "void roaring_bitmap_add_many(roaring_bitmap_t *r, size_t n_args,\n const uint32_t *vals) {\n uint32_t val;\n const uint32_t *start = vals;\n const uint32_t *end = vals + n_args;\n const uint32_t *current_val = start;\n\n if (n_args == 0) {\n return;\n }\n\n uint8_t typecode;\n int idx;\n container_t *container;\n val = *current_val;\n container = containerptr_roaring_bitmap_add(r, val, &typecode, &idx);\n roaring_bulk_context_t context = {container, idx, (uint16_t)(val >> 16),\n typecode};\n\n for (; current_val != end; current_val++) {\n memcpy(&val, current_val, sizeof(val));\n add_bulk_impl(r, &context, val);\n }\n}", "Selected Statement": "container = containerptr_roaring_bitmap_add(r, val, &typecode, &idx);", "Function Input": {}, "Variable Values Before Statement": {"r": "NULL", "val": ""}, "Value After Statement Execution": "NULL", "Function Name": "containerptr_roaring_bitmap_add", "Block_Size": 14, "Project Information": "croaring"} +{"Programming Language": "C", "Source Code": "void\ncolour_palette_init(struct colour_palette *p)\n{\n\tp->fg = 8;\n\tp->bg = 8;\n\tp->palette = NULL;\n\tp->default_palette = NULL;\n}", "Selected Statement": "p->fg = 8;", "Function Input": {}, "Variable Values Before Statement": {"constant": "8"}, "Value After Statement Execution": "8", "Block_Size": 1, "Project Information": "tmux"} +{"Programming Language": "C", "Source Code": "void\ncolour_palette_init(struct colour_palette *p)\n{\n\tp->fg = 8;\n\tp->bg = 8;\n\tp->palette = NULL;\n\tp->default_palette = NULL;\n}", "Selected Statement": "p->bg = 8;", "Function Input": {}, "Variable Values Before Statement": {"constant": "8"}, "Value After Statement Execution": "8", "Block_Size": 2, "Project Information": "tmux"} +{"Programming Language": "C", "Source Code": "void\nscreen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)\n{\n\ts->grid = grid_create(sx, sy, hlimit);\n\ts->saved_grid = NULL;\n\n\ts->title = xstrdup(\"\");\n\ts->titles = NULL;\n\ts->path = NULL;\n\n\ts->cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->default_cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->mode = MODE_CURSOR;\n\ts->default_mode = 0;\n\ts->ccolour = -1;\n\ts->default_ccolour = -1;\n\ts->tabs = NULL;\n\ts->sel = NULL;\n\n#ifdef ENABLE_SIXEL\n\tTAILQ_INIT(&s->images);\n#endif\n\n\ts->write_list = NULL;\n\ts->hyperlinks = NULL;\n\n\tscreen_reinit(s);\n}", "Selected Statement": "s->grid = grid_create(sx, sy, hlimit);", "Function Input": {"s": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"title": {"type_category": "string", "concrete_type": "string", "value": "0x800000008 "}, "path": {"type_category": "string", "concrete_type": "NULL"}, "titles": {"type_category": "pointer", "concrete_type": "NULL"}, "grid": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x26ebb10", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffff\n", "message": "Cannot access memory at address 0xffffffff"}}, "cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "default_cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "rupper": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "rlower": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "saved_cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_grid": {"type_category": "pointer", "concrete_type": "NULL"}, "saved_cell": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "string", "concrete_type": "string", "value": "\"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\""}, "have": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "size": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "width": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}}}, "attr": {"type_category": "unknown", "concrete_type": "u_short", "value": "0"}, "flags": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "fg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "bg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "us": {"type_category": "int", "concrete_type": "int", "value": "0"}, "link": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}}}, "saved_flags": {"type_category": "int", "concrete_type": "int", "value": "0"}, "tabs": {"type_category": "string", "concrete_type": "NULL"}, "sel": {"type_category": "pointer", "concrete_type": "NULL"}, "write_list": {"type_category": "pointer", "concrete_type": "NULL"}, "hyperlinks": {"type_category": "pointer", "concrete_type": "NULL"}}}}}, "Variable Values Before Statement": {"sx": "u_int", "sy": "u_int", "hlimit": "u_int"}, "Value After Statement Execution": "NULL", "Function Name": "grid_create", "Block_Size": 1, "Project Information": "tmux"} +{"Programming Language": "C", "Source Code": "void\nscreen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)\n{\n\ts->grid = grid_create(sx, sy, hlimit);\n\ts->saved_grid = NULL;\n\n\ts->title = xstrdup(\"\");\n\ts->titles = NULL;\n\ts->path = NULL;\n\n\ts->cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->default_cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->mode = MODE_CURSOR;\n\ts->default_mode = 0;\n\ts->ccolour = -1;\n\ts->default_ccolour = -1;\n\ts->tabs = NULL;\n\ts->sel = NULL;\n\n#ifdef ENABLE_SIXEL\n\tTAILQ_INIT(&s->images);\n#endif\n\n\ts->write_list = NULL;\n\ts->hyperlinks = NULL;\n\n\tscreen_reinit(s);\n}", "Selected Statement": "s->title = xstrdup(\"\");", "Function Input": {"s": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"title": {"type_category": "string", "concrete_type": "string", "value": "0x800000008 "}, "path": {"type_category": "string", "concrete_type": "NULL"}, "titles": {"type_category": "pointer", "concrete_type": "NULL"}, "grid": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x26ebb10", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffff\n", "message": "Cannot access memory at address 0xffffffff"}}, "cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "default_cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "rupper": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "rlower": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "saved_cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_grid": {"type_category": "pointer", "concrete_type": "NULL"}, "saved_cell": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "string", "concrete_type": "string", "value": "\"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\""}, "have": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "size": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "width": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}}}, "attr": {"type_category": "unknown", "concrete_type": "u_short", "value": "0"}, "flags": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "fg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "bg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "us": {"type_category": "int", "concrete_type": "int", "value": "0"}, "link": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}}}, "saved_flags": {"type_category": "int", "concrete_type": "int", "value": "0"}, "tabs": {"type_category": "string", "concrete_type": "NULL"}, "sel": {"type_category": "pointer", "concrete_type": "NULL"}, "write_list": {"type_category": "pointer", "concrete_type": "NULL"}, "hyperlinks": {"type_category": "pointer", "concrete_type": "NULL"}}}}}, "Variable Values Before Statement": {"\"\"": "\"\""}, "Value After Statement Execution": "0x1cbc950 \"\"", "Function Name": "xstrdup", "Block_Size": 4, "Project Information": "tmux"} +{"Programming Language": "C", "Source Code": "void\nscreen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)\n{\n\ts->grid = grid_create(sx, sy, hlimit);\n\ts->saved_grid = NULL;\n\n\ts->title = xstrdup(\"\");\n\ts->titles = NULL;\n\ts->path = NULL;\n\n\ts->cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->default_cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->mode = MODE_CURSOR;\n\ts->default_mode = 0;\n\ts->ccolour = -1;\n\ts->default_ccolour = -1;\n\ts->tabs = NULL;\n\ts->sel = NULL;\n\n#ifdef ENABLE_SIXEL\n\tTAILQ_INIT(&s->images);\n#endif\n\n\ts->write_list = NULL;\n\ts->hyperlinks = NULL;\n\n\tscreen_reinit(s);\n}", "Selected Statement": "s->cstyle = SCREEN_CURSOR_DEFAULT;", "Function Input": {"s": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"title": {"type_category": "string", "concrete_type": "string", "value": "0x800000008 "}, "path": {"type_category": "string", "concrete_type": "NULL"}, "titles": {"type_category": "pointer", "concrete_type": "NULL"}, "grid": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x26ebb10", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffff\n", "message": "Cannot access memory at address 0xffffffff"}}, "cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "default_cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "rupper": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "rlower": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "saved_cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_grid": {"type_category": "pointer", "concrete_type": "NULL"}, "saved_cell": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "string", "concrete_type": "string", "value": "\"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\""}, "have": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "size": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "width": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}}}, "attr": {"type_category": "unknown", "concrete_type": "u_short", "value": "0"}, "flags": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "fg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "bg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "us": {"type_category": "int", "concrete_type": "int", "value": "0"}, "link": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}}}, "saved_flags": {"type_category": "int", "concrete_type": "int", "value": "0"}, "tabs": {"type_category": "string", "concrete_type": "NULL"}, "sel": {"type_category": "pointer", "concrete_type": "NULL"}, "write_list": {"type_category": "pointer", "concrete_type": "NULL"}, "hyperlinks": {"type_category": "pointer", "concrete_type": "NULL"}}}}}, "Variable Values Before Statement": {"SCREEN_CURSOR_DEFAULT": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 8, "Project Information": "tmux"} +{"Programming Language": "C", "Source Code": "void\nscreen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)\n{\n\ts->grid = grid_create(sx, sy, hlimit);\n\ts->saved_grid = NULL;\n\n\ts->title = xstrdup(\"\");\n\ts->titles = NULL;\n\ts->path = NULL;\n\n\ts->cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->default_cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->mode = MODE_CURSOR;\n\ts->default_mode = 0;\n\ts->ccolour = -1;\n\ts->default_ccolour = -1;\n\ts->tabs = NULL;\n\ts->sel = NULL;\n\n#ifdef ENABLE_SIXEL\n\tTAILQ_INIT(&s->images);\n#endif\n\n\ts->write_list = NULL;\n\ts->hyperlinks = NULL;\n\n\tscreen_reinit(s);\n}", "Selected Statement": "s->default_cstyle = SCREEN_CURSOR_DEFAULT;", "Function Input": {"s": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"title": {"type_category": "string", "concrete_type": "string", "value": "0x800000008 "}, "path": {"type_category": "string", "concrete_type": "NULL"}, "titles": {"type_category": "pointer", "concrete_type": "NULL"}, "grid": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x26ebb10", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffff\n", "message": "Cannot access memory at address 0xffffffff"}}, "cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "default_cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "rupper": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "rlower": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "saved_cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_grid": {"type_category": "pointer", "concrete_type": "NULL"}, "saved_cell": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "string", "concrete_type": "string", "value": "\"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\""}, "have": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "size": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "width": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}}}, "attr": {"type_category": "unknown", "concrete_type": "u_short", "value": "0"}, "flags": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "fg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "bg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "us": {"type_category": "int", "concrete_type": "int", "value": "0"}, "link": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}}}, "saved_flags": {"type_category": "int", "concrete_type": "int", "value": "0"}, "tabs": {"type_category": "string", "concrete_type": "NULL"}, "sel": {"type_category": "pointer", "concrete_type": "NULL"}, "write_list": {"type_category": "pointer", "concrete_type": "NULL"}, "hyperlinks": {"type_category": "pointer", "concrete_type": "NULL"}}}}}, "Variable Values Before Statement": {"SCREEN_CURSOR_DEFAULT": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 9, "Project Information": "tmux"} +{"Programming Language": "C", "Source Code": "void\nscreen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)\n{\n\ts->grid = grid_create(sx, sy, hlimit);\n\ts->saved_grid = NULL;\n\n\ts->title = xstrdup(\"\");\n\ts->titles = NULL;\n\ts->path = NULL;\n\n\ts->cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->default_cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->mode = MODE_CURSOR;\n\ts->default_mode = 0;\n\ts->ccolour = -1;\n\ts->default_ccolour = -1;\n\ts->tabs = NULL;\n\ts->sel = NULL;\n\n#ifdef ENABLE_SIXEL\n\tTAILQ_INIT(&s->images);\n#endif\n\n\ts->write_list = NULL;\n\ts->hyperlinks = NULL;\n\n\tscreen_reinit(s);\n}", "Selected Statement": "s->mode = MODE_CURSOR;", "Function Input": {"s": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"title": {"type_category": "string", "concrete_type": "string", "value": "0x800000008 "}, "path": {"type_category": "string", "concrete_type": "NULL"}, "titles": {"type_category": "pointer", "concrete_type": "NULL"}, "grid": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x26ebb10", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffff\n", "message": "Cannot access memory at address 0xffffffff"}}, "cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "default_cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "rupper": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "rlower": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "saved_cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_grid": {"type_category": "pointer", "concrete_type": "NULL"}, "saved_cell": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "string", "concrete_type": "string", "value": "\"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\""}, "have": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "size": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "width": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}}}, "attr": {"type_category": "unknown", "concrete_type": "u_short", "value": "0"}, "flags": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "fg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "bg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "us": {"type_category": "int", "concrete_type": "int", "value": "0"}, "link": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}}}, "saved_flags": {"type_category": "int", "concrete_type": "int", "value": "0"}, "tabs": {"type_category": "string", "concrete_type": "NULL"}, "sel": {"type_category": "pointer", "concrete_type": "NULL"}, "write_list": {"type_category": "pointer", "concrete_type": "NULL"}, "hyperlinks": {"type_category": "pointer", "concrete_type": "NULL"}}}}}, "Variable Values Before Statement": {"MODE_CURSOR": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 10, "Project Information": "tmux"} +{"Programming Language": "C", "Source Code": "void\nscreen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)\n{\n\ts->grid = grid_create(sx, sy, hlimit);\n\ts->saved_grid = NULL;\n\n\ts->title = xstrdup(\"\");\n\ts->titles = NULL;\n\ts->path = NULL;\n\n\ts->cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->default_cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->mode = MODE_CURSOR;\n\ts->default_mode = 0;\n\ts->ccolour = -1;\n\ts->default_ccolour = -1;\n\ts->tabs = NULL;\n\ts->sel = NULL;\n\n#ifdef ENABLE_SIXEL\n\tTAILQ_INIT(&s->images);\n#endif\n\n\ts->write_list = NULL;\n\ts->hyperlinks = NULL;\n\n\tscreen_reinit(s);\n}", "Selected Statement": "s->default_mode = 0;", "Function Input": {"s": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"title": {"type_category": "string", "concrete_type": "string", "value": "0x800000008 "}, "path": {"type_category": "string", "concrete_type": "NULL"}, "titles": {"type_category": "pointer", "concrete_type": "NULL"}, "grid": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x26ebb10", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffff\n", "message": "Cannot access memory at address 0xffffffff"}}, "cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "default_cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "rupper": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "rlower": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "saved_cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_grid": {"type_category": "pointer", "concrete_type": "NULL"}, "saved_cell": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "string", "concrete_type": "string", "value": "\"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\""}, "have": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "size": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "width": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}}}, "attr": {"type_category": "unknown", "concrete_type": "u_short", "value": "0"}, "flags": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "fg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "bg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "us": {"type_category": "int", "concrete_type": "int", "value": "0"}, "link": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}}}, "saved_flags": {"type_category": "int", "concrete_type": "int", "value": "0"}, "tabs": {"type_category": "string", "concrete_type": "NULL"}, "sel": {"type_category": "pointer", "concrete_type": "NULL"}, "write_list": {"type_category": "pointer", "concrete_type": "NULL"}, "hyperlinks": {"type_category": "pointer", "concrete_type": "NULL"}}}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 11, "Project Information": "tmux"} +{"Programming Language": "C", "Source Code": "void\nscreen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)\n{\n\ts->grid = grid_create(sx, sy, hlimit);\n\ts->saved_grid = NULL;\n\n\ts->title = xstrdup(\"\");\n\ts->titles = NULL;\n\ts->path = NULL;\n\n\ts->cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->default_cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->mode = MODE_CURSOR;\n\ts->default_mode = 0;\n\ts->ccolour = -1;\n\ts->default_ccolour = -1;\n\ts->tabs = NULL;\n\ts->sel = NULL;\n\n#ifdef ENABLE_SIXEL\n\tTAILQ_INIT(&s->images);\n#endif\n\n\ts->write_list = NULL;\n\ts->hyperlinks = NULL;\n\n\tscreen_reinit(s);\n}", "Selected Statement": "s->ccolour = -1;", "Function Input": {"s": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"title": {"type_category": "string", "concrete_type": "string", "value": "0x800000008 "}, "path": {"type_category": "string", "concrete_type": "NULL"}, "titles": {"type_category": "pointer", "concrete_type": "NULL"}, "grid": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x26ebb10", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffff\n", "message": "Cannot access memory at address 0xffffffff"}}, "cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "default_cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "rupper": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "rlower": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "saved_cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_grid": {"type_category": "pointer", "concrete_type": "NULL"}, "saved_cell": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "string", "concrete_type": "string", "value": "\"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\""}, "have": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "size": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "width": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}}}, "attr": {"type_category": "unknown", "concrete_type": "u_short", "value": "0"}, "flags": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "fg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "bg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "us": {"type_category": "int", "concrete_type": "int", "value": "0"}, "link": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}}}, "saved_flags": {"type_category": "int", "concrete_type": "int", "value": "0"}, "tabs": {"type_category": "string", "concrete_type": "NULL"}, "sel": {"type_category": "pointer", "concrete_type": "NULL"}, "write_list": {"type_category": "pointer", "concrete_type": "NULL"}, "hyperlinks": {"type_category": "pointer", "concrete_type": "NULL"}}}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 12, "Project Information": "tmux"} +{"Programming Language": "C", "Source Code": "void\nscreen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)\n{\n\ts->grid = grid_create(sx, sy, hlimit);\n\ts->saved_grid = NULL;\n\n\ts->title = xstrdup(\"\");\n\ts->titles = NULL;\n\ts->path = NULL;\n\n\ts->cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->default_cstyle = SCREEN_CURSOR_DEFAULT;\n\ts->mode = MODE_CURSOR;\n\ts->default_mode = 0;\n\ts->ccolour = -1;\n\ts->default_ccolour = -1;\n\ts->tabs = NULL;\n\ts->sel = NULL;\n\n#ifdef ENABLE_SIXEL\n\tTAILQ_INIT(&s->images);\n#endif\n\n\ts->write_list = NULL;\n\ts->hyperlinks = NULL;\n\n\tscreen_reinit(s);\n}", "Selected Statement": "s->default_ccolour = -1;", "Function Input": {"s": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"title": {"type_category": "string", "concrete_type": "string", "value": "0x800000008 "}, "path": {"type_category": "string", "concrete_type": "NULL"}, "titles": {"type_category": "pointer", "concrete_type": "NULL"}, "grid": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x26ebb10", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffff\n", "message": "Cannot access memory at address 0xffffffff"}}, "cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "default_cstyle": {"type_category": "unknown", "concrete_type": "screen_cursor_style", "value": "SCREEN_CURSOR_DEFAULT"}, "ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_ccolour": {"type_category": "int", "concrete_type": "int", "value": "0"}, "rupper": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "rlower": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "default_mode": {"type_category": "int", "concrete_type": "int", "value": "0"}, "saved_cx": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_cy": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}, "saved_grid": {"type_category": "pointer", "concrete_type": "NULL"}, "saved_cell": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "string", "concrete_type": "string", "value": "\"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\""}, "have": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "size": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "width": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}}}, "attr": {"type_category": "unknown", "concrete_type": "u_short", "value": "0"}, "flags": {"type_category": "unknown", "concrete_type": "u_char", "value": "0 '\\000'"}, "fg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "bg": {"type_category": "int", "concrete_type": "int", "value": "0"}, "us": {"type_category": "int", "concrete_type": "int", "value": "0"}, "link": {"type_category": "unknown", "concrete_type": "u_int", "value": "0"}}}, "saved_flags": {"type_category": "int", "concrete_type": "int", "value": "0"}, "tabs": {"type_category": "string", "concrete_type": "NULL"}, "sel": {"type_category": "pointer", "concrete_type": "NULL"}, "write_list": {"type_category": "pointer", "concrete_type": "NULL"}, "hyperlinks": {"type_category": "pointer", "concrete_type": "NULL"}}}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 13, "Project Information": "tmux"} +{"Programming Language": "C", "Source Code": "int\nutf8_isvalid(const char *s)\n{\n\tstruct utf8_data ud;\n\tconst char\t*end;\n\tenum utf8_state\t more;\n\n\tend = s + strlen(s);\n\twhile (s < end) {\n\t\tif ((more = utf8_open(&ud, *s)) == UTF8_MORE) {\n\t\t\twhile (++s < end && more == UTF8_MORE)\n\t\t\t\tmore = utf8_append(&ud, *s);\n\t\t\tif (more == UTF8_DONE)\n\t\t\t\tcontinue;\n\t\t\treturn (0);\n\t\t}\n\t\tif (*s < 0x20 || *s > 0x7e)\n\t\t\treturn (0);\n\t\ts++;\n\t}\n\treturn (1);\n}", "Selected Statement": "end = s + strlen(s);", "Function Input": {}, "Variable Values Before Statement": {"s": "0x7fffffffdddc \"\"", "strlen": "NULL"}, "Value After Statement Execution": "0x7fffffffdddc \"\"", "Block_Size": 5, "Project Information": "tmux"} +{"Programming Language": "C", "Source Code": "int\nbufferevent_pair_new(struct event_base *base, int options,\n struct bufferevent *pair[2])\n{\n\tstruct bufferevent_pair *bufev1 = NULL, *bufev2 = NULL;\n\tint tmp_options;\n\n\toptions |= BEV_OPT_DEFER_CALLBACKS;\n\ttmp_options = options & ~BEV_OPT_THREADSAFE;\n\n\tbufev1 = bufferevent_pair_elt_new(base, options);\n\tif (!bufev1)\n\t\treturn -1;\n\tbufev2 = bufferevent_pair_elt_new(base, tmp_options);\n\tif (!bufev2) {\n\t\tbufferevent_free(downcast(bufev1));\n\t\treturn -1;\n\t}\n\n\tif (options & BEV_OPT_THREADSAFE) {\n\t\t\n\t\tbufferevent_enable_locking_(downcast(bufev2), bufev1->bev.lock);\n\t}\n\n\tbufev1->partner = bufev2;\n\tbufev2->partner = bufev1;\n\n\tevbuffer_freeze(downcast(bufev1)->input, 0);\n\tevbuffer_freeze(downcast(bufev1)->output, 1);\n\tevbuffer_freeze(downcast(bufev2)->input, 0);\n\tevbuffer_freeze(downcast(bufev2)->output, 1);\n\n\tpair[0] = downcast(bufev1);\n\tpair[1] = downcast(bufev2);\n\n\treturn 0;\n}", "Selected Statement": "options |= BEV_OPT_DEFER_CALLBACKS;", "Function Input": {}, "Variable Values Before Statement": {"BEV_OPT_DEFER_CALLBACKS": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 7, "Project Information": "tmux"} +{"Programming Language": "C", "Source Code": "int stun_is_command_message_str(const uint8_t *buf, size_t blen) {\n if (buf && blen >= STUN_HEADER_LENGTH) {\n if (!STUN_VALID_CHANNEL(nswap16(((const uint16_t *)buf)[0]))) {\n if ((((uint8_t)buf[0]) & ((uint8_t)(0xC0))) == 0) {\n if (nswap32(((const uint32_t *)(buf))[1]) == STUN_MAGIC_COOKIE) {\n uint16_t len = nswap16(((const uint16_t *)(buf))[1]);\n if ((len & 0x0003) == 0) {\n if ((size_t)(len + STUN_HEADER_LENGTH) == blen) {\n return 1;\n }\n }\n }\n }\n }\n }\n return 0;\n}", "Selected Statement": "uint16_t len = nswap16(((const uint16_t *)(buf))[1]);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "64256", "Function Name": "nswap16", "Block_Size": 4, "Project Information": "coturn"} +{"Programming Language": "C", "Source Code": "extern int\nonig_detect_can_be_slow_pattern(const UChar* pattern,\n const UChar* pattern_end, OnigOptionType option, OnigEncoding enc,\n OnigSyntaxType* syntax)\n{\n int r;\n regex_t* reg;\n Node* root;\n ParseEnv scan_env;\n SlowElementCount count;\n int calls[MAX_CALLS_IN_DETECT];\n#ifdef USE_CALL\n UnsetAddrList uslist = {0};\n#endif\n\n reg = (regex_t* )xmalloc(sizeof(regex_t));\n if (IS_NULL(reg)) return ONIGERR_MEMORY;\n\n r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);\n if (r != 0) {\n xfree(reg);\n return r;\n }\n\n r = parse_and_tune(reg, pattern, pattern_end, &scan_env, &root, NULL\n#ifdef USE_CALL\n , &uslist\n#endif\n );\n if (r != 0) goto err;\n\n#ifdef USE_CALL\n if (scan_env.num_call > 0) {\n unset_addr_list_end(&uslist);\n }\n#endif\n\n count.prec_read = 0;\n count.look_behind = 0;\n count.backref = 0;\n count.backref_with_level = 0;\n count.call = 0;\n count.is_keep = FALSE;\n count.anychar_reluctant_many = 0;\n count.empty_check_nest_level = 0;\n count.max_empty_check_nest_level = 0;\n count.heavy_element = 0;\n\n r = detect_can_be_slow(root, &count, 0, calls);\n if (r == 0) {\n int n;\n\n n = count.prec_read + count.look_behind\n + count.backref + count.backref_with_level + count.call\n + count.anychar_reluctant_many;\n\n if (count.is_keep) count.max_empty_check_nest_level++;\n\n if (count.max_empty_check_nest_level > 2)\n n += count.max_empty_check_nest_level - 2;\n if (count.heavy_element != 0) {\n if (count.heavy_element < 0x10000)\n n += count.heavy_element << 8;\n else\n n += count.heavy_element;\n }\n\n r = n;\n\n#ifdef ONIG_DEBUG_PARSE\n fprintf(DBGFP, \"-- detect can be slow --\\n\");\n fprintf(DBGFP, \" prec_read: %d\\n\", count.prec_read);\n fprintf(DBGFP, \" look_behind: %d\\n\", count.look_behind);\n fprintf(DBGFP, \" backref: %d\\n\", count.backref);\n fprintf(DBGFP, \" backref_with_level: %d\\n\", count.backref_with_level);\n fprintf(DBGFP, \" call: %d\\n\", count.call);\n fprintf(DBGFP, \" is_keep: %d\\n\", count.is_keep);\n fprintf(DBGFP, \" any_reluctant_many: %d\\n\", count.anychar_reluctant_many);\n fprintf(DBGFP, \" max_empty_check_nest_level: %d\\n\", count.max_empty_check_nest_level);\n fprintf(DBGFP, \" heavy_element: %d\\n\", count.heavy_element);\n fprintf(DBGFP, \" r: %d\\n\", r);\n fprintf(DBGFP, \"\\n\");\n#endif\n }\n\n if (IS_NOT_NULL(scan_env.mem_env_dynamic))\n xfree(scan_env.mem_env_dynamic);\n\n err:\n onig_node_free(root);\n onig_free(reg);\n return r;\n}", "Selected Statement": "r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);", "Function Input": {"reg": {"value": null}}, "Variable Values Before Statement": {"reg": {"ops": null, "ocs": null, "ops_curr": null, "ops_used": "0", "ops_alloc": "0", "string_pool": null, "string_pool_end": null, "num_mem": "0", "num_repeat": "0", "num_empty_check": "0", "num_call": "0", "capture_history": "0", "push_mem_start": "0", "push_mem_end": "0", "stack_pop_level": "0", "repeat_range_alloc": "0", "repeat_range": null, "enc": "0x656be0 ", "options": "29524", "syntax": null, "case_fold_flag": "1073741824", "name_table": null, "optimize": "0", "threshold_len": "0", "anchor": "0", "anc_dist_min": "0", "anc_dist_max": "0", "sub_anchor": "0", "exact": null, "exact_end": null, "map": "\"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\"", "map_offset": "0", "dist_min": "0", "dist_max": "0", "extp": null}, "option": "OnigOptionType", "ONIGENC_CASE_FOLD_DEFAULT": "NULL", "enc": "OnigEncoding", "syntax": {"op": "92476758", "op2": "0", "behavior": "2155872263", "options": "12", "meta_char_table": null}}, "Value After Statement Execution": "int", "Function Name": "onig_reg_init", "Block_Size": 16, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_detect_can_be_slow_pattern(const UChar* pattern,\n const UChar* pattern_end, OnigOptionType option, OnigEncoding enc,\n OnigSyntaxType* syntax)\n{\n int r;\n regex_t* reg;\n Node* root;\n ParseEnv scan_env;\n SlowElementCount count;\n int calls[MAX_CALLS_IN_DETECT];\n#ifdef USE_CALL\n UnsetAddrList uslist = {0};\n#endif\n\n reg = (regex_t* )xmalloc(sizeof(regex_t));\n if (IS_NULL(reg)) return ONIGERR_MEMORY;\n\n r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);\n if (r != 0) {\n xfree(reg);\n return r;\n }\n\n r = parse_and_tune(reg, pattern, pattern_end, &scan_env, &root, NULL\n#ifdef USE_CALL\n , &uslist\n#endif\n );\n if (r != 0) goto err;\n\n#ifdef USE_CALL\n if (scan_env.num_call > 0) {\n unset_addr_list_end(&uslist);\n }\n#endif\n\n count.prec_read = 0;\n count.look_behind = 0;\n count.backref = 0;\n count.backref_with_level = 0;\n count.call = 0;\n count.is_keep = FALSE;\n count.anychar_reluctant_many = 0;\n count.empty_check_nest_level = 0;\n count.max_empty_check_nest_level = 0;\n count.heavy_element = 0;\n\n r = detect_can_be_slow(root, &count, 0, calls);\n if (r == 0) {\n int n;\n\n n = count.prec_read + count.look_behind\n + count.backref + count.backref_with_level + count.call\n + count.anychar_reluctant_many;\n\n if (count.is_keep) count.max_empty_check_nest_level++;\n\n if (count.max_empty_check_nest_level > 2)\n n += count.max_empty_check_nest_level - 2;\n if (count.heavy_element != 0) {\n if (count.heavy_element < 0x10000)\n n += count.heavy_element << 8;\n else\n n += count.heavy_element;\n }\n\n r = n;\n\n#ifdef ONIG_DEBUG_PARSE\n fprintf(DBGFP, \"-- detect can be slow --\\n\");\n fprintf(DBGFP, \" prec_read: %d\\n\", count.prec_read);\n fprintf(DBGFP, \" look_behind: %d\\n\", count.look_behind);\n fprintf(DBGFP, \" backref: %d\\n\", count.backref);\n fprintf(DBGFP, \" backref_with_level: %d\\n\", count.backref_with_level);\n fprintf(DBGFP, \" call: %d\\n\", count.call);\n fprintf(DBGFP, \" is_keep: %d\\n\", count.is_keep);\n fprintf(DBGFP, \" any_reluctant_many: %d\\n\", count.anychar_reluctant_many);\n fprintf(DBGFP, \" max_empty_check_nest_level: %d\\n\", count.max_empty_check_nest_level);\n fprintf(DBGFP, \" heavy_element: %d\\n\", count.heavy_element);\n fprintf(DBGFP, \" r: %d\\n\", r);\n fprintf(DBGFP, \"\\n\");\n#endif\n }\n\n if (IS_NOT_NULL(scan_env.mem_env_dynamic))\n xfree(scan_env.mem_env_dynamic);\n\n err:\n onig_node_free(root);\n onig_free(reg);\n return r;\n}", "Selected Statement": "count.prec_read = 0;", "Function Input": {"reg": {"value": null}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 35, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_detect_can_be_slow_pattern(const UChar* pattern,\n const UChar* pattern_end, OnigOptionType option, OnigEncoding enc,\n OnigSyntaxType* syntax)\n{\n int r;\n regex_t* reg;\n Node* root;\n ParseEnv scan_env;\n SlowElementCount count;\n int calls[MAX_CALLS_IN_DETECT];\n#ifdef USE_CALL\n UnsetAddrList uslist = {0};\n#endif\n\n reg = (regex_t* )xmalloc(sizeof(regex_t));\n if (IS_NULL(reg)) return ONIGERR_MEMORY;\n\n r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);\n if (r != 0) {\n xfree(reg);\n return r;\n }\n\n r = parse_and_tune(reg, pattern, pattern_end, &scan_env, &root, NULL\n#ifdef USE_CALL\n , &uslist\n#endif\n );\n if (r != 0) goto err;\n\n#ifdef USE_CALL\n if (scan_env.num_call > 0) {\n unset_addr_list_end(&uslist);\n }\n#endif\n\n count.prec_read = 0;\n count.look_behind = 0;\n count.backref = 0;\n count.backref_with_level = 0;\n count.call = 0;\n count.is_keep = FALSE;\n count.anychar_reluctant_many = 0;\n count.empty_check_nest_level = 0;\n count.max_empty_check_nest_level = 0;\n count.heavy_element = 0;\n\n r = detect_can_be_slow(root, &count, 0, calls);\n if (r == 0) {\n int n;\n\n n = count.prec_read + count.look_behind\n + count.backref + count.backref_with_level + count.call\n + count.anychar_reluctant_many;\n\n if (count.is_keep) count.max_empty_check_nest_level++;\n\n if (count.max_empty_check_nest_level > 2)\n n += count.max_empty_check_nest_level - 2;\n if (count.heavy_element != 0) {\n if (count.heavy_element < 0x10000)\n n += count.heavy_element << 8;\n else\n n += count.heavy_element;\n }\n\n r = n;\n\n#ifdef ONIG_DEBUG_PARSE\n fprintf(DBGFP, \"-- detect can be slow --\\n\");\n fprintf(DBGFP, \" prec_read: %d\\n\", count.prec_read);\n fprintf(DBGFP, \" look_behind: %d\\n\", count.look_behind);\n fprintf(DBGFP, \" backref: %d\\n\", count.backref);\n fprintf(DBGFP, \" backref_with_level: %d\\n\", count.backref_with_level);\n fprintf(DBGFP, \" call: %d\\n\", count.call);\n fprintf(DBGFP, \" is_keep: %d\\n\", count.is_keep);\n fprintf(DBGFP, \" any_reluctant_many: %d\\n\", count.anychar_reluctant_many);\n fprintf(DBGFP, \" max_empty_check_nest_level: %d\\n\", count.max_empty_check_nest_level);\n fprintf(DBGFP, \" heavy_element: %d\\n\", count.heavy_element);\n fprintf(DBGFP, \" r: %d\\n\", r);\n fprintf(DBGFP, \"\\n\");\n#endif\n }\n\n if (IS_NOT_NULL(scan_env.mem_env_dynamic))\n xfree(scan_env.mem_env_dynamic);\n\n err:\n onig_node_free(root);\n onig_free(reg);\n return r;\n}", "Selected Statement": "count.look_behind = 0;", "Function Input": {"reg": {"value": null}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 36, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_detect_can_be_slow_pattern(const UChar* pattern,\n const UChar* pattern_end, OnigOptionType option, OnigEncoding enc,\n OnigSyntaxType* syntax)\n{\n int r;\n regex_t* reg;\n Node* root;\n ParseEnv scan_env;\n SlowElementCount count;\n int calls[MAX_CALLS_IN_DETECT];\n#ifdef USE_CALL\n UnsetAddrList uslist = {0};\n#endif\n\n reg = (regex_t* )xmalloc(sizeof(regex_t));\n if (IS_NULL(reg)) return ONIGERR_MEMORY;\n\n r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);\n if (r != 0) {\n xfree(reg);\n return r;\n }\n\n r = parse_and_tune(reg, pattern, pattern_end, &scan_env, &root, NULL\n#ifdef USE_CALL\n , &uslist\n#endif\n );\n if (r != 0) goto err;\n\n#ifdef USE_CALL\n if (scan_env.num_call > 0) {\n unset_addr_list_end(&uslist);\n }\n#endif\n\n count.prec_read = 0;\n count.look_behind = 0;\n count.backref = 0;\n count.backref_with_level = 0;\n count.call = 0;\n count.is_keep = FALSE;\n count.anychar_reluctant_many = 0;\n count.empty_check_nest_level = 0;\n count.max_empty_check_nest_level = 0;\n count.heavy_element = 0;\n\n r = detect_can_be_slow(root, &count, 0, calls);\n if (r == 0) {\n int n;\n\n n = count.prec_read + count.look_behind\n + count.backref + count.backref_with_level + count.call\n + count.anychar_reluctant_many;\n\n if (count.is_keep) count.max_empty_check_nest_level++;\n\n if (count.max_empty_check_nest_level > 2)\n n += count.max_empty_check_nest_level - 2;\n if (count.heavy_element != 0) {\n if (count.heavy_element < 0x10000)\n n += count.heavy_element << 8;\n else\n n += count.heavy_element;\n }\n\n r = n;\n\n#ifdef ONIG_DEBUG_PARSE\n fprintf(DBGFP, \"-- detect can be slow --\\n\");\n fprintf(DBGFP, \" prec_read: %d\\n\", count.prec_read);\n fprintf(DBGFP, \" look_behind: %d\\n\", count.look_behind);\n fprintf(DBGFP, \" backref: %d\\n\", count.backref);\n fprintf(DBGFP, \" backref_with_level: %d\\n\", count.backref_with_level);\n fprintf(DBGFP, \" call: %d\\n\", count.call);\n fprintf(DBGFP, \" is_keep: %d\\n\", count.is_keep);\n fprintf(DBGFP, \" any_reluctant_many: %d\\n\", count.anychar_reluctant_many);\n fprintf(DBGFP, \" max_empty_check_nest_level: %d\\n\", count.max_empty_check_nest_level);\n fprintf(DBGFP, \" heavy_element: %d\\n\", count.heavy_element);\n fprintf(DBGFP, \" r: %d\\n\", r);\n fprintf(DBGFP, \"\\n\");\n#endif\n }\n\n if (IS_NOT_NULL(scan_env.mem_env_dynamic))\n xfree(scan_env.mem_env_dynamic);\n\n err:\n onig_node_free(root);\n onig_free(reg);\n return r;\n}", "Selected Statement": "count.backref = 0;", "Function Input": {"reg": {"value": null}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 37, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_detect_can_be_slow_pattern(const UChar* pattern,\n const UChar* pattern_end, OnigOptionType option, OnigEncoding enc,\n OnigSyntaxType* syntax)\n{\n int r;\n regex_t* reg;\n Node* root;\n ParseEnv scan_env;\n SlowElementCount count;\n int calls[MAX_CALLS_IN_DETECT];\n#ifdef USE_CALL\n UnsetAddrList uslist = {0};\n#endif\n\n reg = (regex_t* )xmalloc(sizeof(regex_t));\n if (IS_NULL(reg)) return ONIGERR_MEMORY;\n\n r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);\n if (r != 0) {\n xfree(reg);\n return r;\n }\n\n r = parse_and_tune(reg, pattern, pattern_end, &scan_env, &root, NULL\n#ifdef USE_CALL\n , &uslist\n#endif\n );\n if (r != 0) goto err;\n\n#ifdef USE_CALL\n if (scan_env.num_call > 0) {\n unset_addr_list_end(&uslist);\n }\n#endif\n\n count.prec_read = 0;\n count.look_behind = 0;\n count.backref = 0;\n count.backref_with_level = 0;\n count.call = 0;\n count.is_keep = FALSE;\n count.anychar_reluctant_many = 0;\n count.empty_check_nest_level = 0;\n count.max_empty_check_nest_level = 0;\n count.heavy_element = 0;\n\n r = detect_can_be_slow(root, &count, 0, calls);\n if (r == 0) {\n int n;\n\n n = count.prec_read + count.look_behind\n + count.backref + count.backref_with_level + count.call\n + count.anychar_reluctant_many;\n\n if (count.is_keep) count.max_empty_check_nest_level++;\n\n if (count.max_empty_check_nest_level > 2)\n n += count.max_empty_check_nest_level - 2;\n if (count.heavy_element != 0) {\n if (count.heavy_element < 0x10000)\n n += count.heavy_element << 8;\n else\n n += count.heavy_element;\n }\n\n r = n;\n\n#ifdef ONIG_DEBUG_PARSE\n fprintf(DBGFP, \"-- detect can be slow --\\n\");\n fprintf(DBGFP, \" prec_read: %d\\n\", count.prec_read);\n fprintf(DBGFP, \" look_behind: %d\\n\", count.look_behind);\n fprintf(DBGFP, \" backref: %d\\n\", count.backref);\n fprintf(DBGFP, \" backref_with_level: %d\\n\", count.backref_with_level);\n fprintf(DBGFP, \" call: %d\\n\", count.call);\n fprintf(DBGFP, \" is_keep: %d\\n\", count.is_keep);\n fprintf(DBGFP, \" any_reluctant_many: %d\\n\", count.anychar_reluctant_many);\n fprintf(DBGFP, \" max_empty_check_nest_level: %d\\n\", count.max_empty_check_nest_level);\n fprintf(DBGFP, \" heavy_element: %d\\n\", count.heavy_element);\n fprintf(DBGFP, \" r: %d\\n\", r);\n fprintf(DBGFP, \"\\n\");\n#endif\n }\n\n if (IS_NOT_NULL(scan_env.mem_env_dynamic))\n xfree(scan_env.mem_env_dynamic);\n\n err:\n onig_node_free(root);\n onig_free(reg);\n return r;\n}", "Selected Statement": "count.backref_with_level = 0;", "Function Input": {"reg": {"value": null}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 38, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_detect_can_be_slow_pattern(const UChar* pattern,\n const UChar* pattern_end, OnigOptionType option, OnigEncoding enc,\n OnigSyntaxType* syntax)\n{\n int r;\n regex_t* reg;\n Node* root;\n ParseEnv scan_env;\n SlowElementCount count;\n int calls[MAX_CALLS_IN_DETECT];\n#ifdef USE_CALL\n UnsetAddrList uslist = {0};\n#endif\n\n reg = (regex_t* )xmalloc(sizeof(regex_t));\n if (IS_NULL(reg)) return ONIGERR_MEMORY;\n\n r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);\n if (r != 0) {\n xfree(reg);\n return r;\n }\n\n r = parse_and_tune(reg, pattern, pattern_end, &scan_env, &root, NULL\n#ifdef USE_CALL\n , &uslist\n#endif\n );\n if (r != 0) goto err;\n\n#ifdef USE_CALL\n if (scan_env.num_call > 0) {\n unset_addr_list_end(&uslist);\n }\n#endif\n\n count.prec_read = 0;\n count.look_behind = 0;\n count.backref = 0;\n count.backref_with_level = 0;\n count.call = 0;\n count.is_keep = FALSE;\n count.anychar_reluctant_many = 0;\n count.empty_check_nest_level = 0;\n count.max_empty_check_nest_level = 0;\n count.heavy_element = 0;\n\n r = detect_can_be_slow(root, &count, 0, calls);\n if (r == 0) {\n int n;\n\n n = count.prec_read + count.look_behind\n + count.backref + count.backref_with_level + count.call\n + count.anychar_reluctant_many;\n\n if (count.is_keep) count.max_empty_check_nest_level++;\n\n if (count.max_empty_check_nest_level > 2)\n n += count.max_empty_check_nest_level - 2;\n if (count.heavy_element != 0) {\n if (count.heavy_element < 0x10000)\n n += count.heavy_element << 8;\n else\n n += count.heavy_element;\n }\n\n r = n;\n\n#ifdef ONIG_DEBUG_PARSE\n fprintf(DBGFP, \"-- detect can be slow --\\n\");\n fprintf(DBGFP, \" prec_read: %d\\n\", count.prec_read);\n fprintf(DBGFP, \" look_behind: %d\\n\", count.look_behind);\n fprintf(DBGFP, \" backref: %d\\n\", count.backref);\n fprintf(DBGFP, \" backref_with_level: %d\\n\", count.backref_with_level);\n fprintf(DBGFP, \" call: %d\\n\", count.call);\n fprintf(DBGFP, \" is_keep: %d\\n\", count.is_keep);\n fprintf(DBGFP, \" any_reluctant_many: %d\\n\", count.anychar_reluctant_many);\n fprintf(DBGFP, \" max_empty_check_nest_level: %d\\n\", count.max_empty_check_nest_level);\n fprintf(DBGFP, \" heavy_element: %d\\n\", count.heavy_element);\n fprintf(DBGFP, \" r: %d\\n\", r);\n fprintf(DBGFP, \"\\n\");\n#endif\n }\n\n if (IS_NOT_NULL(scan_env.mem_env_dynamic))\n xfree(scan_env.mem_env_dynamic);\n\n err:\n onig_node_free(root);\n onig_free(reg);\n return r;\n}", "Selected Statement": "count.call = 0;", "Function Input": {"reg": {"value": null}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 39, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_detect_can_be_slow_pattern(const UChar* pattern,\n const UChar* pattern_end, OnigOptionType option, OnigEncoding enc,\n OnigSyntaxType* syntax)\n{\n int r;\n regex_t* reg;\n Node* root;\n ParseEnv scan_env;\n SlowElementCount count;\n int calls[MAX_CALLS_IN_DETECT];\n#ifdef USE_CALL\n UnsetAddrList uslist = {0};\n#endif\n\n reg = (regex_t* )xmalloc(sizeof(regex_t));\n if (IS_NULL(reg)) return ONIGERR_MEMORY;\n\n r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);\n if (r != 0) {\n xfree(reg);\n return r;\n }\n\n r = parse_and_tune(reg, pattern, pattern_end, &scan_env, &root, NULL\n#ifdef USE_CALL\n , &uslist\n#endif\n );\n if (r != 0) goto err;\n\n#ifdef USE_CALL\n if (scan_env.num_call > 0) {\n unset_addr_list_end(&uslist);\n }\n#endif\n\n count.prec_read = 0;\n count.look_behind = 0;\n count.backref = 0;\n count.backref_with_level = 0;\n count.call = 0;\n count.is_keep = FALSE;\n count.anychar_reluctant_many = 0;\n count.empty_check_nest_level = 0;\n count.max_empty_check_nest_level = 0;\n count.heavy_element = 0;\n\n r = detect_can_be_slow(root, &count, 0, calls);\n if (r == 0) {\n int n;\n\n n = count.prec_read + count.look_behind\n + count.backref + count.backref_with_level + count.call\n + count.anychar_reluctant_many;\n\n if (count.is_keep) count.max_empty_check_nest_level++;\n\n if (count.max_empty_check_nest_level > 2)\n n += count.max_empty_check_nest_level - 2;\n if (count.heavy_element != 0) {\n if (count.heavy_element < 0x10000)\n n += count.heavy_element << 8;\n else\n n += count.heavy_element;\n }\n\n r = n;\n\n#ifdef ONIG_DEBUG_PARSE\n fprintf(DBGFP, \"-- detect can be slow --\\n\");\n fprintf(DBGFP, \" prec_read: %d\\n\", count.prec_read);\n fprintf(DBGFP, \" look_behind: %d\\n\", count.look_behind);\n fprintf(DBGFP, \" backref: %d\\n\", count.backref);\n fprintf(DBGFP, \" backref_with_level: %d\\n\", count.backref_with_level);\n fprintf(DBGFP, \" call: %d\\n\", count.call);\n fprintf(DBGFP, \" is_keep: %d\\n\", count.is_keep);\n fprintf(DBGFP, \" any_reluctant_many: %d\\n\", count.anychar_reluctant_many);\n fprintf(DBGFP, \" max_empty_check_nest_level: %d\\n\", count.max_empty_check_nest_level);\n fprintf(DBGFP, \" heavy_element: %d\\n\", count.heavy_element);\n fprintf(DBGFP, \" r: %d\\n\", r);\n fprintf(DBGFP, \"\\n\");\n#endif\n }\n\n if (IS_NOT_NULL(scan_env.mem_env_dynamic))\n xfree(scan_env.mem_env_dynamic);\n\n err:\n onig_node_free(root);\n onig_free(reg);\n return r;\n}", "Selected Statement": "count.anychar_reluctant_many = 0;", "Function Input": {"reg": {"value": null}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 41, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_detect_can_be_slow_pattern(const UChar* pattern,\n const UChar* pattern_end, OnigOptionType option, OnigEncoding enc,\n OnigSyntaxType* syntax)\n{\n int r;\n regex_t* reg;\n Node* root;\n ParseEnv scan_env;\n SlowElementCount count;\n int calls[MAX_CALLS_IN_DETECT];\n#ifdef USE_CALL\n UnsetAddrList uslist = {0};\n#endif\n\n reg = (regex_t* )xmalloc(sizeof(regex_t));\n if (IS_NULL(reg)) return ONIGERR_MEMORY;\n\n r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);\n if (r != 0) {\n xfree(reg);\n return r;\n }\n\n r = parse_and_tune(reg, pattern, pattern_end, &scan_env, &root, NULL\n#ifdef USE_CALL\n , &uslist\n#endif\n );\n if (r != 0) goto err;\n\n#ifdef USE_CALL\n if (scan_env.num_call > 0) {\n unset_addr_list_end(&uslist);\n }\n#endif\n\n count.prec_read = 0;\n count.look_behind = 0;\n count.backref = 0;\n count.backref_with_level = 0;\n count.call = 0;\n count.is_keep = FALSE;\n count.anychar_reluctant_many = 0;\n count.empty_check_nest_level = 0;\n count.max_empty_check_nest_level = 0;\n count.heavy_element = 0;\n\n r = detect_can_be_slow(root, &count, 0, calls);\n if (r == 0) {\n int n;\n\n n = count.prec_read + count.look_behind\n + count.backref + count.backref_with_level + count.call\n + count.anychar_reluctant_many;\n\n if (count.is_keep) count.max_empty_check_nest_level++;\n\n if (count.max_empty_check_nest_level > 2)\n n += count.max_empty_check_nest_level - 2;\n if (count.heavy_element != 0) {\n if (count.heavy_element < 0x10000)\n n += count.heavy_element << 8;\n else\n n += count.heavy_element;\n }\n\n r = n;\n\n#ifdef ONIG_DEBUG_PARSE\n fprintf(DBGFP, \"-- detect can be slow --\\n\");\n fprintf(DBGFP, \" prec_read: %d\\n\", count.prec_read);\n fprintf(DBGFP, \" look_behind: %d\\n\", count.look_behind);\n fprintf(DBGFP, \" backref: %d\\n\", count.backref);\n fprintf(DBGFP, \" backref_with_level: %d\\n\", count.backref_with_level);\n fprintf(DBGFP, \" call: %d\\n\", count.call);\n fprintf(DBGFP, \" is_keep: %d\\n\", count.is_keep);\n fprintf(DBGFP, \" any_reluctant_many: %d\\n\", count.anychar_reluctant_many);\n fprintf(DBGFP, \" max_empty_check_nest_level: %d\\n\", count.max_empty_check_nest_level);\n fprintf(DBGFP, \" heavy_element: %d\\n\", count.heavy_element);\n fprintf(DBGFP, \" r: %d\\n\", r);\n fprintf(DBGFP, \"\\n\");\n#endif\n }\n\n if (IS_NOT_NULL(scan_env.mem_env_dynamic))\n xfree(scan_env.mem_env_dynamic);\n\n err:\n onig_node_free(root);\n onig_free(reg);\n return r;\n}", "Selected Statement": "count.empty_check_nest_level = 0;", "Function Input": {"reg": {"value": null}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 42, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_detect_can_be_slow_pattern(const UChar* pattern,\n const UChar* pattern_end, OnigOptionType option, OnigEncoding enc,\n OnigSyntaxType* syntax)\n{\n int r;\n regex_t* reg;\n Node* root;\n ParseEnv scan_env;\n SlowElementCount count;\n int calls[MAX_CALLS_IN_DETECT];\n#ifdef USE_CALL\n UnsetAddrList uslist = {0};\n#endif\n\n reg = (regex_t* )xmalloc(sizeof(regex_t));\n if (IS_NULL(reg)) return ONIGERR_MEMORY;\n\n r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);\n if (r != 0) {\n xfree(reg);\n return r;\n }\n\n r = parse_and_tune(reg, pattern, pattern_end, &scan_env, &root, NULL\n#ifdef USE_CALL\n , &uslist\n#endif\n );\n if (r != 0) goto err;\n\n#ifdef USE_CALL\n if (scan_env.num_call > 0) {\n unset_addr_list_end(&uslist);\n }\n#endif\n\n count.prec_read = 0;\n count.look_behind = 0;\n count.backref = 0;\n count.backref_with_level = 0;\n count.call = 0;\n count.is_keep = FALSE;\n count.anychar_reluctant_many = 0;\n count.empty_check_nest_level = 0;\n count.max_empty_check_nest_level = 0;\n count.heavy_element = 0;\n\n r = detect_can_be_slow(root, &count, 0, calls);\n if (r == 0) {\n int n;\n\n n = count.prec_read + count.look_behind\n + count.backref + count.backref_with_level + count.call\n + count.anychar_reluctant_many;\n\n if (count.is_keep) count.max_empty_check_nest_level++;\n\n if (count.max_empty_check_nest_level > 2)\n n += count.max_empty_check_nest_level - 2;\n if (count.heavy_element != 0) {\n if (count.heavy_element < 0x10000)\n n += count.heavy_element << 8;\n else\n n += count.heavy_element;\n }\n\n r = n;\n\n#ifdef ONIG_DEBUG_PARSE\n fprintf(DBGFP, \"-- detect can be slow --\\n\");\n fprintf(DBGFP, \" prec_read: %d\\n\", count.prec_read);\n fprintf(DBGFP, \" look_behind: %d\\n\", count.look_behind);\n fprintf(DBGFP, \" backref: %d\\n\", count.backref);\n fprintf(DBGFP, \" backref_with_level: %d\\n\", count.backref_with_level);\n fprintf(DBGFP, \" call: %d\\n\", count.call);\n fprintf(DBGFP, \" is_keep: %d\\n\", count.is_keep);\n fprintf(DBGFP, \" any_reluctant_many: %d\\n\", count.anychar_reluctant_many);\n fprintf(DBGFP, \" max_empty_check_nest_level: %d\\n\", count.max_empty_check_nest_level);\n fprintf(DBGFP, \" heavy_element: %d\\n\", count.heavy_element);\n fprintf(DBGFP, \" r: %d\\n\", r);\n fprintf(DBGFP, \"\\n\");\n#endif\n }\n\n if (IS_NOT_NULL(scan_env.mem_env_dynamic))\n xfree(scan_env.mem_env_dynamic);\n\n err:\n onig_node_free(root);\n onig_free(reg);\n return r;\n}", "Selected Statement": "count.max_empty_check_nest_level = 0;", "Function Input": {"reg": {"value": null}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 43, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_detect_can_be_slow_pattern(const UChar* pattern,\n const UChar* pattern_end, OnigOptionType option, OnigEncoding enc,\n OnigSyntaxType* syntax)\n{\n int r;\n regex_t* reg;\n Node* root;\n ParseEnv scan_env;\n SlowElementCount count;\n int calls[MAX_CALLS_IN_DETECT];\n#ifdef USE_CALL\n UnsetAddrList uslist = {0};\n#endif\n\n reg = (regex_t* )xmalloc(sizeof(regex_t));\n if (IS_NULL(reg)) return ONIGERR_MEMORY;\n\n r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);\n if (r != 0) {\n xfree(reg);\n return r;\n }\n\n r = parse_and_tune(reg, pattern, pattern_end, &scan_env, &root, NULL\n#ifdef USE_CALL\n , &uslist\n#endif\n );\n if (r != 0) goto err;\n\n#ifdef USE_CALL\n if (scan_env.num_call > 0) {\n unset_addr_list_end(&uslist);\n }\n#endif\n\n count.prec_read = 0;\n count.look_behind = 0;\n count.backref = 0;\n count.backref_with_level = 0;\n count.call = 0;\n count.is_keep = FALSE;\n count.anychar_reluctant_many = 0;\n count.empty_check_nest_level = 0;\n count.max_empty_check_nest_level = 0;\n count.heavy_element = 0;\n\n r = detect_can_be_slow(root, &count, 0, calls);\n if (r == 0) {\n int n;\n\n n = count.prec_read + count.look_behind\n + count.backref + count.backref_with_level + count.call\n + count.anychar_reluctant_many;\n\n if (count.is_keep) count.max_empty_check_nest_level++;\n\n if (count.max_empty_check_nest_level > 2)\n n += count.max_empty_check_nest_level - 2;\n if (count.heavy_element != 0) {\n if (count.heavy_element < 0x10000)\n n += count.heavy_element << 8;\n else\n n += count.heavy_element;\n }\n\n r = n;\n\n#ifdef ONIG_DEBUG_PARSE\n fprintf(DBGFP, \"-- detect can be slow --\\n\");\n fprintf(DBGFP, \" prec_read: %d\\n\", count.prec_read);\n fprintf(DBGFP, \" look_behind: %d\\n\", count.look_behind);\n fprintf(DBGFP, \" backref: %d\\n\", count.backref);\n fprintf(DBGFP, \" backref_with_level: %d\\n\", count.backref_with_level);\n fprintf(DBGFP, \" call: %d\\n\", count.call);\n fprintf(DBGFP, \" is_keep: %d\\n\", count.is_keep);\n fprintf(DBGFP, \" any_reluctant_many: %d\\n\", count.anychar_reluctant_many);\n fprintf(DBGFP, \" max_empty_check_nest_level: %d\\n\", count.max_empty_check_nest_level);\n fprintf(DBGFP, \" heavy_element: %d\\n\", count.heavy_element);\n fprintf(DBGFP, \" r: %d\\n\", r);\n fprintf(DBGFP, \"\\n\");\n#endif\n }\n\n if (IS_NOT_NULL(scan_env.mem_env_dynamic))\n xfree(scan_env.mem_env_dynamic);\n\n err:\n onig_node_free(root);\n onig_free(reg);\n return r;\n}", "Selected Statement": "r = detect_can_be_slow(root, &count, 0, calls);", "Function Input": {"reg": {"value": null}}, "Variable Values Before Statement": {"root": {"u": null}, "0": "0", "calls": "int"}, "Value After Statement Execution": "int", "Function Name": "detect_can_be_slow", "Block_Size": 46, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_detect_can_be_slow_pattern(const UChar* pattern,\n const UChar* pattern_end, OnigOptionType option, OnigEncoding enc,\n OnigSyntaxType* syntax)\n{\n int r;\n regex_t* reg;\n Node* root;\n ParseEnv scan_env;\n SlowElementCount count;\n int calls[MAX_CALLS_IN_DETECT];\n#ifdef USE_CALL\n UnsetAddrList uslist = {0};\n#endif\n\n reg = (regex_t* )xmalloc(sizeof(regex_t));\n if (IS_NULL(reg)) return ONIGERR_MEMORY;\n\n r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);\n if (r != 0) {\n xfree(reg);\n return r;\n }\n\n r = parse_and_tune(reg, pattern, pattern_end, &scan_env, &root, NULL\n#ifdef USE_CALL\n , &uslist\n#endif\n );\n if (r != 0) goto err;\n\n#ifdef USE_CALL\n if (scan_env.num_call > 0) {\n unset_addr_list_end(&uslist);\n }\n#endif\n\n count.prec_read = 0;\n count.look_behind = 0;\n count.backref = 0;\n count.backref_with_level = 0;\n count.call = 0;\n count.is_keep = FALSE;\n count.anychar_reluctant_many = 0;\n count.empty_check_nest_level = 0;\n count.max_empty_check_nest_level = 0;\n count.heavy_element = 0;\n\n r = detect_can_be_slow(root, &count, 0, calls);\n if (r == 0) {\n int n;\n\n n = count.prec_read + count.look_behind\n + count.backref + count.backref_with_level + count.call\n + count.anychar_reluctant_many;\n\n if (count.is_keep) count.max_empty_check_nest_level++;\n\n if (count.max_empty_check_nest_level > 2)\n n += count.max_empty_check_nest_level - 2;\n if (count.heavy_element != 0) {\n if (count.heavy_element < 0x10000)\n n += count.heavy_element << 8;\n else\n n += count.heavy_element;\n }\n\n r = n;\n\n#ifdef ONIG_DEBUG_PARSE\n fprintf(DBGFP, \"-- detect can be slow --\\n\");\n fprintf(DBGFP, \" prec_read: %d\\n\", count.prec_read);\n fprintf(DBGFP, \" look_behind: %d\\n\", count.look_behind);\n fprintf(DBGFP, \" backref: %d\\n\", count.backref);\n fprintf(DBGFP, \" backref_with_level: %d\\n\", count.backref_with_level);\n fprintf(DBGFP, \" call: %d\\n\", count.call);\n fprintf(DBGFP, \" is_keep: %d\\n\", count.is_keep);\n fprintf(DBGFP, \" any_reluctant_many: %d\\n\", count.anychar_reluctant_many);\n fprintf(DBGFP, \" max_empty_check_nest_level: %d\\n\", count.max_empty_check_nest_level);\n fprintf(DBGFP, \" heavy_element: %d\\n\", count.heavy_element);\n fprintf(DBGFP, \" r: %d\\n\", r);\n fprintf(DBGFP, \"\\n\");\n#endif\n }\n\n if (IS_NOT_NULL(scan_env.mem_env_dynamic))\n xfree(scan_env.mem_env_dynamic);\n\n err:\n onig_node_free(root);\n onig_free(reg);\n return r;\n}", "Selected Statement": "n = count.prec_read + count.look_behind", "Function Input": {"reg": {"value": null}}, "Variable Values Before Statement": {"count": {"prec_read": "0", "look_behind": "0", "backref": "0", "backref_with_level": "0", "call": "0", "is_keep": "0", "anychar_reluctant_many": "0", "empty_check_nest_level": "0", "max_empty_check_nest_level": "0", "heavy_element": "0"}}, "Value After Statement Execution": "int", "Block_Size": 50, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_detect_can_be_slow_pattern(const UChar* pattern,\n const UChar* pattern_end, OnigOptionType option, OnigEncoding enc,\n OnigSyntaxType* syntax)\n{\n int r;\n regex_t* reg;\n Node* root;\n ParseEnv scan_env;\n SlowElementCount count;\n int calls[MAX_CALLS_IN_DETECT];\n#ifdef USE_CALL\n UnsetAddrList uslist = {0};\n#endif\n\n reg = (regex_t* )xmalloc(sizeof(regex_t));\n if (IS_NULL(reg)) return ONIGERR_MEMORY;\n\n r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);\n if (r != 0) {\n xfree(reg);\n return r;\n }\n\n r = parse_and_tune(reg, pattern, pattern_end, &scan_env, &root, NULL\n#ifdef USE_CALL\n , &uslist\n#endif\n );\n if (r != 0) goto err;\n\n#ifdef USE_CALL\n if (scan_env.num_call > 0) {\n unset_addr_list_end(&uslist);\n }\n#endif\n\n count.prec_read = 0;\n count.look_behind = 0;\n count.backref = 0;\n count.backref_with_level = 0;\n count.call = 0;\n count.is_keep = FALSE;\n count.anychar_reluctant_many = 0;\n count.empty_check_nest_level = 0;\n count.max_empty_check_nest_level = 0;\n count.heavy_element = 0;\n\n r = detect_can_be_slow(root, &count, 0, calls);\n if (r == 0) {\n int n;\n\n n = count.prec_read + count.look_behind\n + count.backref + count.backref_with_level + count.call\n + count.anychar_reluctant_many;\n\n if (count.is_keep) count.max_empty_check_nest_level++;\n\n if (count.max_empty_check_nest_level > 2)\n n += count.max_empty_check_nest_level - 2;\n if (count.heavy_element != 0) {\n if (count.heavy_element < 0x10000)\n n += count.heavy_element << 8;\n else\n n += count.heavy_element;\n }\n\n r = n;\n\n#ifdef ONIG_DEBUG_PARSE\n fprintf(DBGFP, \"-- detect can be slow --\\n\");\n fprintf(DBGFP, \" prec_read: %d\\n\", count.prec_read);\n fprintf(DBGFP, \" look_behind: %d\\n\", count.look_behind);\n fprintf(DBGFP, \" backref: %d\\n\", count.backref);\n fprintf(DBGFP, \" backref_with_level: %d\\n\", count.backref_with_level);\n fprintf(DBGFP, \" call: %d\\n\", count.call);\n fprintf(DBGFP, \" is_keep: %d\\n\", count.is_keep);\n fprintf(DBGFP, \" any_reluctant_many: %d\\n\", count.anychar_reluctant_many);\n fprintf(DBGFP, \" max_empty_check_nest_level: %d\\n\", count.max_empty_check_nest_level);\n fprintf(DBGFP, \" heavy_element: %d\\n\", count.heavy_element);\n fprintf(DBGFP, \" r: %d\\n\", r);\n fprintf(DBGFP, \"\\n\");\n#endif\n }\n\n if (IS_NOT_NULL(scan_env.mem_env_dynamic))\n xfree(scan_env.mem_env_dynamic);\n\n err:\n onig_node_free(root);\n onig_free(reg);\n return r;\n}", "Selected Statement": "n += count.max_empty_check_nest_level - 2;", "Function Input": {"reg": {"value": null}}, "Variable Values Before Statement": {"count": {"prec_read": "0", "look_behind": "0", "backref": "0", "backref_with_level": "0", "call": "0", "is_keep": "0", "anychar_reluctant_many": "0", "empty_check_nest_level": "0", "max_empty_check_nest_level": "0", "heavy_element": "0"}}, "Value After Statement Execution": "int", "Block_Size": 57, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonigenc_init(void)\n{\n if (OnigEncInited != 0) return 0;\n\n OnigEncInited = 1;\n return 0;\n}", "Selected Statement": "OnigEncInited = 1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 3, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "name = \"FAIL\"; BC0_P(name, fail);", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"FAIL\""}, "Value After Statement Execution": "\"FAIL\"", "Block_Size": 11, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "name = \"MAX\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"MAX\""}, "Value After Statement Execution": "\"MAX\"", "Block_Size": 14, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;", "Function Input": {}, "Variable Values Before Statement": {"ONIG_TYPE_TAG": "NULL", "ONIG_TYPE_LONG": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 15, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "args[1] = ONIG_TYPE_CHAR;", "Function Input": {}, "Variable Values Before Statement": {"ONIG_TYPE_CHAR": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 16, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "name = \"ERROR\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"ERROR\""}, "Value After Statement Execution": "\"ERROR\"", "Block_Size": 20, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;", "Function Input": {}, "Variable Values Before Statement": {"ONIG_ABORT": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 21, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;", "Function Input": {}, "Variable Values Before Statement": {"ONIG_TYPE_LONG": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 21, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "name = \"COUNT\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"COUNT\""}, "Value After Statement Execution": "\"COUNT\"", "Block_Size": 24, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';", "Function Input": {}, "Variable Values Before Statement": {"ONIG_TYPE_CHAR": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 25, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "name = \"TOTAL_COUNT\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"TOTAL_COUNT\""}, "Value After Statement Execution": "\"TOTAL_COUNT\"", "Block_Size": 28, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';", "Function Input": {}, "Variable Values Before Statement": {"ONIG_TYPE_CHAR": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 29, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "name = \"CMP\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"CMP\""}, "Value After Statement Execution": "\"CMP\"", "Block_Size": 32, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;", "Function Input": {}, "Variable Values Before Statement": {"ONIG_TYPE_TAG": "NULL", "ONIG_TYPE_LONG": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 33, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "args[1] = ONIG_TYPE_STRING;", "Function Input": {}, "Variable Values Before Statement": {"ONIG_TYPE_STRING": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 34, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "static int\ninit(void)\n{\n#ifdef USE_CALLOUT\n\n int id;\n OnigEncoding enc;\n char* name;\n unsigned int args[4];\n OnigValue opts[4];\n\n enc = ONIG_ENCODING_ASCII;\n\n name = \"FAIL\"; BC0_P(name, fail);\n name = \"MISMATCH\"; BC0_P(name, mismatch);\n\n name = \"MAX\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_CHAR;\n opts[0].c = 'X';\n BC_B_O(name, max, 2, args, 1, opts);\n\n name = \"ERROR\";\n args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT;\n BC_P_O(name, error, 1, args, 1, opts);\n\n name = \"COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, count, 1, args, 1, opts);\n\n name = \"TOTAL_COUNT\";\n args[0] = ONIG_TYPE_CHAR; opts[0].c = '>';\n BC_B_O(name, total_count, 1, args, 1, opts);\n\n name = \"CMP\";\n args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n args[1] = ONIG_TYPE_STRING;\n args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;\n BC_P(name, cmp, 3, args);\n\n#endif \n\n return ONIG_NORMAL;\n}", "Selected Statement": "args[2] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;", "Function Input": {}, "Variable Values Before Statement": {"ONIG_TYPE_TAG": "NULL", "ONIG_TYPE_LONG": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 35, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_set_callout_of_name(OnigEncoding enc, OnigCalloutType callout_type,\n UChar* name, UChar* name_end, int in,\n OnigCalloutFunc start_func,\n OnigCalloutFunc end_func,\n int arg_num, unsigned int arg_types[],\n int opt_arg_num, OnigValue opt_defaults[])\n{\n int r;\n int i;\n int j;\n int id;\n int is_not_single;\n CalloutNameEntry* e;\n CalloutNameListEntry* fe;\n\n if (callout_type != ONIG_CALLOUT_TYPE_SINGLE)\n return ONIGERR_INVALID_ARGUMENT;\n\n if (arg_num < 0 || arg_num > ONIG_CALLOUT_MAX_ARGS_NUM)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (opt_arg_num < 0 || opt_arg_num > arg_num)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (start_func == 0 && end_func == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if ((in & ONIG_CALLOUT_IN_PROGRESS) == 0 && (in & ONIG_CALLOUT_IN_RETRACTION) == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n for (i = 0; i < arg_num; i++) {\n unsigned int t = arg_types[i];\n if (t == ONIG_TYPE_VOID)\n return ONIGERR_INVALID_CALLOUT_ARG;\n else {\n if (i >= arg_num - opt_arg_num) {\n if (t != ONIG_TYPE_LONG && t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING &&\n t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n else {\n if (t != ONIG_TYPE_LONG) {\n t = t & ~ONIG_TYPE_LONG;\n if (t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING && t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n }\n }\n }\n\n if (! is_allowed_callout_name(enc, name, name_end)) {\n return ONIGERR_INVALID_CALLOUT_NAME;\n }\n\n is_not_single = (callout_type != ONIG_CALLOUT_TYPE_SINGLE);\n id = callout_name_entry(&e, enc, is_not_single, name, name_end);\n if (id < 0) return id;\n\n r = ONIG_NORMAL;\n if (IS_NULL(GlobalCalloutNameList)) {\n r = make_callout_func_list(&GlobalCalloutNameList, 10);\n if (r != ONIG_NORMAL) return r;\n }\n\n while (id >= GlobalCalloutNameList->n) {\n int rid;\n r = callout_func_list_add(GlobalCalloutNameList, &rid);\n if (r != ONIG_NORMAL) return r;\n }\n\n fe = GlobalCalloutNameList->v + id;\n fe->type = callout_type;\n fe->in = in;\n fe->start_func = start_func;\n fe->end_func = end_func;\n fe->arg_num = arg_num;\n fe->opt_arg_num = opt_arg_num;\n fe->name = e->name;\n\n for (i = 0; i < arg_num; i++) {\n fe->arg_types[i] = arg_types[i];\n }\n for (i = arg_num - opt_arg_num, j = 0; i < arg_num; i++, j++) {\n if (IS_NULL(opt_defaults)) return ONIGERR_INVALID_ARGUMENT;\n if (fe->arg_types[i] == ONIG_TYPE_STRING) {\n OnigValue* val;\n UChar* ds;\n\n val = opt_defaults + j;\n ds = onigenc_strdup(enc, val->s.start, val->s.end);\n CHECK_NULL_RETURN_MEMERR(ds);\n\n fe->opt_defaults[i].s.start = ds;\n fe->opt_defaults[i].s.end = ds + (val->s.end - val->s.start);\n }\n else {\n fe->opt_defaults[i] = opt_defaults[j];\n }\n }\n\n r = id;\n return r;\n}", "Selected Statement": "id = callout_name_entry(&e, enc, is_not_single, name, name_end);", "Function Input": {}, "Variable Values Before Statement": {"enc": "OnigEncoding", "is_not_single": "int", "name": "0x5dc019 \"FAIL\"", "name_end": "0x5dc01d \"\""}, "Value After Statement Execution": "int", "Function Name": "callout_name_entry", "Block_Size": 54, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_set_callout_of_name(OnigEncoding enc, OnigCalloutType callout_type,\n UChar* name, UChar* name_end, int in,\n OnigCalloutFunc start_func,\n OnigCalloutFunc end_func,\n int arg_num, unsigned int arg_types[],\n int opt_arg_num, OnigValue opt_defaults[])\n{\n int r;\n int i;\n int j;\n int id;\n int is_not_single;\n CalloutNameEntry* e;\n CalloutNameListEntry* fe;\n\n if (callout_type != ONIG_CALLOUT_TYPE_SINGLE)\n return ONIGERR_INVALID_ARGUMENT;\n\n if (arg_num < 0 || arg_num > ONIG_CALLOUT_MAX_ARGS_NUM)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (opt_arg_num < 0 || opt_arg_num > arg_num)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (start_func == 0 && end_func == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if ((in & ONIG_CALLOUT_IN_PROGRESS) == 0 && (in & ONIG_CALLOUT_IN_RETRACTION) == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n for (i = 0; i < arg_num; i++) {\n unsigned int t = arg_types[i];\n if (t == ONIG_TYPE_VOID)\n return ONIGERR_INVALID_CALLOUT_ARG;\n else {\n if (i >= arg_num - opt_arg_num) {\n if (t != ONIG_TYPE_LONG && t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING &&\n t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n else {\n if (t != ONIG_TYPE_LONG) {\n t = t & ~ONIG_TYPE_LONG;\n if (t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING && t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n }\n }\n }\n\n if (! is_allowed_callout_name(enc, name, name_end)) {\n return ONIGERR_INVALID_CALLOUT_NAME;\n }\n\n is_not_single = (callout_type != ONIG_CALLOUT_TYPE_SINGLE);\n id = callout_name_entry(&e, enc, is_not_single, name, name_end);\n if (id < 0) return id;\n\n r = ONIG_NORMAL;\n if (IS_NULL(GlobalCalloutNameList)) {\n r = make_callout_func_list(&GlobalCalloutNameList, 10);\n if (r != ONIG_NORMAL) return r;\n }\n\n while (id >= GlobalCalloutNameList->n) {\n int rid;\n r = callout_func_list_add(GlobalCalloutNameList, &rid);\n if (r != ONIG_NORMAL) return r;\n }\n\n fe = GlobalCalloutNameList->v + id;\n fe->type = callout_type;\n fe->in = in;\n fe->start_func = start_func;\n fe->end_func = end_func;\n fe->arg_num = arg_num;\n fe->opt_arg_num = opt_arg_num;\n fe->name = e->name;\n\n for (i = 0; i < arg_num; i++) {\n fe->arg_types[i] = arg_types[i];\n }\n for (i = arg_num - opt_arg_num, j = 0; i < arg_num; i++, j++) {\n if (IS_NULL(opt_defaults)) return ONIGERR_INVALID_ARGUMENT;\n if (fe->arg_types[i] == ONIG_TYPE_STRING) {\n OnigValue* val;\n UChar* ds;\n\n val = opt_defaults + j;\n ds = onigenc_strdup(enc, val->s.start, val->s.end);\n CHECK_NULL_RETURN_MEMERR(ds);\n\n fe->opt_defaults[i].s.start = ds;\n fe->opt_defaults[i].s.end = ds + (val->s.end - val->s.start);\n }\n else {\n fe->opt_defaults[i] = opt_defaults[j];\n }\n }\n\n r = id;\n return r;\n}", "Selected Statement": "r = ONIG_NORMAL;", "Function Input": {}, "Variable Values Before Statement": {"ONIG_NORMAL": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 57, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_set_callout_of_name(OnigEncoding enc, OnigCalloutType callout_type,\n UChar* name, UChar* name_end, int in,\n OnigCalloutFunc start_func,\n OnigCalloutFunc end_func,\n int arg_num, unsigned int arg_types[],\n int opt_arg_num, OnigValue opt_defaults[])\n{\n int r;\n int i;\n int j;\n int id;\n int is_not_single;\n CalloutNameEntry* e;\n CalloutNameListEntry* fe;\n\n if (callout_type != ONIG_CALLOUT_TYPE_SINGLE)\n return ONIGERR_INVALID_ARGUMENT;\n\n if (arg_num < 0 || arg_num > ONIG_CALLOUT_MAX_ARGS_NUM)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (opt_arg_num < 0 || opt_arg_num > arg_num)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (start_func == 0 && end_func == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if ((in & ONIG_CALLOUT_IN_PROGRESS) == 0 && (in & ONIG_CALLOUT_IN_RETRACTION) == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n for (i = 0; i < arg_num; i++) {\n unsigned int t = arg_types[i];\n if (t == ONIG_TYPE_VOID)\n return ONIGERR_INVALID_CALLOUT_ARG;\n else {\n if (i >= arg_num - opt_arg_num) {\n if (t != ONIG_TYPE_LONG && t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING &&\n t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n else {\n if (t != ONIG_TYPE_LONG) {\n t = t & ~ONIG_TYPE_LONG;\n if (t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING && t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n }\n }\n }\n\n if (! is_allowed_callout_name(enc, name, name_end)) {\n return ONIGERR_INVALID_CALLOUT_NAME;\n }\n\n is_not_single = (callout_type != ONIG_CALLOUT_TYPE_SINGLE);\n id = callout_name_entry(&e, enc, is_not_single, name, name_end);\n if (id < 0) return id;\n\n r = ONIG_NORMAL;\n if (IS_NULL(GlobalCalloutNameList)) {\n r = make_callout_func_list(&GlobalCalloutNameList, 10);\n if (r != ONIG_NORMAL) return r;\n }\n\n while (id >= GlobalCalloutNameList->n) {\n int rid;\n r = callout_func_list_add(GlobalCalloutNameList, &rid);\n if (r != ONIG_NORMAL) return r;\n }\n\n fe = GlobalCalloutNameList->v + id;\n fe->type = callout_type;\n fe->in = in;\n fe->start_func = start_func;\n fe->end_func = end_func;\n fe->arg_num = arg_num;\n fe->opt_arg_num = opt_arg_num;\n fe->name = e->name;\n\n for (i = 0; i < arg_num; i++) {\n fe->arg_types[i] = arg_types[i];\n }\n for (i = arg_num - opt_arg_num, j = 0; i < arg_num; i++, j++) {\n if (IS_NULL(opt_defaults)) return ONIGERR_INVALID_ARGUMENT;\n if (fe->arg_types[i] == ONIG_TYPE_STRING) {\n OnigValue* val;\n UChar* ds;\n\n val = opt_defaults + j;\n ds = onigenc_strdup(enc, val->s.start, val->s.end);\n CHECK_NULL_RETURN_MEMERR(ds);\n\n fe->opt_defaults[i].s.start = ds;\n fe->opt_defaults[i].s.end = ds + (val->s.end - val->s.start);\n }\n else {\n fe->opt_defaults[i] = opt_defaults[j];\n }\n }\n\n r = id;\n return r;\n}", "Selected Statement": "r = make_callout_func_list(&GlobalCalloutNameList, 10);", "Function Input": {}, "Variable Values Before Statement": {"10": "10"}, "Value After Statement Execution": "int", "Function Name": "make_callout_func_list", "Block_Size": 59, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_set_callout_of_name(OnigEncoding enc, OnigCalloutType callout_type,\n UChar* name, UChar* name_end, int in,\n OnigCalloutFunc start_func,\n OnigCalloutFunc end_func,\n int arg_num, unsigned int arg_types[],\n int opt_arg_num, OnigValue opt_defaults[])\n{\n int r;\n int i;\n int j;\n int id;\n int is_not_single;\n CalloutNameEntry* e;\n CalloutNameListEntry* fe;\n\n if (callout_type != ONIG_CALLOUT_TYPE_SINGLE)\n return ONIGERR_INVALID_ARGUMENT;\n\n if (arg_num < 0 || arg_num > ONIG_CALLOUT_MAX_ARGS_NUM)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (opt_arg_num < 0 || opt_arg_num > arg_num)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (start_func == 0 && end_func == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if ((in & ONIG_CALLOUT_IN_PROGRESS) == 0 && (in & ONIG_CALLOUT_IN_RETRACTION) == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n for (i = 0; i < arg_num; i++) {\n unsigned int t = arg_types[i];\n if (t == ONIG_TYPE_VOID)\n return ONIGERR_INVALID_CALLOUT_ARG;\n else {\n if (i >= arg_num - opt_arg_num) {\n if (t != ONIG_TYPE_LONG && t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING &&\n t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n else {\n if (t != ONIG_TYPE_LONG) {\n t = t & ~ONIG_TYPE_LONG;\n if (t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING && t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n }\n }\n }\n\n if (! is_allowed_callout_name(enc, name, name_end)) {\n return ONIGERR_INVALID_CALLOUT_NAME;\n }\n\n is_not_single = (callout_type != ONIG_CALLOUT_TYPE_SINGLE);\n id = callout_name_entry(&e, enc, is_not_single, name, name_end);\n if (id < 0) return id;\n\n r = ONIG_NORMAL;\n if (IS_NULL(GlobalCalloutNameList)) {\n r = make_callout_func_list(&GlobalCalloutNameList, 10);\n if (r != ONIG_NORMAL) return r;\n }\n\n while (id >= GlobalCalloutNameList->n) {\n int rid;\n r = callout_func_list_add(GlobalCalloutNameList, &rid);\n if (r != ONIG_NORMAL) return r;\n }\n\n fe = GlobalCalloutNameList->v + id;\n fe->type = callout_type;\n fe->in = in;\n fe->start_func = start_func;\n fe->end_func = end_func;\n fe->arg_num = arg_num;\n fe->opt_arg_num = opt_arg_num;\n fe->name = e->name;\n\n for (i = 0; i < arg_num; i++) {\n fe->arg_types[i] = arg_types[i];\n }\n for (i = arg_num - opt_arg_num, j = 0; i < arg_num; i++, j++) {\n if (IS_NULL(opt_defaults)) return ONIGERR_INVALID_ARGUMENT;\n if (fe->arg_types[i] == ONIG_TYPE_STRING) {\n OnigValue* val;\n UChar* ds;\n\n val = opt_defaults + j;\n ds = onigenc_strdup(enc, val->s.start, val->s.end);\n CHECK_NULL_RETURN_MEMERR(ds);\n\n fe->opt_defaults[i].s.start = ds;\n fe->opt_defaults[i].s.end = ds + (val->s.end - val->s.start);\n }\n else {\n fe->opt_defaults[i] = opt_defaults[j];\n }\n }\n\n r = id;\n return r;\n}", "Selected Statement": "r = callout_func_list_add(GlobalCalloutNameList, &rid);", "Function Input": {}, "Variable Values Before Statement": {"GlobalCalloutNameList": {"n": "2", "alloc": "10", "v": null}}, "Value After Statement Execution": "int", "Function Name": "callout_func_list_add", "Block_Size": 65, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_set_callout_of_name(OnigEncoding enc, OnigCalloutType callout_type,\n UChar* name, UChar* name_end, int in,\n OnigCalloutFunc start_func,\n OnigCalloutFunc end_func,\n int arg_num, unsigned int arg_types[],\n int opt_arg_num, OnigValue opt_defaults[])\n{\n int r;\n int i;\n int j;\n int id;\n int is_not_single;\n CalloutNameEntry* e;\n CalloutNameListEntry* fe;\n\n if (callout_type != ONIG_CALLOUT_TYPE_SINGLE)\n return ONIGERR_INVALID_ARGUMENT;\n\n if (arg_num < 0 || arg_num > ONIG_CALLOUT_MAX_ARGS_NUM)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (opt_arg_num < 0 || opt_arg_num > arg_num)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (start_func == 0 && end_func == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if ((in & ONIG_CALLOUT_IN_PROGRESS) == 0 && (in & ONIG_CALLOUT_IN_RETRACTION) == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n for (i = 0; i < arg_num; i++) {\n unsigned int t = arg_types[i];\n if (t == ONIG_TYPE_VOID)\n return ONIGERR_INVALID_CALLOUT_ARG;\n else {\n if (i >= arg_num - opt_arg_num) {\n if (t != ONIG_TYPE_LONG && t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING &&\n t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n else {\n if (t != ONIG_TYPE_LONG) {\n t = t & ~ONIG_TYPE_LONG;\n if (t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING && t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n }\n }\n }\n\n if (! is_allowed_callout_name(enc, name, name_end)) {\n return ONIGERR_INVALID_CALLOUT_NAME;\n }\n\n is_not_single = (callout_type != ONIG_CALLOUT_TYPE_SINGLE);\n id = callout_name_entry(&e, enc, is_not_single, name, name_end);\n if (id < 0) return id;\n\n r = ONIG_NORMAL;\n if (IS_NULL(GlobalCalloutNameList)) {\n r = make_callout_func_list(&GlobalCalloutNameList, 10);\n if (r != ONIG_NORMAL) return r;\n }\n\n while (id >= GlobalCalloutNameList->n) {\n int rid;\n r = callout_func_list_add(GlobalCalloutNameList, &rid);\n if (r != ONIG_NORMAL) return r;\n }\n\n fe = GlobalCalloutNameList->v + id;\n fe->type = callout_type;\n fe->in = in;\n fe->start_func = start_func;\n fe->end_func = end_func;\n fe->arg_num = arg_num;\n fe->opt_arg_num = opt_arg_num;\n fe->name = e->name;\n\n for (i = 0; i < arg_num; i++) {\n fe->arg_types[i] = arg_types[i];\n }\n for (i = arg_num - opt_arg_num, j = 0; i < arg_num; i++, j++) {\n if (IS_NULL(opt_defaults)) return ONIGERR_INVALID_ARGUMENT;\n if (fe->arg_types[i] == ONIG_TYPE_STRING) {\n OnigValue* val;\n UChar* ds;\n\n val = opt_defaults + j;\n ds = onigenc_strdup(enc, val->s.start, val->s.end);\n CHECK_NULL_RETURN_MEMERR(ds);\n\n fe->opt_defaults[i].s.start = ds;\n fe->opt_defaults[i].s.end = ds + (val->s.end - val->s.start);\n }\n else {\n fe->opt_defaults[i] = opt_defaults[j];\n }\n }\n\n r = id;\n return r;\n}", "Selected Statement": "fe = GlobalCalloutNameList->v + id;", "Function Input": {}, "Variable Values Before Statement": {"GlobalCalloutNameList": {"n": "2", "alloc": "10", "v": null}, "id": "int"}, "Value After Statement Execution": {"type": "ONIG_CALLOUT_TYPE_SINGLE", "in": "0", "start_func": null, "end_func": null, "arg_num": "0", "opt_arg_num": "0", "arg_types": [{"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}], "opt_defaults": [{"type_category": "struct", "concrete_type": "STRUCT", "value": {"l": {"type_category": "int", "concrete_type": "long", "value": "0"}, "c": {"type_category": "unknown", "concrete_type": "OnigCodePoint", "value": "0"}, "s": {"type_category": "struct", "concrete_type": "RECURSIVE", "value": "{start = 0x0, end = 0x0}"}, "p": {"type_category": "pointer", "concrete_type": "NULL"}, "tag": {"type_category": "int", "concrete_type": "int", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"l": {"type_category": "int", "concrete_type": "long", "value": "0"}, "c": {"type_category": "unknown", "concrete_type": "OnigCodePoint", "value": "0"}, "s": {"type_category": "struct", "concrete_type": "RECURSIVE", "value": "{start = 0x0, end = 0x0}"}, "p": {"type_category": "pointer", "concrete_type": "NULL"}, "tag": {"type_category": "int", "concrete_type": "int", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"l": {"type_category": "int", "concrete_type": "long", "value": "0"}, "c": {"type_category": "unknown", "concrete_type": "OnigCodePoint", "value": "0"}, "s": {"type_category": "struct", "concrete_type": "RECURSIVE", "value": "{start = 0x0, end = 0x0}"}, "p": {"type_category": "pointer", "concrete_type": "NULL"}, "tag": {"type_category": "int", "concrete_type": "int", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"l": {"type_category": "int", "concrete_type": "long", "value": "0"}, "c": {"type_category": "unknown", "concrete_type": "OnigCodePoint", "value": "0"}, "s": {"type_category": "struct", "concrete_type": "RECURSIVE", "value": "{start = 0x0, end = 0x0}"}, "p": {"type_category": "pointer", "concrete_type": "NULL"}, "tag": {"type_category": "int", "concrete_type": "int", "value": "0"}}}], "name": null}, "Block_Size": 69, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_set_callout_of_name(OnigEncoding enc, OnigCalloutType callout_type,\n UChar* name, UChar* name_end, int in,\n OnigCalloutFunc start_func,\n OnigCalloutFunc end_func,\n int arg_num, unsigned int arg_types[],\n int opt_arg_num, OnigValue opt_defaults[])\n{\n int r;\n int i;\n int j;\n int id;\n int is_not_single;\n CalloutNameEntry* e;\n CalloutNameListEntry* fe;\n\n if (callout_type != ONIG_CALLOUT_TYPE_SINGLE)\n return ONIGERR_INVALID_ARGUMENT;\n\n if (arg_num < 0 || arg_num > ONIG_CALLOUT_MAX_ARGS_NUM)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (opt_arg_num < 0 || opt_arg_num > arg_num)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (start_func == 0 && end_func == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if ((in & ONIG_CALLOUT_IN_PROGRESS) == 0 && (in & ONIG_CALLOUT_IN_RETRACTION) == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n for (i = 0; i < arg_num; i++) {\n unsigned int t = arg_types[i];\n if (t == ONIG_TYPE_VOID)\n return ONIGERR_INVALID_CALLOUT_ARG;\n else {\n if (i >= arg_num - opt_arg_num) {\n if (t != ONIG_TYPE_LONG && t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING &&\n t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n else {\n if (t != ONIG_TYPE_LONG) {\n t = t & ~ONIG_TYPE_LONG;\n if (t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING && t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n }\n }\n }\n\n if (! is_allowed_callout_name(enc, name, name_end)) {\n return ONIGERR_INVALID_CALLOUT_NAME;\n }\n\n is_not_single = (callout_type != ONIG_CALLOUT_TYPE_SINGLE);\n id = callout_name_entry(&e, enc, is_not_single, name, name_end);\n if (id < 0) return id;\n\n r = ONIG_NORMAL;\n if (IS_NULL(GlobalCalloutNameList)) {\n r = make_callout_func_list(&GlobalCalloutNameList, 10);\n if (r != ONIG_NORMAL) return r;\n }\n\n while (id >= GlobalCalloutNameList->n) {\n int rid;\n r = callout_func_list_add(GlobalCalloutNameList, &rid);\n if (r != ONIG_NORMAL) return r;\n }\n\n fe = GlobalCalloutNameList->v + id;\n fe->type = callout_type;\n fe->in = in;\n fe->start_func = start_func;\n fe->end_func = end_func;\n fe->arg_num = arg_num;\n fe->opt_arg_num = opt_arg_num;\n fe->name = e->name;\n\n for (i = 0; i < arg_num; i++) {\n fe->arg_types[i] = arg_types[i];\n }\n for (i = arg_num - opt_arg_num, j = 0; i < arg_num; i++, j++) {\n if (IS_NULL(opt_defaults)) return ONIGERR_INVALID_ARGUMENT;\n if (fe->arg_types[i] == ONIG_TYPE_STRING) {\n OnigValue* val;\n UChar* ds;\n\n val = opt_defaults + j;\n ds = onigenc_strdup(enc, val->s.start, val->s.end);\n CHECK_NULL_RETURN_MEMERR(ds);\n\n fe->opt_defaults[i].s.start = ds;\n fe->opt_defaults[i].s.end = ds + (val->s.end - val->s.start);\n }\n else {\n fe->opt_defaults[i] = opt_defaults[j];\n }\n }\n\n r = id;\n return r;\n}", "Selected Statement": "fe->type = callout_type;", "Function Input": {}, "Variable Values Before Statement": {"callout_type": "OnigCalloutType"}, "Value After Statement Execution": "OnigCalloutType", "Block_Size": 70, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_set_callout_of_name(OnigEncoding enc, OnigCalloutType callout_type,\n UChar* name, UChar* name_end, int in,\n OnigCalloutFunc start_func,\n OnigCalloutFunc end_func,\n int arg_num, unsigned int arg_types[],\n int opt_arg_num, OnigValue opt_defaults[])\n{\n int r;\n int i;\n int j;\n int id;\n int is_not_single;\n CalloutNameEntry* e;\n CalloutNameListEntry* fe;\n\n if (callout_type != ONIG_CALLOUT_TYPE_SINGLE)\n return ONIGERR_INVALID_ARGUMENT;\n\n if (arg_num < 0 || arg_num > ONIG_CALLOUT_MAX_ARGS_NUM)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (opt_arg_num < 0 || opt_arg_num > arg_num)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (start_func == 0 && end_func == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if ((in & ONIG_CALLOUT_IN_PROGRESS) == 0 && (in & ONIG_CALLOUT_IN_RETRACTION) == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n for (i = 0; i < arg_num; i++) {\n unsigned int t = arg_types[i];\n if (t == ONIG_TYPE_VOID)\n return ONIGERR_INVALID_CALLOUT_ARG;\n else {\n if (i >= arg_num - opt_arg_num) {\n if (t != ONIG_TYPE_LONG && t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING &&\n t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n else {\n if (t != ONIG_TYPE_LONG) {\n t = t & ~ONIG_TYPE_LONG;\n if (t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING && t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n }\n }\n }\n\n if (! is_allowed_callout_name(enc, name, name_end)) {\n return ONIGERR_INVALID_CALLOUT_NAME;\n }\n\n is_not_single = (callout_type != ONIG_CALLOUT_TYPE_SINGLE);\n id = callout_name_entry(&e, enc, is_not_single, name, name_end);\n if (id < 0) return id;\n\n r = ONIG_NORMAL;\n if (IS_NULL(GlobalCalloutNameList)) {\n r = make_callout_func_list(&GlobalCalloutNameList, 10);\n if (r != ONIG_NORMAL) return r;\n }\n\n while (id >= GlobalCalloutNameList->n) {\n int rid;\n r = callout_func_list_add(GlobalCalloutNameList, &rid);\n if (r != ONIG_NORMAL) return r;\n }\n\n fe = GlobalCalloutNameList->v + id;\n fe->type = callout_type;\n fe->in = in;\n fe->start_func = start_func;\n fe->end_func = end_func;\n fe->arg_num = arg_num;\n fe->opt_arg_num = opt_arg_num;\n fe->name = e->name;\n\n for (i = 0; i < arg_num; i++) {\n fe->arg_types[i] = arg_types[i];\n }\n for (i = arg_num - opt_arg_num, j = 0; i < arg_num; i++, j++) {\n if (IS_NULL(opt_defaults)) return ONIGERR_INVALID_ARGUMENT;\n if (fe->arg_types[i] == ONIG_TYPE_STRING) {\n OnigValue* val;\n UChar* ds;\n\n val = opt_defaults + j;\n ds = onigenc_strdup(enc, val->s.start, val->s.end);\n CHECK_NULL_RETURN_MEMERR(ds);\n\n fe->opt_defaults[i].s.start = ds;\n fe->opt_defaults[i].s.end = ds + (val->s.end - val->s.start);\n }\n else {\n fe->opt_defaults[i] = opt_defaults[j];\n }\n }\n\n r = id;\n return r;\n}", "Selected Statement": "fe->in = in;", "Function Input": {}, "Variable Values Before Statement": {"in": "int"}, "Value After Statement Execution": "int", "Block_Size": 71, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_set_callout_of_name(OnigEncoding enc, OnigCalloutType callout_type,\n UChar* name, UChar* name_end, int in,\n OnigCalloutFunc start_func,\n OnigCalloutFunc end_func,\n int arg_num, unsigned int arg_types[],\n int opt_arg_num, OnigValue opt_defaults[])\n{\n int r;\n int i;\n int j;\n int id;\n int is_not_single;\n CalloutNameEntry* e;\n CalloutNameListEntry* fe;\n\n if (callout_type != ONIG_CALLOUT_TYPE_SINGLE)\n return ONIGERR_INVALID_ARGUMENT;\n\n if (arg_num < 0 || arg_num > ONIG_CALLOUT_MAX_ARGS_NUM)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (opt_arg_num < 0 || opt_arg_num > arg_num)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (start_func == 0 && end_func == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if ((in & ONIG_CALLOUT_IN_PROGRESS) == 0 && (in & ONIG_CALLOUT_IN_RETRACTION) == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n for (i = 0; i < arg_num; i++) {\n unsigned int t = arg_types[i];\n if (t == ONIG_TYPE_VOID)\n return ONIGERR_INVALID_CALLOUT_ARG;\n else {\n if (i >= arg_num - opt_arg_num) {\n if (t != ONIG_TYPE_LONG && t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING &&\n t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n else {\n if (t != ONIG_TYPE_LONG) {\n t = t & ~ONIG_TYPE_LONG;\n if (t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING && t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n }\n }\n }\n\n if (! is_allowed_callout_name(enc, name, name_end)) {\n return ONIGERR_INVALID_CALLOUT_NAME;\n }\n\n is_not_single = (callout_type != ONIG_CALLOUT_TYPE_SINGLE);\n id = callout_name_entry(&e, enc, is_not_single, name, name_end);\n if (id < 0) return id;\n\n r = ONIG_NORMAL;\n if (IS_NULL(GlobalCalloutNameList)) {\n r = make_callout_func_list(&GlobalCalloutNameList, 10);\n if (r != ONIG_NORMAL) return r;\n }\n\n while (id >= GlobalCalloutNameList->n) {\n int rid;\n r = callout_func_list_add(GlobalCalloutNameList, &rid);\n if (r != ONIG_NORMAL) return r;\n }\n\n fe = GlobalCalloutNameList->v + id;\n fe->type = callout_type;\n fe->in = in;\n fe->start_func = start_func;\n fe->end_func = end_func;\n fe->arg_num = arg_num;\n fe->opt_arg_num = opt_arg_num;\n fe->name = e->name;\n\n for (i = 0; i < arg_num; i++) {\n fe->arg_types[i] = arg_types[i];\n }\n for (i = arg_num - opt_arg_num, j = 0; i < arg_num; i++, j++) {\n if (IS_NULL(opt_defaults)) return ONIGERR_INVALID_ARGUMENT;\n if (fe->arg_types[i] == ONIG_TYPE_STRING) {\n OnigValue* val;\n UChar* ds;\n\n val = opt_defaults + j;\n ds = onigenc_strdup(enc, val->s.start, val->s.end);\n CHECK_NULL_RETURN_MEMERR(ds);\n\n fe->opt_defaults[i].s.start = ds;\n fe->opt_defaults[i].s.end = ds + (val->s.end - val->s.start);\n }\n else {\n fe->opt_defaults[i] = opt_defaults[j];\n }\n }\n\n r = id;\n return r;\n}", "Selected Statement": "fe->start_func = start_func;", "Function Input": {}, "Variable Values Before Statement": {"start_func": "OnigCalloutFunc"}, "Value After Statement Execution": "OnigCalloutFunc", "Block_Size": 72, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_set_callout_of_name(OnigEncoding enc, OnigCalloutType callout_type,\n UChar* name, UChar* name_end, int in,\n OnigCalloutFunc start_func,\n OnigCalloutFunc end_func,\n int arg_num, unsigned int arg_types[],\n int opt_arg_num, OnigValue opt_defaults[])\n{\n int r;\n int i;\n int j;\n int id;\n int is_not_single;\n CalloutNameEntry* e;\n CalloutNameListEntry* fe;\n\n if (callout_type != ONIG_CALLOUT_TYPE_SINGLE)\n return ONIGERR_INVALID_ARGUMENT;\n\n if (arg_num < 0 || arg_num > ONIG_CALLOUT_MAX_ARGS_NUM)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (opt_arg_num < 0 || opt_arg_num > arg_num)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (start_func == 0 && end_func == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if ((in & ONIG_CALLOUT_IN_PROGRESS) == 0 && (in & ONIG_CALLOUT_IN_RETRACTION) == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n for (i = 0; i < arg_num; i++) {\n unsigned int t = arg_types[i];\n if (t == ONIG_TYPE_VOID)\n return ONIGERR_INVALID_CALLOUT_ARG;\n else {\n if (i >= arg_num - opt_arg_num) {\n if (t != ONIG_TYPE_LONG && t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING &&\n t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n else {\n if (t != ONIG_TYPE_LONG) {\n t = t & ~ONIG_TYPE_LONG;\n if (t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING && t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n }\n }\n }\n\n if (! is_allowed_callout_name(enc, name, name_end)) {\n return ONIGERR_INVALID_CALLOUT_NAME;\n }\n\n is_not_single = (callout_type != ONIG_CALLOUT_TYPE_SINGLE);\n id = callout_name_entry(&e, enc, is_not_single, name, name_end);\n if (id < 0) return id;\n\n r = ONIG_NORMAL;\n if (IS_NULL(GlobalCalloutNameList)) {\n r = make_callout_func_list(&GlobalCalloutNameList, 10);\n if (r != ONIG_NORMAL) return r;\n }\n\n while (id >= GlobalCalloutNameList->n) {\n int rid;\n r = callout_func_list_add(GlobalCalloutNameList, &rid);\n if (r != ONIG_NORMAL) return r;\n }\n\n fe = GlobalCalloutNameList->v + id;\n fe->type = callout_type;\n fe->in = in;\n fe->start_func = start_func;\n fe->end_func = end_func;\n fe->arg_num = arg_num;\n fe->opt_arg_num = opt_arg_num;\n fe->name = e->name;\n\n for (i = 0; i < arg_num; i++) {\n fe->arg_types[i] = arg_types[i];\n }\n for (i = arg_num - opt_arg_num, j = 0; i < arg_num; i++, j++) {\n if (IS_NULL(opt_defaults)) return ONIGERR_INVALID_ARGUMENT;\n if (fe->arg_types[i] == ONIG_TYPE_STRING) {\n OnigValue* val;\n UChar* ds;\n\n val = opt_defaults + j;\n ds = onigenc_strdup(enc, val->s.start, val->s.end);\n CHECK_NULL_RETURN_MEMERR(ds);\n\n fe->opt_defaults[i].s.start = ds;\n fe->opt_defaults[i].s.end = ds + (val->s.end - val->s.start);\n }\n else {\n fe->opt_defaults[i] = opt_defaults[j];\n }\n }\n\n r = id;\n return r;\n}", "Selected Statement": "fe->end_func = end_func;", "Function Input": {}, "Variable Values Before Statement": {"end_func": "OnigCalloutFunc"}, "Value After Statement Execution": "OnigCalloutFunc", "Block_Size": 73, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_set_callout_of_name(OnigEncoding enc, OnigCalloutType callout_type,\n UChar* name, UChar* name_end, int in,\n OnigCalloutFunc start_func,\n OnigCalloutFunc end_func,\n int arg_num, unsigned int arg_types[],\n int opt_arg_num, OnigValue opt_defaults[])\n{\n int r;\n int i;\n int j;\n int id;\n int is_not_single;\n CalloutNameEntry* e;\n CalloutNameListEntry* fe;\n\n if (callout_type != ONIG_CALLOUT_TYPE_SINGLE)\n return ONIGERR_INVALID_ARGUMENT;\n\n if (arg_num < 0 || arg_num > ONIG_CALLOUT_MAX_ARGS_NUM)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (opt_arg_num < 0 || opt_arg_num > arg_num)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (start_func == 0 && end_func == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if ((in & ONIG_CALLOUT_IN_PROGRESS) == 0 && (in & ONIG_CALLOUT_IN_RETRACTION) == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n for (i = 0; i < arg_num; i++) {\n unsigned int t = arg_types[i];\n if (t == ONIG_TYPE_VOID)\n return ONIGERR_INVALID_CALLOUT_ARG;\n else {\n if (i >= arg_num - opt_arg_num) {\n if (t != ONIG_TYPE_LONG && t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING &&\n t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n else {\n if (t != ONIG_TYPE_LONG) {\n t = t & ~ONIG_TYPE_LONG;\n if (t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING && t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n }\n }\n }\n\n if (! is_allowed_callout_name(enc, name, name_end)) {\n return ONIGERR_INVALID_CALLOUT_NAME;\n }\n\n is_not_single = (callout_type != ONIG_CALLOUT_TYPE_SINGLE);\n id = callout_name_entry(&e, enc, is_not_single, name, name_end);\n if (id < 0) return id;\n\n r = ONIG_NORMAL;\n if (IS_NULL(GlobalCalloutNameList)) {\n r = make_callout_func_list(&GlobalCalloutNameList, 10);\n if (r != ONIG_NORMAL) return r;\n }\n\n while (id >= GlobalCalloutNameList->n) {\n int rid;\n r = callout_func_list_add(GlobalCalloutNameList, &rid);\n if (r != ONIG_NORMAL) return r;\n }\n\n fe = GlobalCalloutNameList->v + id;\n fe->type = callout_type;\n fe->in = in;\n fe->start_func = start_func;\n fe->end_func = end_func;\n fe->arg_num = arg_num;\n fe->opt_arg_num = opt_arg_num;\n fe->name = e->name;\n\n for (i = 0; i < arg_num; i++) {\n fe->arg_types[i] = arg_types[i];\n }\n for (i = arg_num - opt_arg_num, j = 0; i < arg_num; i++, j++) {\n if (IS_NULL(opt_defaults)) return ONIGERR_INVALID_ARGUMENT;\n if (fe->arg_types[i] == ONIG_TYPE_STRING) {\n OnigValue* val;\n UChar* ds;\n\n val = opt_defaults + j;\n ds = onigenc_strdup(enc, val->s.start, val->s.end);\n CHECK_NULL_RETURN_MEMERR(ds);\n\n fe->opt_defaults[i].s.start = ds;\n fe->opt_defaults[i].s.end = ds + (val->s.end - val->s.start);\n }\n else {\n fe->opt_defaults[i] = opt_defaults[j];\n }\n }\n\n r = id;\n return r;\n}", "Selected Statement": "fe->arg_num = arg_num;", "Function Input": {}, "Variable Values Before Statement": {"arg_num": "int"}, "Value After Statement Execution": "int", "Block_Size": 74, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_set_callout_of_name(OnigEncoding enc, OnigCalloutType callout_type,\n UChar* name, UChar* name_end, int in,\n OnigCalloutFunc start_func,\n OnigCalloutFunc end_func,\n int arg_num, unsigned int arg_types[],\n int opt_arg_num, OnigValue opt_defaults[])\n{\n int r;\n int i;\n int j;\n int id;\n int is_not_single;\n CalloutNameEntry* e;\n CalloutNameListEntry* fe;\n\n if (callout_type != ONIG_CALLOUT_TYPE_SINGLE)\n return ONIGERR_INVALID_ARGUMENT;\n\n if (arg_num < 0 || arg_num > ONIG_CALLOUT_MAX_ARGS_NUM)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (opt_arg_num < 0 || opt_arg_num > arg_num)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (start_func == 0 && end_func == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if ((in & ONIG_CALLOUT_IN_PROGRESS) == 0 && (in & ONIG_CALLOUT_IN_RETRACTION) == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n for (i = 0; i < arg_num; i++) {\n unsigned int t = arg_types[i];\n if (t == ONIG_TYPE_VOID)\n return ONIGERR_INVALID_CALLOUT_ARG;\n else {\n if (i >= arg_num - opt_arg_num) {\n if (t != ONIG_TYPE_LONG && t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING &&\n t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n else {\n if (t != ONIG_TYPE_LONG) {\n t = t & ~ONIG_TYPE_LONG;\n if (t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING && t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n }\n }\n }\n\n if (! is_allowed_callout_name(enc, name, name_end)) {\n return ONIGERR_INVALID_CALLOUT_NAME;\n }\n\n is_not_single = (callout_type != ONIG_CALLOUT_TYPE_SINGLE);\n id = callout_name_entry(&e, enc, is_not_single, name, name_end);\n if (id < 0) return id;\n\n r = ONIG_NORMAL;\n if (IS_NULL(GlobalCalloutNameList)) {\n r = make_callout_func_list(&GlobalCalloutNameList, 10);\n if (r != ONIG_NORMAL) return r;\n }\n\n while (id >= GlobalCalloutNameList->n) {\n int rid;\n r = callout_func_list_add(GlobalCalloutNameList, &rid);\n if (r != ONIG_NORMAL) return r;\n }\n\n fe = GlobalCalloutNameList->v + id;\n fe->type = callout_type;\n fe->in = in;\n fe->start_func = start_func;\n fe->end_func = end_func;\n fe->arg_num = arg_num;\n fe->opt_arg_num = opt_arg_num;\n fe->name = e->name;\n\n for (i = 0; i < arg_num; i++) {\n fe->arg_types[i] = arg_types[i];\n }\n for (i = arg_num - opt_arg_num, j = 0; i < arg_num; i++, j++) {\n if (IS_NULL(opt_defaults)) return ONIGERR_INVALID_ARGUMENT;\n if (fe->arg_types[i] == ONIG_TYPE_STRING) {\n OnigValue* val;\n UChar* ds;\n\n val = opt_defaults + j;\n ds = onigenc_strdup(enc, val->s.start, val->s.end);\n CHECK_NULL_RETURN_MEMERR(ds);\n\n fe->opt_defaults[i].s.start = ds;\n fe->opt_defaults[i].s.end = ds + (val->s.end - val->s.start);\n }\n else {\n fe->opt_defaults[i] = opt_defaults[j];\n }\n }\n\n r = id;\n return r;\n}", "Selected Statement": "fe->opt_arg_num = opt_arg_num;", "Function Input": {}, "Variable Values Before Statement": {"opt_arg_num": "int"}, "Value After Statement Execution": "int", "Block_Size": 75, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_set_callout_of_name(OnigEncoding enc, OnigCalloutType callout_type,\n UChar* name, UChar* name_end, int in,\n OnigCalloutFunc start_func,\n OnigCalloutFunc end_func,\n int arg_num, unsigned int arg_types[],\n int opt_arg_num, OnigValue opt_defaults[])\n{\n int r;\n int i;\n int j;\n int id;\n int is_not_single;\n CalloutNameEntry* e;\n CalloutNameListEntry* fe;\n\n if (callout_type != ONIG_CALLOUT_TYPE_SINGLE)\n return ONIGERR_INVALID_ARGUMENT;\n\n if (arg_num < 0 || arg_num > ONIG_CALLOUT_MAX_ARGS_NUM)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (opt_arg_num < 0 || opt_arg_num > arg_num)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if (start_func == 0 && end_func == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n if ((in & ONIG_CALLOUT_IN_PROGRESS) == 0 && (in & ONIG_CALLOUT_IN_RETRACTION) == 0)\n return ONIGERR_INVALID_CALLOUT_ARG;\n\n for (i = 0; i < arg_num; i++) {\n unsigned int t = arg_types[i];\n if (t == ONIG_TYPE_VOID)\n return ONIGERR_INVALID_CALLOUT_ARG;\n else {\n if (i >= arg_num - opt_arg_num) {\n if (t != ONIG_TYPE_LONG && t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING &&\n t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n else {\n if (t != ONIG_TYPE_LONG) {\n t = t & ~ONIG_TYPE_LONG;\n if (t != ONIG_TYPE_CHAR && t != ONIG_TYPE_STRING && t != ONIG_TYPE_TAG)\n return ONIGERR_INVALID_CALLOUT_ARG;\n }\n }\n }\n }\n\n if (! is_allowed_callout_name(enc, name, name_end)) {\n return ONIGERR_INVALID_CALLOUT_NAME;\n }\n\n is_not_single = (callout_type != ONIG_CALLOUT_TYPE_SINGLE);\n id = callout_name_entry(&e, enc, is_not_single, name, name_end);\n if (id < 0) return id;\n\n r = ONIG_NORMAL;\n if (IS_NULL(GlobalCalloutNameList)) {\n r = make_callout_func_list(&GlobalCalloutNameList, 10);\n if (r != ONIG_NORMAL) return r;\n }\n\n while (id >= GlobalCalloutNameList->n) {\n int rid;\n r = callout_func_list_add(GlobalCalloutNameList, &rid);\n if (r != ONIG_NORMAL) return r;\n }\n\n fe = GlobalCalloutNameList->v + id;\n fe->type = callout_type;\n fe->in = in;\n fe->start_func = start_func;\n fe->end_func = end_func;\n fe->arg_num = arg_num;\n fe->opt_arg_num = opt_arg_num;\n fe->name = e->name;\n\n for (i = 0; i < arg_num; i++) {\n fe->arg_types[i] = arg_types[i];\n }\n for (i = arg_num - opt_arg_num, j = 0; i < arg_num; i++, j++) {\n if (IS_NULL(opt_defaults)) return ONIGERR_INVALID_ARGUMENT;\n if (fe->arg_types[i] == ONIG_TYPE_STRING) {\n OnigValue* val;\n UChar* ds;\n\n val = opt_defaults + j;\n ds = onigenc_strdup(enc, val->s.start, val->s.end);\n CHECK_NULL_RETURN_MEMERR(ds);\n\n fe->opt_defaults[i].s.start = ds;\n fe->opt_defaults[i].s.end = ds + (val->s.end - val->s.start);\n }\n else {\n fe->opt_defaults[i] = opt_defaults[j];\n }\n }\n\n r = id;\n return r;\n}", "Selected Statement": "r = id;", "Function Input": {}, "Variable Values Before Statement": {"id": "int"}, "Value After Statement Execution": "int", "Block_Size": 99, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "extern int\nonig_set_progress_callout(OnigCalloutFunc f)\n{\n DefaultProgressCallout = f;\n return ONIG_NORMAL;\n}", "Selected Statement": "DefaultProgressCallout = f;", "Function Input": {}, "Variable Values Before Statement": {"f": "OnigCalloutFunc"}, "Value After Statement Execution": "OnigCalloutFunc", "Block_Size": 1, "Project Information": "oniguruma"} +{"Programming Language": "C", "Source Code": "void ddsi_iid_init (void)\n{\n union { uint64_t u64; uint32_t u32[2]; } tmp;\n ddsrt_prng_seed_t seed;\n DDSRT_STATIC_ASSERT (sizeof (seed.key) >= sizeof (ddsi_iid.key));\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n if (ddsrt_prng_makeseed (&seed))\n memcpy (ddsi_iid.key, seed.key, sizeof (ddsi_iid.key));\n else\n {\n for (size_t i = 0; i < sizeof (ddsi_iid.key) / sizeof (ddsi_iid.key[0]); i++)\n ddsi_iid.key[i] = ddsrt_random ();\n }\n tmp.u64 = 0;\n dds_tea_decrypt (tmp.u32, ddsi_iid.key);\n ddsrt_atomic_st64 (&ddsi_iid.counter, tmp.u64);\n}", "Selected Statement": "tmp.u64 = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 36, "Project Information": "cyclonedds"} +{"Programming Language": "C", "Source Code": "bool ddsrt_prng_makeseed (struct ddsrt_prng_seed *seed)\n{\n FILE *rndfile;\n memset (seed->key, 0, sizeof (seed->key));\n if ((rndfile = fopen (\"/dev/urandom\", \"rb\")) == NULL)\n return false;\n else\n {\n size_t n = fread (seed->key, sizeof (seed->key), 1, rndfile);\n fclose (rndfile);\n return (n == 1);\n }\n}", "Selected Statement": "size_t n = fread (seed->key, sizeof (seed->key), 1, rndfile);", "Function Input": {}, "Variable Values Before Statement": {"1": "1", "rndfile": "NULL"}, "Value After Statement Execution": "1", "Function Name": "fread", "Block_Size": 7, "Project Information": "cyclonedds"} +{"Programming Language": "C", "Source Code": "void dds_cdrstream_desc_init (struct dds_cdrstream_desc *desc, const struct dds_cdrstream_allocator * __restrict allocator,\n uint32_t size, uint32_t align, uint32_t flagset, const uint32_t *ops, const dds_key_descriptor_t *keys, uint32_t nkeys)\n{\n desc->size = size;\n desc->align = align;\n\n \n desc->keys.nkeys = nkeys;\n copy_desc_keys (&desc->keys.keys, allocator, keys, nkeys);\n copy_desc_keys (&desc->keys.keys_definition_order, allocator, keys, nkeys);\n if (desc->keys.nkeys > 0)\n qsort (desc->keys.keys_definition_order, nkeys, sizeof (*desc->keys.keys_definition_order), key_cmp_idx);\n\n desc->ops.nops = dds_stream_countops (ops, nkeys, keys);\n desc->ops.ops = allocator->malloc (desc->ops.nops * sizeof (*desc->ops.ops));\n memcpy (desc->ops.ops, ops, desc->ops.nops * sizeof (*desc->ops.ops));\n\n \n desc->flagset = flagset & ~DDS_CDR_CALCULATED_FLAGS;\n desc->flagset |= dds_stream_key_flags (desc, NULL, NULL);\n}", "Selected Statement": "desc->size = size;", "Function Input": {"size": {"value": ""}}, "Variable Values Before Statement": {"size": "80"}, "Value After Statement Execution": "80", "Block_Size": 2, "Project Information": "cyclonedds"} +{"Programming Language": "C", "Source Code": "void dds_cdrstream_desc_init (struct dds_cdrstream_desc *desc, const struct dds_cdrstream_allocator * __restrict allocator,\n uint32_t size, uint32_t align, uint32_t flagset, const uint32_t *ops, const dds_key_descriptor_t *keys, uint32_t nkeys)\n{\n desc->size = size;\n desc->align = align;\n\n \n desc->keys.nkeys = nkeys;\n copy_desc_keys (&desc->keys.keys, allocator, keys, nkeys);\n copy_desc_keys (&desc->keys.keys_definition_order, allocator, keys, nkeys);\n if (desc->keys.nkeys > 0)\n qsort (desc->keys.keys_definition_order, nkeys, sizeof (*desc->keys.keys_definition_order), key_cmp_idx);\n\n desc->ops.nops = dds_stream_countops (ops, nkeys, keys);\n desc->ops.ops = allocator->malloc (desc->ops.nops * sizeof (*desc->ops.ops));\n memcpy (desc->ops.ops, ops, desc->ops.nops * sizeof (*desc->ops.ops));\n\n \n desc->flagset = flagset & ~DDS_CDR_CALCULATED_FLAGS;\n desc->flagset |= dds_stream_key_flags (desc, NULL, NULL);\n}", "Selected Statement": "desc->keys.nkeys = nkeys;", "Function Input": {"size": {"value": ""}}, "Variable Values Before Statement": {"nkeys": "0"}, "Value After Statement Execution": "0", "Block_Size": 7, "Project Information": "cyclonedds"} +{"Programming Language": "C", "Source Code": "bool\nucl_parser_set_filevars (struct ucl_parser *parser, const char *filename, bool need_expand)\n{\n\tchar realbuf[PATH_MAX], *curdir;\n\n\tif (filename != NULL) {\n\t\tif (need_expand) {\n\t\t\tif (ucl_realpath (filename, realbuf) == NULL) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tucl_strlcpy (realbuf, filename, sizeof (realbuf));\n\t\t}\n\n\t\tif (parser->cur_file) {\n\t\t\tfree (parser->cur_file);\n\t\t}\n\n\t\tparser->cur_file = strdup (realbuf);\n\n\t\t\n\t\tucl_parser_register_variable (parser, \"FILENAME\", realbuf);\n\t\tcurdir = dirname (realbuf);\n\t\tucl_parser_register_variable (parser, \"CURDIR\", curdir);\n\t}\n\telse {\n\t\t\n\t\tcurdir = getcwd (realbuf, sizeof (realbuf));\n\t\tucl_parser_register_variable (parser, \"FILENAME\", \"undef\");\n\t\tucl_parser_register_variable (parser, \"CURDIR\", curdir);\n\t}\n\n\treturn true;\n}", "Selected Statement": "curdir = getcwd (realbuf, sizeof (realbuf));", "Function Input": {}, "Variable Values Before Statement": {"realbuf": "\"/out\\000\\177\\000\\000\\240\\037\\000\\000\\377\\377\\000\\000\\020\\000\\000\\0000\\000\\000\\000\\240\\330\\377\\377\\377\\177\\000\\000\\000^\\371\\000\\000\\000\\000\\000\\000^\\371\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\006\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\\\\\244\\375\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\242\\201F\\263\\000\\000\\000\\000\\220\\023@\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\240\\321\\341\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\220\\001\\337\\367\\377\\177\\000\\000\\000\\326\\377\\377\\377\\177\\000\\0000\\324\\377\\377\\377\\177\\000\\0003|\\313\\367\\377\\177\\000\\000\\300\\240\\371\\000\\000\\000\\000\\000\\300\\240\\371\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000Y`\\314\\367\\377\\177\\000\\0002BT\\000\\000\\000\\000\\000\\000\\215l\\\\g\\030\\303\\366\\355\\206\\334\\030\\264Y\\024@\\322?T\\000\\000\\000\\000\\000\\020\\324\\377\\377\\377\\177\\000\\0000\\324\\377\\377\\377\\177\\000\\000\\216?T\\000\\000\\000\\000\\000\\000\\326\\377\\377\\377\\177\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\346\\257\\312\\367\\377\\177\\000\\000tures_dir, corpu\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\005\\000\\000\\000\\000\\000\\000\\000\\n\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000 ?T\\000\\000\\000\\000\\000\\330\\323\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000a\\000\\000\\000\\000\\000\\000\\000a\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\310\\341\\367\\377\\177\\000\\000h\\r\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\242?T\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\340\\v\\342\\367\\377\\177\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000/DT\\000\\000\\000\\000\\000\\020\\000\\000\\0000\\000\\000\\000`\\327\\377\\377\\377\\177\\000\\000p\\326\\377\\377\\377\\177\\000\\000\\260\\333\\377\\377\\377\\177\\000\\000\\260\\333\\377\\377\\377\\177\\000\\000\\030\\335\\377\\377\\377\\177\\000\\000\\240\\333\\377\\377\\377\\177\\000\\000\\030\\000\\000\\000\\000\\000\\000\\000\\227\\001\\376\\367\\377\\177\\000\\000\\005\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\260\\246\\303\\367\\377\\177\\000\\000p\\332\\377\\377\\377\\177\\000\\000>|\\376\\367\\377\\177\\000\\000 \\000\\000\\0000\\000\\000\\000\\240\\333\\377\\377\\377\\177\\000\\000`\\371\\341\\367\\377\\177\\000\\000\\030\\000\\000\\000\\000\\000\\000\\000`\\371\\341\\367\\377\\177\\000\\000\\302\\000\\000\\000\\000\\000\\000\\000\\305]Q\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\310\\341\\367\\377\\177\\000\\000h\\r\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\037\\000\\000\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240^\\304\\367\\377\\177\\000\\000\\212\\250\\375\\367\\377\\177\\000\\000\\221\\006\\000\\000\\000\\000\\000\\000\\\\\\244\\375\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\026\\352v\\376\\000\\000\\000\\000H\\031@\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000\\220u\\303\\367\\377\\177\\000\\000\\212\\250\\375\\367\\377\\177\\000\\000\\213\\006\\000\\000\\000\\000\\000\\000\\240^\\304\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\310\\321\\377\\377\\377\\177\\000\\000\\304\\321\\377\\377\\377\\177\\000\\000\\n)U\\r\\363P[j\\240^\\304\\367\\377\\177\\000\\000\\n\\000)\\000U\\000\\r\\000~\\245\\305\\334\\023|\\337>p\\200\\303\\367\\377\\177\\000\\000\\313,@\\000\\000\\000\\000\\000\\026\\352v\\376\\000\\000\\000\\000\\250\\333\\371\\003\\000\\000\\000\\000\\304\\321\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\263\\231\\311?\\220\\322\\377\\377\\377\\177\\000\\000H\\031@\\000\\000\\000\\000\\000\\200\\322\\377\\377\\377\\177\\000\\000 9\\000\\000\\000\\000\\000\\000\\250O\\374\\367\\377\\177\\000\\000\\b\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\026\\352v\\376\\000\\000\\000\\000\\370\\344\\377\\367\\377\\177\\000\\000(\\323\\377\\377\\377\\177\\000\\000\\313,@\\000\\000\\000\\000\\000\\200\\322\\377\\377\\377\\177\\000\\000\\220\\322\\377\\377\\377\\177\\000\\000\\361\\261\\375\\367\\377\\177\\000\\000\\006\\000\\000\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000\\005\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\220\\341\\377\\367\\377\\177\\000\\000\\320\\322\\377\\377\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000\\220\\341\\377\\367\\377\\177\\000\\000\\370\\344\\377\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\250\\323\\377\\377\\377\\177\\000\\000\\251*@\\000\\000\\000\\000\\000\\001\\000\\000\\000\\377\\177\\000\\000\\377\\377\\377\\377\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200x\\035\\304\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\321\\341\\367\\377\\177\\000\\000P\\330\\377\\377\\377\\177\\000\\000p\\330\\377\\377\\377\\177\\000\\000\\000\\333\\377\\377\\377\\177\\000\\000\\360\\331\\377\\377\\377\\177\\000\\000x\\000\\000\\000\\000\\000\\000\\000\\346\\257\\312\\367\\377\\177\\000\\000\\220\\335\\377\\377\\377\\177\\000\\000\\223\\200Q\\000\\000\\000\\000\\000 \\273\\370\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\377\\177\\000\\000'\\000\\000\\000\\000\\000\\000\\000\\240\\321\\341\\367\\377\\177\\000\\000\\360\\330\\377\\377\\377\\177\\000\\000\\020\\331\\377\\377\\377\\177\\000\\000\\240\\333\\377\\377\\377\\177\\000\\000\\220\\332\\377\\377\\377\\177\\000\\000x\\000\\000\\000\\000\\000\\000\\000\\346\\257\\312\\367\\377\\177\\000\\000\\240\\310\\341\\367\\377\\177\\000\\000h\\r\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@\\361\\371\\000\\000\\000\\000\\000\\277\\361\\371\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\277\\361\\371\\000\\000\\000\\000\\0000\\324\\377\\377\\377\\177\\0000\\000\\215l\\\\g\\030\\303\\366@\\361\\371\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\177\\000\\000\\000\\000\\000\\000\\0000\\324\\377\\377\\377\\177\\000\\000\\216?T\\000\\000\\000\\000\\000\\000\\326\\377\\377\\377\\177\\000\\000@\\361\\371\\000\\000\\000\\000\\000\\232\\377\\313\\367\\377\\177\\000\\000\\240\\310\\341\\367\\000\\000\\000\\000 \\325\\377\\377\\377\\177\\000\\000\\001\\200\\255\\373\\000\\000\\000\\000@\\361\\371\\000\\000\\000\\000\\000@\\361\\371\\000\\000\\000\\000\\000@\\361\\371\\000\\000\\000\\000\\000@\\361\\371\\000\\000\\000\\000\\000\\242\\361\\371\\000\\000\\000\\000\\000\\277\\361\\371\\000\\000\\000\\000\\000@\\361\\371\\000\\000\\000\\000\\000\\277\\361\\371\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\341\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\0000\\334\\377\\377\\377\\177\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\321\\341\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000 9\\000\\00009\\000\\000@9\\000\\000`T\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000 \\000\\000\\0000\\000\\000\\000 \\334\\377\\377\\377\\177\\000\\000@\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\215l\\\\g\\030\\303\\366\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000@\\326\\377\\377\\377\\177\\000\\000P\\354\\371\\000\\000\\000\\000\\000\\000@Y\\000\\000\\000\\000\\000\\360\\307\\371\\000\\000\\000\\000\\000@\\326\\377\\377\\377\\177\\000\\000A\\214L\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\t\\000\\000\\0002\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000b\\000\\000\\000b\\000\\000\\000\\020\\361\\371\\000\\000\\000\\000\\000\\216?T\\000\\000\\000\\000\\000 \\327\\377\\377\\377\\177\\000\\000@\\326\\377\\377\\377\\177\\000\\0000\\000\\000\\0000\\000\\000\\000h\\327\\377\\377\\377\\177\\000\\000p\\326\\377\\377\\377\\177\\000\\000\\360\\307\\371\\000\\000\\000\\000\\000 \\273\\370\\000b\\000\\000\\000 \\327\\377\\377\\377\\177\\000\\000\\216?T\\000\\000\\000\\000\\000\\020\\361\\371\\000\\000\\000\\000\\000P\\327\\377\\377\\377\\177\\000\\000pWL\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\216?T\\000\\000\\000\\000\\000\\000\\347\\371\\000\\000\\000\\000\\000P\\327\\377\\377\\377\\177\\000\\000\\000\\327\\037\\366\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\\\\\\"T\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\0002BT\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\215l\\\\g\\030\\303\\366\\a\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\200\\327\\377\\377\\377\\177\\000\\000\\220@\\371\\000\\000\\000\\000\\000\\000@Y\\000\\000\\000\\000\\000\\320\\363\\370\\000\\000\\000\\000\\000\\200\\327\\377\\377\\377\\177\\000\\000A\\214L\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\215l\\\\g\\030\\303\\366\\002\\000\\000\\000\\000\\000\\000\\000\\260\\334\\377\\377\\377\\177\\000\\000\\023[\\315W\\330\\\\\\363'v6\\b\\022\\277\\264O\\000\\023[\\315W\\330\\\\\\363'v6\\b\\022\\277\\264O\\000\\033F\\261\\231|\\324G\\257inherit\\000 \\330\\377\\377\\377\\177\\000\\000\\201\\207L\\000\\000\\000\\000\\000(\\000\\000\\000<\\000\\000\\000\\000\\215l\\\\\\000\\200\\000\\000(\\323\\327w\\017QC\\234l-&\\021\\365\\211,\\0202BT\\000\\000\\000\\000\\000\\000\\347\\371\\000\\000\\000\\000\\000\\037D\\250>\\200\\244\\256\\\\\\a\\000\\000\\000\\000\\000\\000\\000\\006\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\a\\000\\000\\000\\000\\000\\000\\000\\270y7\\236\\000\\000\\000\\000\\371\\322s\\005\\016\\037\\336p3\\\\\\342:\\355p\\016\\a\\371\\322s\\005\\016\\037\\336p3\\\\\\342:\\355p\\016\\a\\033F\\261\\231|\\324G\\257{\\254W\\255\\312UN\\n \\330\\377\\377\\377\\177\\000\\000\\226\\212L\\000\\000\\000\\000\\000\\a\\000\\000\\000\\000\\000\\000\\000\\226\\325}W\\027\\265\\355t \\330\\377\\377\\377\\177\\000\\000W\\203\\001\\3551\\332\\242}\\200\\334\\377\\377\\377\\177\\000\\000\\321\\204L\\000\\000\\000\\000\\000`\\367\\371\\000\\000\\000\\000\\000\\a\\000\\000\\000\\000\\000\\000\\000\\261y7\\236\\000\\000\\000\\000\\200\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000|\\000\\000\\000w\\000\\000\\000n\\000\\000\\000[\\000\\000\\000\\017\\316N\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000(\\000\\000\\000(\\000\\000\\000\\200\\v\\342\\367(\\000\\000\\000\\000@Y\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000 \\273\\370\\000\\000\\000\\000\\000\\231\\342\\314\\367(\\000\\000\\000`\\346\\371\\000\\000\\000\\000\\000\\360\\354\\371\\000\\000\\000\\000\\000G\\333\\377\\377\\377\\177\\000\\000F\\333\\377\\377\\377\\177\\000\\000@\\331\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\377\\177\\000\\000\\240\\333\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000@\\331\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\360\\307\\371\\000\\000\\000\\000\\000F\\333\\377\\377\\377\\177\\000\\000G\\333\\377\\377\\377\\177\\000\\000\\360\\354\\371\\000\\000\\000\\000\\000`\\346\\371\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\240\\333\\377\\377\\377\\177\\000\\000\\316_L\\000\\000\\000\\000\\000@\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\027\\000\\000\\000\\000\\000\\000\\000\\240\\331\\377\\377\\377\\177\\000\\0000\\334\\377\\377\\377\\177\\000\\000 \\333\\377\\377\\377\\177\\000\\000@\\334\\377\\377\\377\\177\\000\\000\\232\\377\\313\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\220\\332\\377\\377\\377\\177\\000\\000\\001\\200\\255\\373\\000\\000\\000\\000@\\334\\377\\377\\377\\177\\000\\000@\\334\\377\\377\\377\\177\\000\\000@\\334\\377\\377\\377\\177\\000\\000@\\334\\377\\377\\377\\177\\000\\000B\\334\\377\\377\\377\\177\\000\\000W\\334\\377\\377\\377\\177\\000\\000@\\334\\377\\377\\377\\177\\000\\000W\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000H\\204X\\000\\200\\000\\000\\000`\\332\\377\\377\\377\\177\\000\\000\\000\\000\\\\\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\0000\\000\\000\\000\\000\\000\\000\\0000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000,\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\177\\000\\000\\260\\333\\377\\377\\377\\177\\000\\000\\030\\335\\377\\377\\377\\177\\000\\000\\240\\321\\341\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\363\\305\\314\\367\\377\\177\\000\\000\\320\\001\\372\\000\\000\\000\\000\\000\\340\\v\\342\\367\\377\\177\\000\\000\\a\\000\\000\\000\\000\\000\\000\\000\\016\\262\\370\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000c\\000\\000\\000\\377\\177\\000\\000\\b\\270\\370\\000\\000\\000\\000\\0000\\020\\000\\000\\000\\000\\000\\000@\\000\\000\\000\\000\\000\\000\\000\\001\\001\\000\\000p\\000\\000\\000\\b\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000|\\000\\000\\000w\\000\\000\\000o\\000\\000\\000c\\000\\000\\0000\\334\\377\\377\\377\\177\\000\\000\\003\\000\\000\\000\\000\\000\\000\\000\\377\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\200\\v\\342\\367\\377\\177\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\340\\001\\372\\000\\000\\000\\000\\000\\340\\021\\372\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\360E\\371\\000\\000\\000\\000\\000\\035]\\313\\367\\377\\177\\000\\000\\000\\375\\000\\000\\000\\000\\000\\000\\246\\200>\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\244\\201\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\b\\000\\000\\000\\000\\000\\000\\000\\n\\300\\316e\\000\\000\\000\\000\\264\\372O$\\000\\000\\000\\000\\t\\300\\316e\\000\\000\\000\\000\\357T\\357&\\000\\000\\000\\000\\t\\300\\316e\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000 \\000\\000\\000\\000\\000\\000\\000\\a\\000\\000\\000\\000\\000\\000\\000\\020\\260\\370\\000\\000\\000\\000\\000\\b\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\020\\260\\370\\000\\000\\000\\000\\000@\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\0000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000|\\000\\000\\000w\\000\\000\\000n\\000\\000\\000[\\000\\000\\000`\\367\\371\\000\\000\\000\\000\\000\\226\\325}W\\027\\265\\355t\\261y7\\236\\000\\000\\000\\000\\a\\000\\000\\000\\000\\000\\000\\000`\\367\\371\\000\\000\\000\\000\\000\\320\\334\\377\\377\\377\\177\\000\\000\\225FL\\000\\000\\000\\000\\000 \\273\\370\\000\\000\\000\\000\\000`\\367\\371\\000\\000\\000\\000\\000\\a\\000\\000\\000\\000\\000\\000\\000\\261y7\\236\\000\\000\\000\\000\\320\\334\\377\\377\\377\\177\\000\\000\\261y7\\236\\000\\000\\000\\000\\a\\000\\000\\000\\000\\000\\000\\000`\\367\\371\\000\\000\\000\\000\\000\\260\\335\\377\\377\\377\\177\\000\\000\\270@L\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\260\\000\\000\\000\\000\\000\\000\\000\\a\\000\\000\\000\\000\\000\\000\\000\\\"\\260\\370\\000\\000\\000\\000\\000\\250\\000\\000\\000\\000\\000\\000\\000\\v\\000\\000\\000\\377\\177\\000\\000X\\260\\370\\000\\000\\000\\000\\000\\n\\000\\000\\000\\001\\000\\000\\000`\\367\\371\\000\\000\\000\\000\\000\\320\\361\\371\\000\\000\\000\\000\\000+>T\\000\\000\\000\\000\\000\\300\\214M\\000\\000\\000\\000\\000\\320\\361\\371\\000\\000\\000\\000\\000\\260\\335\\377\\377\\377\\177\\000\\000n\\000\\000\\000[\\000\\000\\000\\370\\335\\377\\377\\377\\177\\000\\000\\260\\335\\377\\377\\377\\177\\000\\000\\t\\000\\000\\000\\000\\000\\000\\000\\250\\000\\000\\000\\000\\000\\000\\000\\200\\v\\342\\367\\027\\000\\000\\000\\000\\367\\371\\000\\000\\000\\000\\000\\320\\361\\371\\000\\000\\000\\000\""}, "Value After Statement Execution": "0x7fffffffcd90 \"/out\"", "Function Name": "getcwd", "Block_Size": 26, "Project Information": "libucl"} +{"Programming Language": "C", "Source Code": "void\nWS_Init(struct ws *ws, const char *id, void *space, unsigned len)\n{\n\tstruct ws_emu *we;\n\n\tDSLb(DBG_WORKSPACE,\n\t \"WS_Init(%p, \\\"%s\\\", %p, %u)\", ws, id, space, len);\n\tassert(space != NULL);\n\tassert(PAOK(space));\n\tassert(len >= sizeof *we);\n\n\tlen = PRNDDN(len - 1);\n\tINIT_OBJ(ws, WS_MAGIC);\n\tws->s = space;\n\tws->e = ws->s + len;\n\n\tassert(id[0] & 0x20);\t\t\n\tbstrcpy(ws->id, id);\n\n\twe = space;\n\tINIT_OBJ(we, WS_EMU_MAGIC);\n\tVTAILQ_INIT(&we->head);\n\twe->len = len;\n\n\tWS_Assert(ws);\n}", "Selected Statement": "len = PRNDDN(len - 1);", "Function Input": {"ws": {"value": null}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "unsigned int", "Function Name": "PRNDDN", "Block_Size": 9, "Project Information": "varnish"} +{"Programming Language": "C", "Source Code": "void\nWS_Init(struct ws *ws, const char *id, void *space, unsigned len)\n{\n\tstruct ws_emu *we;\n\n\tDSLb(DBG_WORKSPACE,\n\t \"WS_Init(%p, \\\"%s\\\", %p, %u)\", ws, id, space, len);\n\tassert(space != NULL);\n\tassert(PAOK(space));\n\tassert(len >= sizeof *we);\n\n\tlen = PRNDDN(len - 1);\n\tINIT_OBJ(ws, WS_MAGIC);\n\tws->s = space;\n\tws->e = ws->s + len;\n\n\tassert(id[0] & 0x20);\t\t\n\tbstrcpy(ws->id, id);\n\n\twe = space;\n\tINIT_OBJ(we, WS_EMU_MAGIC);\n\tVTAILQ_INIT(&we->head);\n\twe->len = len;\n\n\tWS_Assert(ws);\n}", "Selected Statement": "ws->s = space;", "Function Input": {"ws": {"value": null}}, "Variable Values Before Statement": {"space": "VOID"}, "Value After Statement Execution": "VOID", "Block_Size": 11, "Project Information": "varnish"} +{"Programming Language": "C", "Source Code": "void\nWS_Init(struct ws *ws, const char *id, void *space, unsigned len)\n{\n\tstruct ws_emu *we;\n\n\tDSLb(DBG_WORKSPACE,\n\t \"WS_Init(%p, \\\"%s\\\", %p, %u)\", ws, id, space, len);\n\tassert(space != NULL);\n\tassert(PAOK(space));\n\tassert(len >= sizeof *we);\n\n\tlen = PRNDDN(len - 1);\n\tINIT_OBJ(ws, WS_MAGIC);\n\tws->s = space;\n\tws->e = ws->s + len;\n\n\tassert(id[0] & 0x20);\t\t\n\tbstrcpy(ws->id, id);\n\n\twe = space;\n\tINIT_OBJ(we, WS_EMU_MAGIC);\n\tVTAILQ_INIT(&we->head);\n\twe->len = len;\n\n\tWS_Assert(ws);\n}", "Selected Statement": "we = space;", "Function Input": {"ws": {"value": null}}, "Variable Values Before Statement": {"space": "VOID"}, "Value After Statement Execution": "VOID", "Block_Size": 17, "Project Information": "varnish"} +{"Programming Language": "C", "Source Code": "void\nCxPlatSystemLoad(\n void\n )\n{\n#if defined(CX_PLATFORM_DARWIN)\n \n \n \n \n CxPlatProcessorCount = 1;\n#else\n CxPlatProcessorCount = (uint32_t)sysconf(_SC_NPROCESSORS_ONLN);\n#endif\n\n#ifdef CXPLAT_NUMA_AWARE\n if (numa_available() >= 0) {\n CxPlatNumaNodeCount = (uint32_t)numa_num_configured_nodes();\n CxPlatNumaNodeMasks =\n CXPLAT_ALLOC_NONPAGED(sizeof(cpu_set_t) * CxPlatNumaNodeCount, QUIC_POOL_PLATFORM_PROC);\n CXPLAT_FRE_ASSERT(CxPlatNumaNodeMasks);\n for (uint32_t n = 0; n < CxPlatNumaNodeCount; ++n) {\n CPU_ZERO(&CxPlatNumaNodeMasks[n]);\n CXPLAT_FRE_ASSERT(numa_node_to_cpus_compat((int)n, CxPlatNumaNodeMasks[n].__bits, sizeof(cpu_set_t)) >= 0);\n }\n } else {\n CxPlatNumaNodeCount = 0;\n }\n#endif \n\n#ifdef DEBUG\n CxPlatform.AllocFailDenominator = 0;\n CxPlatform.AllocCounter = 0;\n#endif\n\n \n \n \n \n\n \n \n \n \n\n long ShouldLoad = 1;\n\n \n \n \n char *DisableValue = getenv(\"QUIC_LTTng\");\n if (DisableValue != NULL) {\n ShouldLoad = strtol(DisableValue, NULL, 10);\n }\n\n if (!ShouldLoad) {\n goto Exit;\n }\n\n \n \n \n Dl_info Info;\n int Succeeded = dladdr((void *)CxPlatSystemLoad, &Info);\n if (!Succeeded) {\n goto Exit;\n }\n\n size_t PathLen = strlen(Info.dli_fname);\n\n \n \n \n int LastTrailingSlashLen = -1;\n for (int i = PathLen; i >= 0; i--) {\n if (Info.dli_fname[i] == '/') {\n LastTrailingSlashLen = i + 1;\n break;\n }\n }\n\n if (LastTrailingSlashLen == -1) {\n goto Exit;\n }\n\n size_t TpLibNameLen = strlen(TpLibName);\n size_t ProviderFullPathLength = TpLibNameLen + LastTrailingSlashLen + 1;\n\n char* ProviderFullPath = CXPLAT_ALLOC_PAGED(ProviderFullPathLength, QUIC_POOL_PLATFORM_TMP_ALLOC);\n if (ProviderFullPath == NULL) {\n goto Exit;\n }\n\n CxPlatCopyMemory(ProviderFullPath, Info.dli_fname, LastTrailingSlashLen);\n CxPlatCopyMemory(ProviderFullPath + LastTrailingSlashLen, TpLibName, TpLibNameLen);\n ProviderFullPath[LastTrailingSlashLen + TpLibNameLen] = '\\0';\n\n \n \n \n \n dlopen(ProviderFullPath, RTLD_NOW | RTLD_GLOBAL);\n\n CXPLAT_FREE(ProviderFullPath, QUIC_POOL_PLATFORM_TMP_ALLOC);\n\nExit:\n\n QuicTraceLogInfo(\n PosixLoaded,\n \"[ dso] Loaded\");\n}", "Selected Statement": "CxPlatform.AllocFailDenominator = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 29, "Project Information": "msquic"} +{"Programming Language": "C", "Source Code": "void\nCxPlatSystemLoad(\n void\n )\n{\n#if defined(CX_PLATFORM_DARWIN)\n \n \n \n \n CxPlatProcessorCount = 1;\n#else\n CxPlatProcessorCount = (uint32_t)sysconf(_SC_NPROCESSORS_ONLN);\n#endif\n\n#ifdef CXPLAT_NUMA_AWARE\n if (numa_available() >= 0) {\n CxPlatNumaNodeCount = (uint32_t)numa_num_configured_nodes();\n CxPlatNumaNodeMasks =\n CXPLAT_ALLOC_NONPAGED(sizeof(cpu_set_t) * CxPlatNumaNodeCount, QUIC_POOL_PLATFORM_PROC);\n CXPLAT_FRE_ASSERT(CxPlatNumaNodeMasks);\n for (uint32_t n = 0; n < CxPlatNumaNodeCount; ++n) {\n CPU_ZERO(&CxPlatNumaNodeMasks[n]);\n CXPLAT_FRE_ASSERT(numa_node_to_cpus_compat((int)n, CxPlatNumaNodeMasks[n].__bits, sizeof(cpu_set_t)) >= 0);\n }\n } else {\n CxPlatNumaNodeCount = 0;\n }\n#endif \n\n#ifdef DEBUG\n CxPlatform.AllocFailDenominator = 0;\n CxPlatform.AllocCounter = 0;\n#endif\n\n \n \n \n \n\n \n \n \n \n\n long ShouldLoad = 1;\n\n \n \n \n char *DisableValue = getenv(\"QUIC_LTTng\");\n if (DisableValue != NULL) {\n ShouldLoad = strtol(DisableValue, NULL, 10);\n }\n\n if (!ShouldLoad) {\n goto Exit;\n }\n\n \n \n \n Dl_info Info;\n int Succeeded = dladdr((void *)CxPlatSystemLoad, &Info);\n if (!Succeeded) {\n goto Exit;\n }\n\n size_t PathLen = strlen(Info.dli_fname);\n\n \n \n \n int LastTrailingSlashLen = -1;\n for (int i = PathLen; i >= 0; i--) {\n if (Info.dli_fname[i] == '/') {\n LastTrailingSlashLen = i + 1;\n break;\n }\n }\n\n if (LastTrailingSlashLen == -1) {\n goto Exit;\n }\n\n size_t TpLibNameLen = strlen(TpLibName);\n size_t ProviderFullPathLength = TpLibNameLen + LastTrailingSlashLen + 1;\n\n char* ProviderFullPath = CXPLAT_ALLOC_PAGED(ProviderFullPathLength, QUIC_POOL_PLATFORM_TMP_ALLOC);\n if (ProviderFullPath == NULL) {\n goto Exit;\n }\n\n CxPlatCopyMemory(ProviderFullPath, Info.dli_fname, LastTrailingSlashLen);\n CxPlatCopyMemory(ProviderFullPath + LastTrailingSlashLen, TpLibName, TpLibNameLen);\n ProviderFullPath[LastTrailingSlashLen + TpLibNameLen] = '\\0';\n\n \n \n \n \n dlopen(ProviderFullPath, RTLD_NOW | RTLD_GLOBAL);\n\n CXPLAT_FREE(ProviderFullPath, QUIC_POOL_PLATFORM_TMP_ALLOC);\n\nExit:\n\n QuicTraceLogInfo(\n PosixLoaded,\n \"[ dso] Loaded\");\n}", "Selected Statement": "char *DisableValue = getenv(\"QUIC_LTTng\");", "Function Input": {}, "Variable Values Before Statement": {"\"QUIC_LTTng\"": "\"QUIC_LTTng\""}, "Value After Statement Execution": "NULL", "Function Name": "getenv", "Block_Size": 48, "Project Information": "msquic"} +{"Programming Language": "C", "Source Code": "void\nCxPlatSystemLoad(\n void\n )\n{\n#if defined(CX_PLATFORM_DARWIN)\n \n \n \n \n CxPlatProcessorCount = 1;\n#else\n CxPlatProcessorCount = (uint32_t)sysconf(_SC_NPROCESSORS_ONLN);\n#endif\n\n#ifdef CXPLAT_NUMA_AWARE\n if (numa_available() >= 0) {\n CxPlatNumaNodeCount = (uint32_t)numa_num_configured_nodes();\n CxPlatNumaNodeMasks =\n CXPLAT_ALLOC_NONPAGED(sizeof(cpu_set_t) * CxPlatNumaNodeCount, QUIC_POOL_PLATFORM_PROC);\n CXPLAT_FRE_ASSERT(CxPlatNumaNodeMasks);\n for (uint32_t n = 0; n < CxPlatNumaNodeCount; ++n) {\n CPU_ZERO(&CxPlatNumaNodeMasks[n]);\n CXPLAT_FRE_ASSERT(numa_node_to_cpus_compat((int)n, CxPlatNumaNodeMasks[n].__bits, sizeof(cpu_set_t)) >= 0);\n }\n } else {\n CxPlatNumaNodeCount = 0;\n }\n#endif \n\n#ifdef DEBUG\n CxPlatform.AllocFailDenominator = 0;\n CxPlatform.AllocCounter = 0;\n#endif\n\n \n \n \n \n\n \n \n \n \n\n long ShouldLoad = 1;\n\n \n \n \n char *DisableValue = getenv(\"QUIC_LTTng\");\n if (DisableValue != NULL) {\n ShouldLoad = strtol(DisableValue, NULL, 10);\n }\n\n if (!ShouldLoad) {\n goto Exit;\n }\n\n \n \n \n Dl_info Info;\n int Succeeded = dladdr((void *)CxPlatSystemLoad, &Info);\n if (!Succeeded) {\n goto Exit;\n }\n\n size_t PathLen = strlen(Info.dli_fname);\n\n \n \n \n int LastTrailingSlashLen = -1;\n for (int i = PathLen; i >= 0; i--) {\n if (Info.dli_fname[i] == '/') {\n LastTrailingSlashLen = i + 1;\n break;\n }\n }\n\n if (LastTrailingSlashLen == -1) {\n goto Exit;\n }\n\n size_t TpLibNameLen = strlen(TpLibName);\n size_t ProviderFullPathLength = TpLibNameLen + LastTrailingSlashLen + 1;\n\n char* ProviderFullPath = CXPLAT_ALLOC_PAGED(ProviderFullPathLength, QUIC_POOL_PLATFORM_TMP_ALLOC);\n if (ProviderFullPath == NULL) {\n goto Exit;\n }\n\n CxPlatCopyMemory(ProviderFullPath, Info.dli_fname, LastTrailingSlashLen);\n CxPlatCopyMemory(ProviderFullPath + LastTrailingSlashLen, TpLibName, TpLibNameLen);\n ProviderFullPath[LastTrailingSlashLen + TpLibNameLen] = '\\0';\n\n \n \n \n \n dlopen(ProviderFullPath, RTLD_NOW | RTLD_GLOBAL);\n\n CXPLAT_FREE(ProviderFullPath, QUIC_POOL_PLATFORM_TMP_ALLOC);\n\nExit:\n\n QuicTraceLogInfo(\n PosixLoaded,\n \"[ dso] Loaded\");\n}", "Selected Statement": "int Succeeded = dladdr((void *)CxPlatSystemLoad, &Info);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "int", "Function Name": "dladdr", "Block_Size": 61, "Project Information": "msquic"} +{"Programming Language": "C", "Source Code": "void\nCxPlatSystemLoad(\n void\n )\n{\n#if defined(CX_PLATFORM_DARWIN)\n \n \n \n \n CxPlatProcessorCount = 1;\n#else\n CxPlatProcessorCount = (uint32_t)sysconf(_SC_NPROCESSORS_ONLN);\n#endif\n\n#ifdef CXPLAT_NUMA_AWARE\n if (numa_available() >= 0) {\n CxPlatNumaNodeCount = (uint32_t)numa_num_configured_nodes();\n CxPlatNumaNodeMasks =\n CXPLAT_ALLOC_NONPAGED(sizeof(cpu_set_t) * CxPlatNumaNodeCount, QUIC_POOL_PLATFORM_PROC);\n CXPLAT_FRE_ASSERT(CxPlatNumaNodeMasks);\n for (uint32_t n = 0; n < CxPlatNumaNodeCount; ++n) {\n CPU_ZERO(&CxPlatNumaNodeMasks[n]);\n CXPLAT_FRE_ASSERT(numa_node_to_cpus_compat((int)n, CxPlatNumaNodeMasks[n].__bits, sizeof(cpu_set_t)) >= 0);\n }\n } else {\n CxPlatNumaNodeCount = 0;\n }\n#endif \n\n#ifdef DEBUG\n CxPlatform.AllocFailDenominator = 0;\n CxPlatform.AllocCounter = 0;\n#endif\n\n \n \n \n \n\n \n \n \n \n\n long ShouldLoad = 1;\n\n \n \n \n char *DisableValue = getenv(\"QUIC_LTTng\");\n if (DisableValue != NULL) {\n ShouldLoad = strtol(DisableValue, NULL, 10);\n }\n\n if (!ShouldLoad) {\n goto Exit;\n }\n\n \n \n \n Dl_info Info;\n int Succeeded = dladdr((void *)CxPlatSystemLoad, &Info);\n if (!Succeeded) {\n goto Exit;\n }\n\n size_t PathLen = strlen(Info.dli_fname);\n\n \n \n \n int LastTrailingSlashLen = -1;\n for (int i = PathLen; i >= 0; i--) {\n if (Info.dli_fname[i] == '/') {\n LastTrailingSlashLen = i + 1;\n break;\n }\n }\n\n if (LastTrailingSlashLen == -1) {\n goto Exit;\n }\n\n size_t TpLibNameLen = strlen(TpLibName);\n size_t ProviderFullPathLength = TpLibNameLen + LastTrailingSlashLen + 1;\n\n char* ProviderFullPath = CXPLAT_ALLOC_PAGED(ProviderFullPathLength, QUIC_POOL_PLATFORM_TMP_ALLOC);\n if (ProviderFullPath == NULL) {\n goto Exit;\n }\n\n CxPlatCopyMemory(ProviderFullPath, Info.dli_fname, LastTrailingSlashLen);\n CxPlatCopyMemory(ProviderFullPath + LastTrailingSlashLen, TpLibName, TpLibNameLen);\n ProviderFullPath[LastTrailingSlashLen + TpLibNameLen] = '\\0';\n\n \n \n \n \n dlopen(ProviderFullPath, RTLD_NOW | RTLD_GLOBAL);\n\n CXPLAT_FREE(ProviderFullPath, QUIC_POOL_PLATFORM_TMP_ALLOC);\n\nExit:\n\n QuicTraceLogInfo(\n PosixLoaded,\n \"[ dso] Loaded\");\n}", "Selected Statement": "int LastTrailingSlashLen = -1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 71, "Project Information": "msquic"} +{"Programming Language": "C", "Source Code": "void\nCxPlatSystemLoad(\n void\n )\n{\n#if defined(CX_PLATFORM_DARWIN)\n \n \n \n \n CxPlatProcessorCount = 1;\n#else\n CxPlatProcessorCount = (uint32_t)sysconf(_SC_NPROCESSORS_ONLN);\n#endif\n\n#ifdef CXPLAT_NUMA_AWARE\n if (numa_available() >= 0) {\n CxPlatNumaNodeCount = (uint32_t)numa_num_configured_nodes();\n CxPlatNumaNodeMasks =\n CXPLAT_ALLOC_NONPAGED(sizeof(cpu_set_t) * CxPlatNumaNodeCount, QUIC_POOL_PLATFORM_PROC);\n CXPLAT_FRE_ASSERT(CxPlatNumaNodeMasks);\n for (uint32_t n = 0; n < CxPlatNumaNodeCount; ++n) {\n CPU_ZERO(&CxPlatNumaNodeMasks[n]);\n CXPLAT_FRE_ASSERT(numa_node_to_cpus_compat((int)n, CxPlatNumaNodeMasks[n].__bits, sizeof(cpu_set_t)) >= 0);\n }\n } else {\n CxPlatNumaNodeCount = 0;\n }\n#endif \n\n#ifdef DEBUG\n CxPlatform.AllocFailDenominator = 0;\n CxPlatform.AllocCounter = 0;\n#endif\n\n \n \n \n \n\n \n \n \n \n\n long ShouldLoad = 1;\n\n \n \n \n char *DisableValue = getenv(\"QUIC_LTTng\");\n if (DisableValue != NULL) {\n ShouldLoad = strtol(DisableValue, NULL, 10);\n }\n\n if (!ShouldLoad) {\n goto Exit;\n }\n\n \n \n \n Dl_info Info;\n int Succeeded = dladdr((void *)CxPlatSystemLoad, &Info);\n if (!Succeeded) {\n goto Exit;\n }\n\n size_t PathLen = strlen(Info.dli_fname);\n\n \n \n \n int LastTrailingSlashLen = -1;\n for (int i = PathLen; i >= 0; i--) {\n if (Info.dli_fname[i] == '/') {\n LastTrailingSlashLen = i + 1;\n break;\n }\n }\n\n if (LastTrailingSlashLen == -1) {\n goto Exit;\n }\n\n size_t TpLibNameLen = strlen(TpLibName);\n size_t ProviderFullPathLength = TpLibNameLen + LastTrailingSlashLen + 1;\n\n char* ProviderFullPath = CXPLAT_ALLOC_PAGED(ProviderFullPathLength, QUIC_POOL_PLATFORM_TMP_ALLOC);\n if (ProviderFullPath == NULL) {\n goto Exit;\n }\n\n CxPlatCopyMemory(ProviderFullPath, Info.dli_fname, LastTrailingSlashLen);\n CxPlatCopyMemory(ProviderFullPath + LastTrailingSlashLen, TpLibName, TpLibNameLen);\n ProviderFullPath[LastTrailingSlashLen + TpLibNameLen] = '\\0';\n\n \n \n \n \n dlopen(ProviderFullPath, RTLD_NOW | RTLD_GLOBAL);\n\n CXPLAT_FREE(ProviderFullPath, QUIC_POOL_PLATFORM_TMP_ALLOC);\n\nExit:\n\n QuicTraceLogInfo(\n PosixLoaded,\n \"[ dso] Loaded\");\n}", "Selected Statement": "for (int i = PathLen; i >= 0; i--) {", "Function Input": {}, "Variable Values Before Statement": {"PathLen": ""}, "Value After Statement Execution": "", "Block_Size": 72, "Project Information": "msquic"} +{"Programming Language": "C", "Source Code": "void\nCxPlatSystemLoad(\n void\n )\n{\n#if defined(CX_PLATFORM_DARWIN)\n \n \n \n \n CxPlatProcessorCount = 1;\n#else\n CxPlatProcessorCount = (uint32_t)sysconf(_SC_NPROCESSORS_ONLN);\n#endif\n\n#ifdef CXPLAT_NUMA_AWARE\n if (numa_available() >= 0) {\n CxPlatNumaNodeCount = (uint32_t)numa_num_configured_nodes();\n CxPlatNumaNodeMasks =\n CXPLAT_ALLOC_NONPAGED(sizeof(cpu_set_t) * CxPlatNumaNodeCount, QUIC_POOL_PLATFORM_PROC);\n CXPLAT_FRE_ASSERT(CxPlatNumaNodeMasks);\n for (uint32_t n = 0; n < CxPlatNumaNodeCount; ++n) {\n CPU_ZERO(&CxPlatNumaNodeMasks[n]);\n CXPLAT_FRE_ASSERT(numa_node_to_cpus_compat((int)n, CxPlatNumaNodeMasks[n].__bits, sizeof(cpu_set_t)) >= 0);\n }\n } else {\n CxPlatNumaNodeCount = 0;\n }\n#endif \n\n#ifdef DEBUG\n CxPlatform.AllocFailDenominator = 0;\n CxPlatform.AllocCounter = 0;\n#endif\n\n \n \n \n \n\n \n \n \n \n\n long ShouldLoad = 1;\n\n \n \n \n char *DisableValue = getenv(\"QUIC_LTTng\");\n if (DisableValue != NULL) {\n ShouldLoad = strtol(DisableValue, NULL, 10);\n }\n\n if (!ShouldLoad) {\n goto Exit;\n }\n\n \n \n \n Dl_info Info;\n int Succeeded = dladdr((void *)CxPlatSystemLoad, &Info);\n if (!Succeeded) {\n goto Exit;\n }\n\n size_t PathLen = strlen(Info.dli_fname);\n\n \n \n \n int LastTrailingSlashLen = -1;\n for (int i = PathLen; i >= 0; i--) {\n if (Info.dli_fname[i] == '/') {\n LastTrailingSlashLen = i + 1;\n break;\n }\n }\n\n if (LastTrailingSlashLen == -1) {\n goto Exit;\n }\n\n size_t TpLibNameLen = strlen(TpLibName);\n size_t ProviderFullPathLength = TpLibNameLen + LastTrailingSlashLen + 1;\n\n char* ProviderFullPath = CXPLAT_ALLOC_PAGED(ProviderFullPathLength, QUIC_POOL_PLATFORM_TMP_ALLOC);\n if (ProviderFullPath == NULL) {\n goto Exit;\n }\n\n CxPlatCopyMemory(ProviderFullPath, Info.dli_fname, LastTrailingSlashLen);\n CxPlatCopyMemory(ProviderFullPath + LastTrailingSlashLen, TpLibName, TpLibNameLen);\n ProviderFullPath[LastTrailingSlashLen + TpLibNameLen] = '\\0';\n\n \n \n \n \n dlopen(ProviderFullPath, RTLD_NOW | RTLD_GLOBAL);\n\n CXPLAT_FREE(ProviderFullPath, QUIC_POOL_PLATFORM_TMP_ALLOC);\n\nExit:\n\n QuicTraceLogInfo(\n PosixLoaded,\n \"[ dso] Loaded\");\n}", "Selected Statement": "size_t TpLibNameLen = strlen(TpLibName);", "Function Input": {}, "Variable Values Before Statement": {"TpLibName": "\"libmsquic.lttng.so.2.4.0\""}, "Value After Statement Execution": "24", "Function Name": "strlen", "Block_Size": 83, "Project Information": "msquic"} +{"Programming Language": "C", "Source Code": "void\nCxPlatSystemLoad(\n void\n )\n{\n#if defined(CX_PLATFORM_DARWIN)\n \n \n \n \n CxPlatProcessorCount = 1;\n#else\n CxPlatProcessorCount = (uint32_t)sysconf(_SC_NPROCESSORS_ONLN);\n#endif\n\n#ifdef CXPLAT_NUMA_AWARE\n if (numa_available() >= 0) {\n CxPlatNumaNodeCount = (uint32_t)numa_num_configured_nodes();\n CxPlatNumaNodeMasks =\n CXPLAT_ALLOC_NONPAGED(sizeof(cpu_set_t) * CxPlatNumaNodeCount, QUIC_POOL_PLATFORM_PROC);\n CXPLAT_FRE_ASSERT(CxPlatNumaNodeMasks);\n for (uint32_t n = 0; n < CxPlatNumaNodeCount; ++n) {\n CPU_ZERO(&CxPlatNumaNodeMasks[n]);\n CXPLAT_FRE_ASSERT(numa_node_to_cpus_compat((int)n, CxPlatNumaNodeMasks[n].__bits, sizeof(cpu_set_t)) >= 0);\n }\n } else {\n CxPlatNumaNodeCount = 0;\n }\n#endif \n\n#ifdef DEBUG\n CxPlatform.AllocFailDenominator = 0;\n CxPlatform.AllocCounter = 0;\n#endif\n\n \n \n \n \n\n \n \n \n \n\n long ShouldLoad = 1;\n\n \n \n \n char *DisableValue = getenv(\"QUIC_LTTng\");\n if (DisableValue != NULL) {\n ShouldLoad = strtol(DisableValue, NULL, 10);\n }\n\n if (!ShouldLoad) {\n goto Exit;\n }\n\n \n \n \n Dl_info Info;\n int Succeeded = dladdr((void *)CxPlatSystemLoad, &Info);\n if (!Succeeded) {\n goto Exit;\n }\n\n size_t PathLen = strlen(Info.dli_fname);\n\n \n \n \n int LastTrailingSlashLen = -1;\n for (int i = PathLen; i >= 0; i--) {\n if (Info.dli_fname[i] == '/') {\n LastTrailingSlashLen = i + 1;\n break;\n }\n }\n\n if (LastTrailingSlashLen == -1) {\n goto Exit;\n }\n\n size_t TpLibNameLen = strlen(TpLibName);\n size_t ProviderFullPathLength = TpLibNameLen + LastTrailingSlashLen + 1;\n\n char* ProviderFullPath = CXPLAT_ALLOC_PAGED(ProviderFullPathLength, QUIC_POOL_PLATFORM_TMP_ALLOC);\n if (ProviderFullPath == NULL) {\n goto Exit;\n }\n\n CxPlatCopyMemory(ProviderFullPath, Info.dli_fname, LastTrailingSlashLen);\n CxPlatCopyMemory(ProviderFullPath + LastTrailingSlashLen, TpLibName, TpLibNameLen);\n ProviderFullPath[LastTrailingSlashLen + TpLibNameLen] = '\\0';\n\n \n \n \n \n dlopen(ProviderFullPath, RTLD_NOW | RTLD_GLOBAL);\n\n CXPLAT_FREE(ProviderFullPath, QUIC_POOL_PLATFORM_TMP_ALLOC);\n\nExit:\n\n QuicTraceLogInfo(\n PosixLoaded,\n \"[ dso] Loaded\");\n}", "Selected Statement": "char* ProviderFullPath = CXPLAT_ALLOC_PAGED(ProviderFullPathLength, QUIC_POOL_PLATFORM_TMP_ALLOC);", "Function Input": {}, "Variable Values Before Statement": {"ProviderFullPathLength": "", "QUIC_POOL_PLATFORM_TMP_ALLOC": "NULL"}, "Value After Statement Execution": "NULL", "Function Name": "CXPLAT_ALLOC_PAGED", "Block_Size": 86, "Project Information": "msquic"} +{"Programming Language": "C", "Source Code": "uint64_t\nCGroupGetMemoryLimit()\n{\n uint64_t PhysicalMemoryLimit = 0;\n uint64_t RestrictedMemoryLimit = 0;\n\n CGroupInitialize();\n\n PhysicalMemoryLimit = GetPhysicalMemoryLimit();\n\n if (!GetCGroupRestrictedMemoryLimit(&RestrictedMemoryLimit)) {\n goto Done;\n }\n\n \n \n \n \n \n \n if (RestrictedMemoryLimit > 0x7FFFFFFF00000000) {\n goto Done;\n }\n\n struct rlimit CurrRlimit;\n size_t RlimitSoftLimit = (size_t)RLIM_INFINITY;\n if (getrlimit(RLIMIT_AS, &CurrRlimit) == 0) {\n RlimitSoftLimit = CurrRlimit.rlim_cur;\n }\n RestrictedMemoryLimit = (RestrictedMemoryLimit < RlimitSoftLimit) ?\n RestrictedMemoryLimit : RlimitSoftLimit;\n\n \n \n \n PhysicalMemoryLimit = (RestrictedMemoryLimit < PhysicalMemoryLimit) ?\n RestrictedMemoryLimit : PhysicalMemoryLimit;\n\n if (PhysicalMemoryLimit > SIZE_T_MAX)\n {\n \n \n \n \n PhysicalMemoryLimit = SIZE_T_MAX;\n }\n\nDone:\n\n CGroupCleanup();\n\n if (PhysicalMemoryLimit == 0) {\n PhysicalMemoryLimit = 0x40000000; \n }\n\n return PhysicalMemoryLimit;\n}", "Selected Statement": "uint64_t PhysicalMemoryLimit = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 1, "Project Information": "msquic"} +{"Programming Language": "C", "Source Code": "void\nlog_register(void (*cb)(int, const char *))\n{\n\tlogh = cb;\n}", "Selected Statement": "logh = cb;", "Function Input": {}, "Variable Values Before Statement": {"cb": "{void (int, const char *)} 0x55555564e5c0 "}, "Value After Statement Execution": "{void (int, const char *)} 0x55555564e5c0 ", "Block_Size": 1, "Project Information": "lldpd"} +{"Programming Language": "C", "Source Code": "int\nsonmp_decode(struct lldpd *cfg, char *frame, int s, struct lldpd_hardware *hardware,\n struct lldpd_chassis **newchassis, struct lldpd_port **newport)\n{\n\tconst u_int8_t mcastaddr[] = SONMP_MULTICAST_ADDR;\n\tstruct lldpd_chassis *chassis;\n\tstruct lldpd_port *port;\n\tstruct lldpd_mgmt *mgmt;\n\tint length, i;\n\tu_int8_t *pos;\n\tu_int8_t seg[3], rchassis;\n\tstruct in_addr address;\n\n\tlog_debug(\"sonmp\", \"decode SONMP PDU from %s\", hardware->h_ifname);\n\n\tif ((chassis = calloc(1, sizeof(struct lldpd_chassis))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote chassis\");\n\t\treturn -1;\n\t}\n\tTAILQ_INIT(&chassis->c_mgmt);\n\tif ((port = calloc(1, sizeof(struct lldpd_port))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote port\");\n\t\tfree(chassis);\n\t\treturn -1;\n\t}\n# ifdef ENABLE_DOT1\n\tTAILQ_INIT(&port->p_vlans);\n# endif\n\n\tlength = s;\n\tpos = (u_int8_t *)frame;\n\tif (length < SONMP_SIZE + 2 * ETHER_ADDR_LEN + sizeof(u_int16_t)) {\n\t\tlog_warnx(\"sonmp\", \"too short SONMP frame received on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tif (PEEK_CMP(mcastaddr, sizeof(mcastaddr)) != 0)\n\t\t\n\t\tgoto malformed;\n\t\n\tPEEK_DISCARD(ETHER_ADDR_LEN);\n\tPEEK_DISCARD_UINT16;\n\tPEEK_DISCARD(6);\n\tif (PEEK_UINT16 != LLC_PID_SONMP_HELLO) {\n\t\tlog_debug(\"sonmp\", \"incorrect LLC protocol ID received for SONMP on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\tchassis->c_id_subtype = LLDP_CHASSISID_SUBTYPE_ADDR;\n\tif ((chassis->c_id = calloc(1, sizeof(struct in_addr) + 1)) == NULL) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for chassis id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tchassis->c_id_len = sizeof(struct in_addr) + 1;\n\tchassis->c_id[0] = 1;\n\tPEEK_BYTES(&address, sizeof(struct in_addr));\n\tmemcpy(chassis->c_id + 1, &address, sizeof(struct in_addr));\n\tif (asprintf(&chassis->c_name, \"%s\", inet_ntoa(address)) == -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis name for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tPEEK_BYTES(seg, sizeof(seg));\n\trchassis = PEEK_UINT8;\n\tfor (i = 0; sonmp_chassis_types[i].type != 0; i++) {\n\t\tif (sonmp_chassis_types[i].type == rchassis) break;\n\t}\n\tif (asprintf(&chassis->c_descr, \"%s\", sonmp_chassis_types[i].description) ==\n\t -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis description for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tmgmt = lldpd_alloc_mgmt(LLDPD_AF_IPV4, &address, sizeof(struct in_addr), 0);\n\tif (mgmt == NULL) {\n\t\tif (errno == ENOMEM)\n\t\t\tlog_warn(\"sonmp\",\n\t\t\t \"unable to allocate memory for management address\");\n\t\telse\n\t\t\tlog_warn(\"sonmp\", \"too large management address received on %s\",\n\t\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tTAILQ_INSERT_TAIL(&chassis->c_mgmt, mgmt, m_entries);\n\tport->p_ttl =\n\t cfg ? (cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold) : LLDPD_TTL;\n\tport->p_ttl = (port->p_ttl + 999) / 1000;\n\n\tport->p_id_subtype = LLDP_PORTID_SUBTYPE_LOCAL;\n\n\tport->p_id_len =\n\t asprintf(&port->p_id, \"%02x-%02x-%02x\", seg[0], seg[1], seg[2]);\n\tif (port->p_id_len == -1) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for port id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\t\n\tif ((seg[0] == 0) && (seg[1] == 0)) {\n\t\tif (asprintf(&port->p_descr, \"port %d\", seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else if (seg[0] == 0) {\n\t\tif (asprintf(&port->p_descr, \"port %d/%d\", seg[1], seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else {\n\t\tif (asprintf(&port->p_descr, \"port %x:%x:%x\", seg[0], seg[1], seg[2]) ==\n\t\t -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t}\n\t*newchassis = chassis;\n\t*newport = port;\n\treturn 1;\n\nmalformed:\n\tlldpd_chassis_cleanup(chassis, 1);\n\tlldpd_port_cleanup(port, 1);\n\tfree(port);\n\treturn -1;\n}", "Selected Statement": "length = s;", "Function Input": {"hardware": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x18\n", "message": "Cannot access memory at address 0x18"}}}, "Variable Values Before Statement": {"s": "int"}, "Value After Statement Execution": "int", "Block_Size": 27, "Project Information": "lldpd"} +{"Programming Language": "C", "Source Code": "int\nsonmp_decode(struct lldpd *cfg, char *frame, int s, struct lldpd_hardware *hardware,\n struct lldpd_chassis **newchassis, struct lldpd_port **newport)\n{\n\tconst u_int8_t mcastaddr[] = SONMP_MULTICAST_ADDR;\n\tstruct lldpd_chassis *chassis;\n\tstruct lldpd_port *port;\n\tstruct lldpd_mgmt *mgmt;\n\tint length, i;\n\tu_int8_t *pos;\n\tu_int8_t seg[3], rchassis;\n\tstruct in_addr address;\n\n\tlog_debug(\"sonmp\", \"decode SONMP PDU from %s\", hardware->h_ifname);\n\n\tif ((chassis = calloc(1, sizeof(struct lldpd_chassis))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote chassis\");\n\t\treturn -1;\n\t}\n\tTAILQ_INIT(&chassis->c_mgmt);\n\tif ((port = calloc(1, sizeof(struct lldpd_port))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote port\");\n\t\tfree(chassis);\n\t\treturn -1;\n\t}\n# ifdef ENABLE_DOT1\n\tTAILQ_INIT(&port->p_vlans);\n# endif\n\n\tlength = s;\n\tpos = (u_int8_t *)frame;\n\tif (length < SONMP_SIZE + 2 * ETHER_ADDR_LEN + sizeof(u_int16_t)) {\n\t\tlog_warnx(\"sonmp\", \"too short SONMP frame received on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tif (PEEK_CMP(mcastaddr, sizeof(mcastaddr)) != 0)\n\t\t\n\t\tgoto malformed;\n\t\n\tPEEK_DISCARD(ETHER_ADDR_LEN);\n\tPEEK_DISCARD_UINT16;\n\tPEEK_DISCARD(6);\n\tif (PEEK_UINT16 != LLC_PID_SONMP_HELLO) {\n\t\tlog_debug(\"sonmp\", \"incorrect LLC protocol ID received for SONMP on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\tchassis->c_id_subtype = LLDP_CHASSISID_SUBTYPE_ADDR;\n\tif ((chassis->c_id = calloc(1, sizeof(struct in_addr) + 1)) == NULL) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for chassis id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tchassis->c_id_len = sizeof(struct in_addr) + 1;\n\tchassis->c_id[0] = 1;\n\tPEEK_BYTES(&address, sizeof(struct in_addr));\n\tmemcpy(chassis->c_id + 1, &address, sizeof(struct in_addr));\n\tif (asprintf(&chassis->c_name, \"%s\", inet_ntoa(address)) == -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis name for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tPEEK_BYTES(seg, sizeof(seg));\n\trchassis = PEEK_UINT8;\n\tfor (i = 0; sonmp_chassis_types[i].type != 0; i++) {\n\t\tif (sonmp_chassis_types[i].type == rchassis) break;\n\t}\n\tif (asprintf(&chassis->c_descr, \"%s\", sonmp_chassis_types[i].description) ==\n\t -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis description for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tmgmt = lldpd_alloc_mgmt(LLDPD_AF_IPV4, &address, sizeof(struct in_addr), 0);\n\tif (mgmt == NULL) {\n\t\tif (errno == ENOMEM)\n\t\t\tlog_warn(\"sonmp\",\n\t\t\t \"unable to allocate memory for management address\");\n\t\telse\n\t\t\tlog_warn(\"sonmp\", \"too large management address received on %s\",\n\t\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tTAILQ_INSERT_TAIL(&chassis->c_mgmt, mgmt, m_entries);\n\tport->p_ttl =\n\t cfg ? (cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold) : LLDPD_TTL;\n\tport->p_ttl = (port->p_ttl + 999) / 1000;\n\n\tport->p_id_subtype = LLDP_PORTID_SUBTYPE_LOCAL;\n\n\tport->p_id_len =\n\t asprintf(&port->p_id, \"%02x-%02x-%02x\", seg[0], seg[1], seg[2]);\n\tif (port->p_id_len == -1) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for port id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\t\n\tif ((seg[0] == 0) && (seg[1] == 0)) {\n\t\tif (asprintf(&port->p_descr, \"port %d\", seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else if (seg[0] == 0) {\n\t\tif (asprintf(&port->p_descr, \"port %d/%d\", seg[1], seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else {\n\t\tif (asprintf(&port->p_descr, \"port %x:%x:%x\", seg[0], seg[1], seg[2]) ==\n\t\t -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t}\n\t*newchassis = chassis;\n\t*newport = port;\n\treturn 1;\n\nmalformed:\n\tlldpd_chassis_cleanup(chassis, 1);\n\tlldpd_port_cleanup(port, 1);\n\tfree(port);\n\treturn -1;\n}", "Selected Statement": "chassis->c_id_subtype = LLDP_CHASSISID_SUBTYPE_ADDR;", "Function Input": {"hardware": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x18\n", "message": "Cannot access memory at address 0x18"}}}, "Variable Values Before Statement": {"LLDP_CHASSISID_SUBTYPE_ADDR": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 48, "Project Information": "lldpd"} +{"Programming Language": "C", "Source Code": "int\nsonmp_decode(struct lldpd *cfg, char *frame, int s, struct lldpd_hardware *hardware,\n struct lldpd_chassis **newchassis, struct lldpd_port **newport)\n{\n\tconst u_int8_t mcastaddr[] = SONMP_MULTICAST_ADDR;\n\tstruct lldpd_chassis *chassis;\n\tstruct lldpd_port *port;\n\tstruct lldpd_mgmt *mgmt;\n\tint length, i;\n\tu_int8_t *pos;\n\tu_int8_t seg[3], rchassis;\n\tstruct in_addr address;\n\n\tlog_debug(\"sonmp\", \"decode SONMP PDU from %s\", hardware->h_ifname);\n\n\tif ((chassis = calloc(1, sizeof(struct lldpd_chassis))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote chassis\");\n\t\treturn -1;\n\t}\n\tTAILQ_INIT(&chassis->c_mgmt);\n\tif ((port = calloc(1, sizeof(struct lldpd_port))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote port\");\n\t\tfree(chassis);\n\t\treturn -1;\n\t}\n# ifdef ENABLE_DOT1\n\tTAILQ_INIT(&port->p_vlans);\n# endif\n\n\tlength = s;\n\tpos = (u_int8_t *)frame;\n\tif (length < SONMP_SIZE + 2 * ETHER_ADDR_LEN + sizeof(u_int16_t)) {\n\t\tlog_warnx(\"sonmp\", \"too short SONMP frame received on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tif (PEEK_CMP(mcastaddr, sizeof(mcastaddr)) != 0)\n\t\t\n\t\tgoto malformed;\n\t\n\tPEEK_DISCARD(ETHER_ADDR_LEN);\n\tPEEK_DISCARD_UINT16;\n\tPEEK_DISCARD(6);\n\tif (PEEK_UINT16 != LLC_PID_SONMP_HELLO) {\n\t\tlog_debug(\"sonmp\", \"incorrect LLC protocol ID received for SONMP on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\tchassis->c_id_subtype = LLDP_CHASSISID_SUBTYPE_ADDR;\n\tif ((chassis->c_id = calloc(1, sizeof(struct in_addr) + 1)) == NULL) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for chassis id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tchassis->c_id_len = sizeof(struct in_addr) + 1;\n\tchassis->c_id[0] = 1;\n\tPEEK_BYTES(&address, sizeof(struct in_addr));\n\tmemcpy(chassis->c_id + 1, &address, sizeof(struct in_addr));\n\tif (asprintf(&chassis->c_name, \"%s\", inet_ntoa(address)) == -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis name for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tPEEK_BYTES(seg, sizeof(seg));\n\trchassis = PEEK_UINT8;\n\tfor (i = 0; sonmp_chassis_types[i].type != 0; i++) {\n\t\tif (sonmp_chassis_types[i].type == rchassis) break;\n\t}\n\tif (asprintf(&chassis->c_descr, \"%s\", sonmp_chassis_types[i].description) ==\n\t -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis description for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tmgmt = lldpd_alloc_mgmt(LLDPD_AF_IPV4, &address, sizeof(struct in_addr), 0);\n\tif (mgmt == NULL) {\n\t\tif (errno == ENOMEM)\n\t\t\tlog_warn(\"sonmp\",\n\t\t\t \"unable to allocate memory for management address\");\n\t\telse\n\t\t\tlog_warn(\"sonmp\", \"too large management address received on %s\",\n\t\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tTAILQ_INSERT_TAIL(&chassis->c_mgmt, mgmt, m_entries);\n\tport->p_ttl =\n\t cfg ? (cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold) : LLDPD_TTL;\n\tport->p_ttl = (port->p_ttl + 999) / 1000;\n\n\tport->p_id_subtype = LLDP_PORTID_SUBTYPE_LOCAL;\n\n\tport->p_id_len =\n\t asprintf(&port->p_id, \"%02x-%02x-%02x\", seg[0], seg[1], seg[2]);\n\tif (port->p_id_len == -1) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for port id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\t\n\tif ((seg[0] == 0) && (seg[1] == 0)) {\n\t\tif (asprintf(&port->p_descr, \"port %d\", seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else if (seg[0] == 0) {\n\t\tif (asprintf(&port->p_descr, \"port %d/%d\", seg[1], seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else {\n\t\tif (asprintf(&port->p_descr, \"port %x:%x:%x\", seg[0], seg[1], seg[2]) ==\n\t\t -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t}\n\t*newchassis = chassis;\n\t*newport = port;\n\treturn 1;\n\nmalformed:\n\tlldpd_chassis_cleanup(chassis, 1);\n\tlldpd_port_cleanup(port, 1);\n\tfree(port);\n\treturn -1;\n}", "Selected Statement": "chassis->c_id[0] = 1;", "Function Input": {"hardware": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x18\n", "message": "Cannot access memory at address 0x18"}}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 55, "Project Information": "lldpd"} +{"Programming Language": "C", "Source Code": "int\nsonmp_decode(struct lldpd *cfg, char *frame, int s, struct lldpd_hardware *hardware,\n struct lldpd_chassis **newchassis, struct lldpd_port **newport)\n{\n\tconst u_int8_t mcastaddr[] = SONMP_MULTICAST_ADDR;\n\tstruct lldpd_chassis *chassis;\n\tstruct lldpd_port *port;\n\tstruct lldpd_mgmt *mgmt;\n\tint length, i;\n\tu_int8_t *pos;\n\tu_int8_t seg[3], rchassis;\n\tstruct in_addr address;\n\n\tlog_debug(\"sonmp\", \"decode SONMP PDU from %s\", hardware->h_ifname);\n\n\tif ((chassis = calloc(1, sizeof(struct lldpd_chassis))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote chassis\");\n\t\treturn -1;\n\t}\n\tTAILQ_INIT(&chassis->c_mgmt);\n\tif ((port = calloc(1, sizeof(struct lldpd_port))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote port\");\n\t\tfree(chassis);\n\t\treturn -1;\n\t}\n# ifdef ENABLE_DOT1\n\tTAILQ_INIT(&port->p_vlans);\n# endif\n\n\tlength = s;\n\tpos = (u_int8_t *)frame;\n\tif (length < SONMP_SIZE + 2 * ETHER_ADDR_LEN + sizeof(u_int16_t)) {\n\t\tlog_warnx(\"sonmp\", \"too short SONMP frame received on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tif (PEEK_CMP(mcastaddr, sizeof(mcastaddr)) != 0)\n\t\t\n\t\tgoto malformed;\n\t\n\tPEEK_DISCARD(ETHER_ADDR_LEN);\n\tPEEK_DISCARD_UINT16;\n\tPEEK_DISCARD(6);\n\tif (PEEK_UINT16 != LLC_PID_SONMP_HELLO) {\n\t\tlog_debug(\"sonmp\", \"incorrect LLC protocol ID received for SONMP on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\tchassis->c_id_subtype = LLDP_CHASSISID_SUBTYPE_ADDR;\n\tif ((chassis->c_id = calloc(1, sizeof(struct in_addr) + 1)) == NULL) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for chassis id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tchassis->c_id_len = sizeof(struct in_addr) + 1;\n\tchassis->c_id[0] = 1;\n\tPEEK_BYTES(&address, sizeof(struct in_addr));\n\tmemcpy(chassis->c_id + 1, &address, sizeof(struct in_addr));\n\tif (asprintf(&chassis->c_name, \"%s\", inet_ntoa(address)) == -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis name for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tPEEK_BYTES(seg, sizeof(seg));\n\trchassis = PEEK_UINT8;\n\tfor (i = 0; sonmp_chassis_types[i].type != 0; i++) {\n\t\tif (sonmp_chassis_types[i].type == rchassis) break;\n\t}\n\tif (asprintf(&chassis->c_descr, \"%s\", sonmp_chassis_types[i].description) ==\n\t -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis description for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tmgmt = lldpd_alloc_mgmt(LLDPD_AF_IPV4, &address, sizeof(struct in_addr), 0);\n\tif (mgmt == NULL) {\n\t\tif (errno == ENOMEM)\n\t\t\tlog_warn(\"sonmp\",\n\t\t\t \"unable to allocate memory for management address\");\n\t\telse\n\t\t\tlog_warn(\"sonmp\", \"too large management address received on %s\",\n\t\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tTAILQ_INSERT_TAIL(&chassis->c_mgmt, mgmt, m_entries);\n\tport->p_ttl =\n\t cfg ? (cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold) : LLDPD_TTL;\n\tport->p_ttl = (port->p_ttl + 999) / 1000;\n\n\tport->p_id_subtype = LLDP_PORTID_SUBTYPE_LOCAL;\n\n\tport->p_id_len =\n\t asprintf(&port->p_id, \"%02x-%02x-%02x\", seg[0], seg[1], seg[2]);\n\tif (port->p_id_len == -1) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for port id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\t\n\tif ((seg[0] == 0) && (seg[1] == 0)) {\n\t\tif (asprintf(&port->p_descr, \"port %d\", seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else if (seg[0] == 0) {\n\t\tif (asprintf(&port->p_descr, \"port %d/%d\", seg[1], seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else {\n\t\tif (asprintf(&port->p_descr, \"port %x:%x:%x\", seg[0], seg[1], seg[2]) ==\n\t\t -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t}\n\t*newchassis = chassis;\n\t*newport = port;\n\treturn 1;\n\nmalformed:\n\tlldpd_chassis_cleanup(chassis, 1);\n\tlldpd_port_cleanup(port, 1);\n\tfree(port);\n\treturn -1;\n}", "Selected Statement": "rchassis = PEEK_UINT8;", "Function Input": {"hardware": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x18\n", "message": "Cannot access memory at address 0x18"}}}, "Variable Values Before Statement": {"PEEK_UINT8": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 64, "Project Information": "lldpd"} +{"Programming Language": "C", "Source Code": "int\nsonmp_decode(struct lldpd *cfg, char *frame, int s, struct lldpd_hardware *hardware,\n struct lldpd_chassis **newchassis, struct lldpd_port **newport)\n{\n\tconst u_int8_t mcastaddr[] = SONMP_MULTICAST_ADDR;\n\tstruct lldpd_chassis *chassis;\n\tstruct lldpd_port *port;\n\tstruct lldpd_mgmt *mgmt;\n\tint length, i;\n\tu_int8_t *pos;\n\tu_int8_t seg[3], rchassis;\n\tstruct in_addr address;\n\n\tlog_debug(\"sonmp\", \"decode SONMP PDU from %s\", hardware->h_ifname);\n\n\tif ((chassis = calloc(1, sizeof(struct lldpd_chassis))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote chassis\");\n\t\treturn -1;\n\t}\n\tTAILQ_INIT(&chassis->c_mgmt);\n\tif ((port = calloc(1, sizeof(struct lldpd_port))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote port\");\n\t\tfree(chassis);\n\t\treturn -1;\n\t}\n# ifdef ENABLE_DOT1\n\tTAILQ_INIT(&port->p_vlans);\n# endif\n\n\tlength = s;\n\tpos = (u_int8_t *)frame;\n\tif (length < SONMP_SIZE + 2 * ETHER_ADDR_LEN + sizeof(u_int16_t)) {\n\t\tlog_warnx(\"sonmp\", \"too short SONMP frame received on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tif (PEEK_CMP(mcastaddr, sizeof(mcastaddr)) != 0)\n\t\t\n\t\tgoto malformed;\n\t\n\tPEEK_DISCARD(ETHER_ADDR_LEN);\n\tPEEK_DISCARD_UINT16;\n\tPEEK_DISCARD(6);\n\tif (PEEK_UINT16 != LLC_PID_SONMP_HELLO) {\n\t\tlog_debug(\"sonmp\", \"incorrect LLC protocol ID received for SONMP on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\tchassis->c_id_subtype = LLDP_CHASSISID_SUBTYPE_ADDR;\n\tif ((chassis->c_id = calloc(1, sizeof(struct in_addr) + 1)) == NULL) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for chassis id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tchassis->c_id_len = sizeof(struct in_addr) + 1;\n\tchassis->c_id[0] = 1;\n\tPEEK_BYTES(&address, sizeof(struct in_addr));\n\tmemcpy(chassis->c_id + 1, &address, sizeof(struct in_addr));\n\tif (asprintf(&chassis->c_name, \"%s\", inet_ntoa(address)) == -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis name for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tPEEK_BYTES(seg, sizeof(seg));\n\trchassis = PEEK_UINT8;\n\tfor (i = 0; sonmp_chassis_types[i].type != 0; i++) {\n\t\tif (sonmp_chassis_types[i].type == rchassis) break;\n\t}\n\tif (asprintf(&chassis->c_descr, \"%s\", sonmp_chassis_types[i].description) ==\n\t -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis description for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tmgmt = lldpd_alloc_mgmt(LLDPD_AF_IPV4, &address, sizeof(struct in_addr), 0);\n\tif (mgmt == NULL) {\n\t\tif (errno == ENOMEM)\n\t\t\tlog_warn(\"sonmp\",\n\t\t\t \"unable to allocate memory for management address\");\n\t\telse\n\t\t\tlog_warn(\"sonmp\", \"too large management address received on %s\",\n\t\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tTAILQ_INSERT_TAIL(&chassis->c_mgmt, mgmt, m_entries);\n\tport->p_ttl =\n\t cfg ? (cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold) : LLDPD_TTL;\n\tport->p_ttl = (port->p_ttl + 999) / 1000;\n\n\tport->p_id_subtype = LLDP_PORTID_SUBTYPE_LOCAL;\n\n\tport->p_id_len =\n\t asprintf(&port->p_id, \"%02x-%02x-%02x\", seg[0], seg[1], seg[2]);\n\tif (port->p_id_len == -1) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for port id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\t\n\tif ((seg[0] == 0) && (seg[1] == 0)) {\n\t\tif (asprintf(&port->p_descr, \"port %d\", seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else if (seg[0] == 0) {\n\t\tif (asprintf(&port->p_descr, \"port %d/%d\", seg[1], seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else {\n\t\tif (asprintf(&port->p_descr, \"port %x:%x:%x\", seg[0], seg[1], seg[2]) ==\n\t\t -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t}\n\t*newchassis = chassis;\n\t*newport = port;\n\treturn 1;\n\nmalformed:\n\tlldpd_chassis_cleanup(chassis, 1);\n\tlldpd_port_cleanup(port, 1);\n\tfree(port);\n\treturn -1;\n}", "Selected Statement": "for (i = 0; sonmp_chassis_types[i].type != 0; i++) {", "Function Input": {"hardware": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x18\n", "message": "Cannot access memory at address 0x18"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 65, "Project Information": "lldpd"} +{"Programming Language": "C", "Source Code": "int\nsonmp_decode(struct lldpd *cfg, char *frame, int s, struct lldpd_hardware *hardware,\n struct lldpd_chassis **newchassis, struct lldpd_port **newport)\n{\n\tconst u_int8_t mcastaddr[] = SONMP_MULTICAST_ADDR;\n\tstruct lldpd_chassis *chassis;\n\tstruct lldpd_port *port;\n\tstruct lldpd_mgmt *mgmt;\n\tint length, i;\n\tu_int8_t *pos;\n\tu_int8_t seg[3], rchassis;\n\tstruct in_addr address;\n\n\tlog_debug(\"sonmp\", \"decode SONMP PDU from %s\", hardware->h_ifname);\n\n\tif ((chassis = calloc(1, sizeof(struct lldpd_chassis))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote chassis\");\n\t\treturn -1;\n\t}\n\tTAILQ_INIT(&chassis->c_mgmt);\n\tif ((port = calloc(1, sizeof(struct lldpd_port))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote port\");\n\t\tfree(chassis);\n\t\treturn -1;\n\t}\n# ifdef ENABLE_DOT1\n\tTAILQ_INIT(&port->p_vlans);\n# endif\n\n\tlength = s;\n\tpos = (u_int8_t *)frame;\n\tif (length < SONMP_SIZE + 2 * ETHER_ADDR_LEN + sizeof(u_int16_t)) {\n\t\tlog_warnx(\"sonmp\", \"too short SONMP frame received on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tif (PEEK_CMP(mcastaddr, sizeof(mcastaddr)) != 0)\n\t\t\n\t\tgoto malformed;\n\t\n\tPEEK_DISCARD(ETHER_ADDR_LEN);\n\tPEEK_DISCARD_UINT16;\n\tPEEK_DISCARD(6);\n\tif (PEEK_UINT16 != LLC_PID_SONMP_HELLO) {\n\t\tlog_debug(\"sonmp\", \"incorrect LLC protocol ID received for SONMP on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\tchassis->c_id_subtype = LLDP_CHASSISID_SUBTYPE_ADDR;\n\tif ((chassis->c_id = calloc(1, sizeof(struct in_addr) + 1)) == NULL) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for chassis id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tchassis->c_id_len = sizeof(struct in_addr) + 1;\n\tchassis->c_id[0] = 1;\n\tPEEK_BYTES(&address, sizeof(struct in_addr));\n\tmemcpy(chassis->c_id + 1, &address, sizeof(struct in_addr));\n\tif (asprintf(&chassis->c_name, \"%s\", inet_ntoa(address)) == -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis name for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tPEEK_BYTES(seg, sizeof(seg));\n\trchassis = PEEK_UINT8;\n\tfor (i = 0; sonmp_chassis_types[i].type != 0; i++) {\n\t\tif (sonmp_chassis_types[i].type == rchassis) break;\n\t}\n\tif (asprintf(&chassis->c_descr, \"%s\", sonmp_chassis_types[i].description) ==\n\t -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis description for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tmgmt = lldpd_alloc_mgmt(LLDPD_AF_IPV4, &address, sizeof(struct in_addr), 0);\n\tif (mgmt == NULL) {\n\t\tif (errno == ENOMEM)\n\t\t\tlog_warn(\"sonmp\",\n\t\t\t \"unable to allocate memory for management address\");\n\t\telse\n\t\t\tlog_warn(\"sonmp\", \"too large management address received on %s\",\n\t\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tTAILQ_INSERT_TAIL(&chassis->c_mgmt, mgmt, m_entries);\n\tport->p_ttl =\n\t cfg ? (cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold) : LLDPD_TTL;\n\tport->p_ttl = (port->p_ttl + 999) / 1000;\n\n\tport->p_id_subtype = LLDP_PORTID_SUBTYPE_LOCAL;\n\n\tport->p_id_len =\n\t asprintf(&port->p_id, \"%02x-%02x-%02x\", seg[0], seg[1], seg[2]);\n\tif (port->p_id_len == -1) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for port id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\t\n\tif ((seg[0] == 0) && (seg[1] == 0)) {\n\t\tif (asprintf(&port->p_descr, \"port %d\", seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else if (seg[0] == 0) {\n\t\tif (asprintf(&port->p_descr, \"port %d/%d\", seg[1], seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else {\n\t\tif (asprintf(&port->p_descr, \"port %x:%x:%x\", seg[0], seg[1], seg[2]) ==\n\t\t -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t}\n\t*newchassis = chassis;\n\t*newport = port;\n\treturn 1;\n\nmalformed:\n\tlldpd_chassis_cleanup(chassis, 1);\n\tlldpd_port_cleanup(port, 1);\n\tfree(port);\n\treturn -1;\n}", "Selected Statement": "mgmt = lldpd_alloc_mgmt(LLDPD_AF_IPV4, &address, sizeof(struct in_addr), 0);", "Function Input": {"hardware": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x18\n", "message": "Cannot access memory at address 0x18"}}}, "Variable Values Before Statement": {"LLDPD_AF_IPV4": "NULL", "0": "0"}, "Value After Statement Execution": {"m_entries": null, "m_family": "1", "m_addr": null, "m_addrsize": "4", "m_iface": "0"}, "Function Name": "lldpd_alloc_mgmt", "Block_Size": 74, "Project Information": "lldpd"} +{"Programming Language": "C", "Source Code": "int\nsonmp_decode(struct lldpd *cfg, char *frame, int s, struct lldpd_hardware *hardware,\n struct lldpd_chassis **newchassis, struct lldpd_port **newport)\n{\n\tconst u_int8_t mcastaddr[] = SONMP_MULTICAST_ADDR;\n\tstruct lldpd_chassis *chassis;\n\tstruct lldpd_port *port;\n\tstruct lldpd_mgmt *mgmt;\n\tint length, i;\n\tu_int8_t *pos;\n\tu_int8_t seg[3], rchassis;\n\tstruct in_addr address;\n\n\tlog_debug(\"sonmp\", \"decode SONMP PDU from %s\", hardware->h_ifname);\n\n\tif ((chassis = calloc(1, sizeof(struct lldpd_chassis))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote chassis\");\n\t\treturn -1;\n\t}\n\tTAILQ_INIT(&chassis->c_mgmt);\n\tif ((port = calloc(1, sizeof(struct lldpd_port))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote port\");\n\t\tfree(chassis);\n\t\treturn -1;\n\t}\n# ifdef ENABLE_DOT1\n\tTAILQ_INIT(&port->p_vlans);\n# endif\n\n\tlength = s;\n\tpos = (u_int8_t *)frame;\n\tif (length < SONMP_SIZE + 2 * ETHER_ADDR_LEN + sizeof(u_int16_t)) {\n\t\tlog_warnx(\"sonmp\", \"too short SONMP frame received on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tif (PEEK_CMP(mcastaddr, sizeof(mcastaddr)) != 0)\n\t\t\n\t\tgoto malformed;\n\t\n\tPEEK_DISCARD(ETHER_ADDR_LEN);\n\tPEEK_DISCARD_UINT16;\n\tPEEK_DISCARD(6);\n\tif (PEEK_UINT16 != LLC_PID_SONMP_HELLO) {\n\t\tlog_debug(\"sonmp\", \"incorrect LLC protocol ID received for SONMP on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\tchassis->c_id_subtype = LLDP_CHASSISID_SUBTYPE_ADDR;\n\tif ((chassis->c_id = calloc(1, sizeof(struct in_addr) + 1)) == NULL) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for chassis id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tchassis->c_id_len = sizeof(struct in_addr) + 1;\n\tchassis->c_id[0] = 1;\n\tPEEK_BYTES(&address, sizeof(struct in_addr));\n\tmemcpy(chassis->c_id + 1, &address, sizeof(struct in_addr));\n\tif (asprintf(&chassis->c_name, \"%s\", inet_ntoa(address)) == -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis name for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tPEEK_BYTES(seg, sizeof(seg));\n\trchassis = PEEK_UINT8;\n\tfor (i = 0; sonmp_chassis_types[i].type != 0; i++) {\n\t\tif (sonmp_chassis_types[i].type == rchassis) break;\n\t}\n\tif (asprintf(&chassis->c_descr, \"%s\", sonmp_chassis_types[i].description) ==\n\t -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis description for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tmgmt = lldpd_alloc_mgmt(LLDPD_AF_IPV4, &address, sizeof(struct in_addr), 0);\n\tif (mgmt == NULL) {\n\t\tif (errno == ENOMEM)\n\t\t\tlog_warn(\"sonmp\",\n\t\t\t \"unable to allocate memory for management address\");\n\t\telse\n\t\t\tlog_warn(\"sonmp\", \"too large management address received on %s\",\n\t\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tTAILQ_INSERT_TAIL(&chassis->c_mgmt, mgmt, m_entries);\n\tport->p_ttl =\n\t cfg ? (cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold) : LLDPD_TTL;\n\tport->p_ttl = (port->p_ttl + 999) / 1000;\n\n\tport->p_id_subtype = LLDP_PORTID_SUBTYPE_LOCAL;\n\n\tport->p_id_len =\n\t asprintf(&port->p_id, \"%02x-%02x-%02x\", seg[0], seg[1], seg[2]);\n\tif (port->p_id_len == -1) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for port id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\t\n\tif ((seg[0] == 0) && (seg[1] == 0)) {\n\t\tif (asprintf(&port->p_descr, \"port %d\", seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else if (seg[0] == 0) {\n\t\tif (asprintf(&port->p_descr, \"port %d/%d\", seg[1], seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else {\n\t\tif (asprintf(&port->p_descr, \"port %x:%x:%x\", seg[0], seg[1], seg[2]) ==\n\t\t -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t}\n\t*newchassis = chassis;\n\t*newport = port;\n\treturn 1;\n\nmalformed:\n\tlldpd_chassis_cleanup(chassis, 1);\n\tlldpd_port_cleanup(port, 1);\n\tfree(port);\n\treturn -1;\n}", "Selected Statement": "*newchassis = chassis;", "Function Input": {"hardware": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x18\n", "message": "Cannot access memory at address 0x18"}}}, "Variable Values Before Statement": {"chassis": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 120, "Project Information": "lldpd"} +{"Programming Language": "C", "Source Code": "int\nsonmp_decode(struct lldpd *cfg, char *frame, int s, struct lldpd_hardware *hardware,\n struct lldpd_chassis **newchassis, struct lldpd_port **newport)\n{\n\tconst u_int8_t mcastaddr[] = SONMP_MULTICAST_ADDR;\n\tstruct lldpd_chassis *chassis;\n\tstruct lldpd_port *port;\n\tstruct lldpd_mgmt *mgmt;\n\tint length, i;\n\tu_int8_t *pos;\n\tu_int8_t seg[3], rchassis;\n\tstruct in_addr address;\n\n\tlog_debug(\"sonmp\", \"decode SONMP PDU from %s\", hardware->h_ifname);\n\n\tif ((chassis = calloc(1, sizeof(struct lldpd_chassis))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote chassis\");\n\t\treturn -1;\n\t}\n\tTAILQ_INIT(&chassis->c_mgmt);\n\tif ((port = calloc(1, sizeof(struct lldpd_port))) == NULL) {\n\t\tlog_warn(\"sonmp\", \"failed to allocate remote port\");\n\t\tfree(chassis);\n\t\treturn -1;\n\t}\n# ifdef ENABLE_DOT1\n\tTAILQ_INIT(&port->p_vlans);\n# endif\n\n\tlength = s;\n\tpos = (u_int8_t *)frame;\n\tif (length < SONMP_SIZE + 2 * ETHER_ADDR_LEN + sizeof(u_int16_t)) {\n\t\tlog_warnx(\"sonmp\", \"too short SONMP frame received on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tif (PEEK_CMP(mcastaddr, sizeof(mcastaddr)) != 0)\n\t\t\n\t\tgoto malformed;\n\t\n\tPEEK_DISCARD(ETHER_ADDR_LEN);\n\tPEEK_DISCARD_UINT16;\n\tPEEK_DISCARD(6);\n\tif (PEEK_UINT16 != LLC_PID_SONMP_HELLO) {\n\t\tlog_debug(\"sonmp\", \"incorrect LLC protocol ID received for SONMP on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\tchassis->c_id_subtype = LLDP_CHASSISID_SUBTYPE_ADDR;\n\tif ((chassis->c_id = calloc(1, sizeof(struct in_addr) + 1)) == NULL) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for chassis id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tchassis->c_id_len = sizeof(struct in_addr) + 1;\n\tchassis->c_id[0] = 1;\n\tPEEK_BYTES(&address, sizeof(struct in_addr));\n\tmemcpy(chassis->c_id + 1, &address, sizeof(struct in_addr));\n\tif (asprintf(&chassis->c_name, \"%s\", inet_ntoa(address)) == -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis name for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tPEEK_BYTES(seg, sizeof(seg));\n\trchassis = PEEK_UINT8;\n\tfor (i = 0; sonmp_chassis_types[i].type != 0; i++) {\n\t\tif (sonmp_chassis_types[i].type == rchassis) break;\n\t}\n\tif (asprintf(&chassis->c_descr, \"%s\", sonmp_chassis_types[i].description) ==\n\t -1) {\n\t\tlog_warnx(\"sonmp\", \"unable to write chassis description for %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tmgmt = lldpd_alloc_mgmt(LLDPD_AF_IPV4, &address, sizeof(struct in_addr), 0);\n\tif (mgmt == NULL) {\n\t\tif (errno == ENOMEM)\n\t\t\tlog_warn(\"sonmp\",\n\t\t\t \"unable to allocate memory for management address\");\n\t\telse\n\t\t\tlog_warn(\"sonmp\", \"too large management address received on %s\",\n\t\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\tTAILQ_INSERT_TAIL(&chassis->c_mgmt, mgmt, m_entries);\n\tport->p_ttl =\n\t cfg ? (cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold) : LLDPD_TTL;\n\tport->p_ttl = (port->p_ttl + 999) / 1000;\n\n\tport->p_id_subtype = LLDP_PORTID_SUBTYPE_LOCAL;\n\n\tport->p_id_len =\n\t asprintf(&port->p_id, \"%02x-%02x-%02x\", seg[0], seg[1], seg[2]);\n\tif (port->p_id_len == -1) {\n\t\tlog_warn(\"sonmp\", \"unable to allocate memory for port id on %s\",\n\t\t hardware->h_ifname);\n\t\tgoto malformed;\n\t}\n\n\t\n\tif ((seg[0] == 0) && (seg[1] == 0)) {\n\t\tif (asprintf(&port->p_descr, \"port %d\", seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else if (seg[0] == 0) {\n\t\tif (asprintf(&port->p_descr, \"port %d/%d\", seg[1], seg[2]) == -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t} else {\n\t\tif (asprintf(&port->p_descr, \"port %x:%x:%x\", seg[0], seg[1], seg[2]) ==\n\t\t -1) {\n\t\t\tlog_warnx(\"sonmp\", \"unable to write port description for %s\",\n\t\t\t hardware->h_ifname);\n\t\t\tgoto malformed;\n\t\t}\n\t}\n\t*newchassis = chassis;\n\t*newport = port;\n\treturn 1;\n\nmalformed:\n\tlldpd_chassis_cleanup(chassis, 1);\n\tlldpd_port_cleanup(port, 1);\n\tfree(port);\n\treturn -1;\n}", "Selected Statement": "*newport = port;", "Function Input": {"hardware": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x18\n", "message": "Cannot access memory at address 0x18"}}}, "Variable Values Before Statement": {"port": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 121, "Project Information": "lldpd"} +{"Programming Language": "C", "Source Code": "void\nlldpd_port_cleanup(struct lldpd_port *port, int all)\n{\n#ifdef ENABLE_LLDPMED\n\tint i;\n\tif (all)\n\t\tfor (i = 0; i < LLDP_MED_LOCFORMAT_LAST; i++)\n\t\t\tfree(port->p_med_location[i].data);\n#endif\n#ifdef ENABLE_DOT1\n\tlldpd_vlan_cleanup(port);\n\tlldpd_ppvid_cleanup(port);\n\tlldpd_pi_cleanup(port);\n#endif\n\t\n\n\tif (all) {\n\t\tfree(port->p_id);\n\t\tport->p_id = NULL;\n\t\tfree(port->p_descr);\n\t\tport->p_descr = NULL;\n\t\tfree(port->p_lastframe);\n\t\tif (port->p_chassis) { \n\t\t\tport->p_chassis->c_refcount--;\n\t\t\tport->p_chassis = NULL;\n\t\t}\n#ifdef ENABLE_CUSTOM\n\t\tlldpd_custom_list_cleanup(port);\n#endif\n\t}\n}", "Selected Statement": "for (i = 0; i < LLDP_MED_LOCFORMAT_LAST; i++)", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 4, "Project Information": "lldpd"} +{"Programming Language": "C", "Source Code": "hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h,\n\t\t\t\t\t\t const_hashtab_key_t key),\n\t\t\t int (*keycmp) (hashtab_t h,\n\t\t\t\t\tconst_hashtab_key_t key1,\n\t\t\t\t\tconst_hashtab_key_t key2),\n\t\t\t unsigned int size)\n{\n\n\thashtab_t p;\n\n\tp = (hashtab_t) malloc(sizeof(hashtab_val_t));\n\tif (p == NULL)\n\t\treturn p;\n\n\tmemset(p, 0, sizeof(hashtab_val_t));\n\tp->size = size;\n\tp->nel = 0;\n\tp->hash_value = hash_value;\n\tp->keycmp = keycmp;\n\tp->htable = (hashtab_ptr_t *) calloc(size, sizeof(hashtab_ptr_t));\n\tif (p->htable == NULL) {\n\t\tfree(p);\n\t\treturn NULL;\n\t}\n\n\treturn p;\n}", "Selected Statement": "p->size = size;", "Function Input": {"size": {"value": "32767"}}, "Variable Values Before Statement": {"size": "unsigned int"}, "Value After Statement Execution": "unsigned int", "Block_Size": 14, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h,\n\t\t\t\t\t\t const_hashtab_key_t key),\n\t\t\t int (*keycmp) (hashtab_t h,\n\t\t\t\t\tconst_hashtab_key_t key1,\n\t\t\t\t\tconst_hashtab_key_t key2),\n\t\t\t unsigned int size)\n{\n\n\thashtab_t p;\n\n\tp = (hashtab_t) malloc(sizeof(hashtab_val_t));\n\tif (p == NULL)\n\t\treturn p;\n\n\tmemset(p, 0, sizeof(hashtab_val_t));\n\tp->size = size;\n\tp->nel = 0;\n\tp->hash_value = hash_value;\n\tp->keycmp = keycmp;\n\tp->htable = (hashtab_ptr_t *) calloc(size, sizeof(hashtab_ptr_t));\n\tif (p->htable == NULL) {\n\t\tfree(p);\n\t\treturn NULL;\n\t}\n\n\treturn p;\n}", "Selected Statement": "p->nel = 0;", "Function Input": {"size": {"value": "32767"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 15, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h,\n\t\t\t\t\t\t const_hashtab_key_t key),\n\t\t\t int (*keycmp) (hashtab_t h,\n\t\t\t\t\tconst_hashtab_key_t key1,\n\t\t\t\t\tconst_hashtab_key_t key2),\n\t\t\t unsigned int size)\n{\n\n\thashtab_t p;\n\n\tp = (hashtab_t) malloc(sizeof(hashtab_val_t));\n\tif (p == NULL)\n\t\treturn p;\n\n\tmemset(p, 0, sizeof(hashtab_val_t));\n\tp->size = size;\n\tp->nel = 0;\n\tp->hash_value = hash_value;\n\tp->keycmp = keycmp;\n\tp->htable = (hashtab_ptr_t *) calloc(size, sizeof(hashtab_ptr_t));\n\tif (p->htable == NULL) {\n\t\tfree(p);\n\t\treturn NULL;\n\t}\n\n\treturn p;\n}", "Selected Statement": "p->hash_value = hash_value;", "Function Input": {"size": {"value": "32767"}}, "Variable Values Before Statement": {"hash_value": "{unsigned int (hashtab_t, const_hashtab_key_t)} 0x53cdc0 "}, "Value After Statement Execution": "{unsigned int (hashtab_t, const_hashtab_key_t)} 0x53cdc0 ", "Block_Size": 16, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h,\n\t\t\t\t\t\t const_hashtab_key_t key),\n\t\t\t int (*keycmp) (hashtab_t h,\n\t\t\t\t\tconst_hashtab_key_t key1,\n\t\t\t\t\tconst_hashtab_key_t key2),\n\t\t\t unsigned int size)\n{\n\n\thashtab_t p;\n\n\tp = (hashtab_t) malloc(sizeof(hashtab_val_t));\n\tif (p == NULL)\n\t\treturn p;\n\n\tmemset(p, 0, sizeof(hashtab_val_t));\n\tp->size = size;\n\tp->nel = 0;\n\tp->hash_value = hash_value;\n\tp->keycmp = keycmp;\n\tp->htable = (hashtab_ptr_t *) calloc(size, sizeof(hashtab_ptr_t));\n\tif (p->htable == NULL) {\n\t\tfree(p);\n\t\treturn NULL;\n\t}\n\n\treturn p;\n}", "Selected Statement": "p->keycmp = keycmp;", "Function Input": {"size": {"value": "32767"}}, "Variable Values Before Statement": {"keycmp": "{int (hashtab_t, const_hashtab_key_t, const_hashtab_key_t)} 0x53ce50 "}, "Value After Statement Execution": "{int (hashtab_t, const_hashtab_key_t, const_hashtab_key_t)} 0x53ce50 ", "Block_Size": 17, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int symtab_init(symtab_t * s, unsigned int size)\n{\n\ts->table = hashtab_create(symhash, symcmp, size);\n\tif (!s->table)\n\t\treturn -1;\n\ts->nprim = 0;\n\treturn 0;\n}", "Selected Statement": "s->table = hashtab_create(symhash, symcmp, size);", "Function Input": {}, "Variable Values Before Statement": {"symhash": "NULL", "symcmp": "NULL", "size": "unsigned int"}, "Value After Statement Execution": "0x10be070", "Function Name": "hashtab_create", "Block_Size": 1, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int symtab_init(symtab_t * s, unsigned int size)\n{\n\ts->table = hashtab_create(symhash, symcmp, size);\n\tif (!s->table)\n\t\treturn -1;\n\ts->nprim = 0;\n\treturn 0;\n}", "Selected Statement": "s->nprim = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 4, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int policydb_init(policydb_t * p)\n{\n\tint i, rc;\n\n\tmemset(p, 0, sizeof(policydb_t));\n\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tp->sym_val_to_name[i] = NULL;\n\t\trc = symtab_init(&p->symtab[i], symtab_sizes[i]);\n\t\tif (rc)\n\t\t\tgoto err;\n\t}\n\n\t\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tif (symtab_init(&p->scope[i], symtab_sizes[i])) {\n\t\t\tgoto err;\n\t\t}\n\t}\n\tif ((p->global = avrule_block_create()) == NULL ||\n\t (p->global->branch_list = avrule_decl_create(1)) == NULL) {\n\t\tgoto err;\n\t}\n\tp->decl_val_to_struct = NULL;\n\n\trc = avtab_init(&p->te_avtab);\n\tif (rc)\n\t\tgoto err;\n\n\trc = roles_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\trc = cond_policydb_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\tp->filename_trans = hashtab_create(filenametr_hash, filenametr_cmp, (1 << 10));\n\tif (!p->filename_trans) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tp->range_tr = hashtab_create(rangetr_hash, rangetr_cmp, 256);\n\tif (!p->range_tr) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tebitmap_init(&p->policycaps);\n\tebitmap_init(&p->permissive_map);\n\n\treturn 0;\nerr:\n\thashtab_destroy(p->filename_trans);\n\thashtab_destroy(p->range_tr);\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\thashtab_destroy(p->symtab[i].table);\n\t\thashtab_destroy(p->scope[i].table);\n\t}\n\tavrule_block_list_destroy(p->global);\n\treturn rc;\n}", "Selected Statement": "for (i = 0; i < SYM_NUM; i++) {", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 5, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int policydb_init(policydb_t * p)\n{\n\tint i, rc;\n\n\tmemset(p, 0, sizeof(policydb_t));\n\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tp->sym_val_to_name[i] = NULL;\n\t\trc = symtab_init(&p->symtab[i], symtab_sizes[i]);\n\t\tif (rc)\n\t\t\tgoto err;\n\t}\n\n\t\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tif (symtab_init(&p->scope[i], symtab_sizes[i])) {\n\t\t\tgoto err;\n\t\t}\n\t}\n\tif ((p->global = avrule_block_create()) == NULL ||\n\t (p->global->branch_list = avrule_decl_create(1)) == NULL) {\n\t\tgoto err;\n\t}\n\tp->decl_val_to_struct = NULL;\n\n\trc = avtab_init(&p->te_avtab);\n\tif (rc)\n\t\tgoto err;\n\n\trc = roles_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\trc = cond_policydb_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\tp->filename_trans = hashtab_create(filenametr_hash, filenametr_cmp, (1 << 10));\n\tif (!p->filename_trans) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tp->range_tr = hashtab_create(rangetr_hash, rangetr_cmp, 256);\n\tif (!p->range_tr) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tebitmap_init(&p->policycaps);\n\tebitmap_init(&p->permissive_map);\n\n\treturn 0;\nerr:\n\thashtab_destroy(p->filename_trans);\n\thashtab_destroy(p->range_tr);\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\thashtab_destroy(p->symtab[i].table);\n\t\thashtab_destroy(p->scope[i].table);\n\t}\n\tavrule_block_list_destroy(p->global);\n\treturn rc;\n}", "Selected Statement": "rc = symtab_init(&p->symtab[i], symtab_sizes[i]);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "int", "Function Name": "symtab_init", "Block_Size": 7, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int policydb_init(policydb_t * p)\n{\n\tint i, rc;\n\n\tmemset(p, 0, sizeof(policydb_t));\n\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tp->sym_val_to_name[i] = NULL;\n\t\trc = symtab_init(&p->symtab[i], symtab_sizes[i]);\n\t\tif (rc)\n\t\t\tgoto err;\n\t}\n\n\t\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tif (symtab_init(&p->scope[i], symtab_sizes[i])) {\n\t\t\tgoto err;\n\t\t}\n\t}\n\tif ((p->global = avrule_block_create()) == NULL ||\n\t (p->global->branch_list = avrule_decl_create(1)) == NULL) {\n\t\tgoto err;\n\t}\n\tp->decl_val_to_struct = NULL;\n\n\trc = avtab_init(&p->te_avtab);\n\tif (rc)\n\t\tgoto err;\n\n\trc = roles_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\trc = cond_policydb_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\tp->filename_trans = hashtab_create(filenametr_hash, filenametr_cmp, (1 << 10));\n\tif (!p->filename_trans) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tp->range_tr = hashtab_create(rangetr_hash, rangetr_cmp, 256);\n\tif (!p->range_tr) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tebitmap_init(&p->policycaps);\n\tebitmap_init(&p->permissive_map);\n\n\treturn 0;\nerr:\n\thashtab_destroy(p->filename_trans);\n\thashtab_destroy(p->range_tr);\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\thashtab_destroy(p->symtab[i].table);\n\t\thashtab_destroy(p->scope[i].table);\n\t}\n\tavrule_block_list_destroy(p->global);\n\treturn rc;\n}", "Selected Statement": "for (i = 0; i < SYM_NUM; i++) {", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 13, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int policydb_init(policydb_t * p)\n{\n\tint i, rc;\n\n\tmemset(p, 0, sizeof(policydb_t));\n\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tp->sym_val_to_name[i] = NULL;\n\t\trc = symtab_init(&p->symtab[i], symtab_sizes[i]);\n\t\tif (rc)\n\t\t\tgoto err;\n\t}\n\n\t\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tif (symtab_init(&p->scope[i], symtab_sizes[i])) {\n\t\t\tgoto err;\n\t\t}\n\t}\n\tif ((p->global = avrule_block_create()) == NULL ||\n\t (p->global->branch_list = avrule_decl_create(1)) == NULL) {\n\t\tgoto err;\n\t}\n\tp->decl_val_to_struct = NULL;\n\n\trc = avtab_init(&p->te_avtab);\n\tif (rc)\n\t\tgoto err;\n\n\trc = roles_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\trc = cond_policydb_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\tp->filename_trans = hashtab_create(filenametr_hash, filenametr_cmp, (1 << 10));\n\tif (!p->filename_trans) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tp->range_tr = hashtab_create(rangetr_hash, rangetr_cmp, 256);\n\tif (!p->range_tr) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tebitmap_init(&p->policycaps);\n\tebitmap_init(&p->permissive_map);\n\n\treturn 0;\nerr:\n\thashtab_destroy(p->filename_trans);\n\thashtab_destroy(p->range_tr);\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\thashtab_destroy(p->symtab[i].table);\n\t\thashtab_destroy(p->scope[i].table);\n\t}\n\tavrule_block_list_destroy(p->global);\n\treturn rc;\n}", "Selected Statement": "rc = avtab_init(&p->te_avtab);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "int", "Function Name": "avtab_init", "Block_Size": 24, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int policydb_init(policydb_t * p)\n{\n\tint i, rc;\n\n\tmemset(p, 0, sizeof(policydb_t));\n\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tp->sym_val_to_name[i] = NULL;\n\t\trc = symtab_init(&p->symtab[i], symtab_sizes[i]);\n\t\tif (rc)\n\t\t\tgoto err;\n\t}\n\n\t\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tif (symtab_init(&p->scope[i], symtab_sizes[i])) {\n\t\t\tgoto err;\n\t\t}\n\t}\n\tif ((p->global = avrule_block_create()) == NULL ||\n\t (p->global->branch_list = avrule_decl_create(1)) == NULL) {\n\t\tgoto err;\n\t}\n\tp->decl_val_to_struct = NULL;\n\n\trc = avtab_init(&p->te_avtab);\n\tif (rc)\n\t\tgoto err;\n\n\trc = roles_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\trc = cond_policydb_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\tp->filename_trans = hashtab_create(filenametr_hash, filenametr_cmp, (1 << 10));\n\tif (!p->filename_trans) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tp->range_tr = hashtab_create(rangetr_hash, rangetr_cmp, 256);\n\tif (!p->range_tr) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tebitmap_init(&p->policycaps);\n\tebitmap_init(&p->permissive_map);\n\n\treturn 0;\nerr:\n\thashtab_destroy(p->filename_trans);\n\thashtab_destroy(p->range_tr);\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\thashtab_destroy(p->symtab[i].table);\n\t\thashtab_destroy(p->scope[i].table);\n\t}\n\tavrule_block_list_destroy(p->global);\n\treturn rc;\n}", "Selected Statement": "rc = roles_init(p);", "Function Input": {}, "Variable Values Before Statement": {"p": {"policy_type": "0", "name": null, "version": null, "target_platform": "0", "unsupported_format": "0", "mls": "0", "symtab": [{"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a42f0"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a4340"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a4480"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "1"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a4540"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x109da90"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x109d2d0"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10aaa90"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x109e4c0"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}], "sym_val_to_name": [{"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}], "class_val_to_struct": null, "role_val_to_struct": null, "user_val_to_struct": null, "type_val_to_struct": null, "scope": [{"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a5610"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a5640"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a5780"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a5840"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10aab50"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a6c90"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a6d50"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a6e10"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}], "global": null, "decl_val_to_struct": null, "te_avtab": null, "bool_val_to_struct": null, "te_cond_avtab": null, "cond_list": null, "role_tr": null, "role_allow": null, "ocontexts": [{"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}], "genfs": null, "range_tr": null, "filename_trans": null, "filename_trans_count": "0", "type_attr_map": null, "attr_type_map": null, "policycaps": null, "permissive_map": null, "policyvers": "0", "handle_unknown": "0", "process_class": "0", "dir_class": "0", "process_trans": "0", "process_trans_dyntrans": "0"}}, "Value After Statement Execution": "int", "Function Name": "roles_init", "Block_Size": 28, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int policydb_init(policydb_t * p)\n{\n\tint i, rc;\n\n\tmemset(p, 0, sizeof(policydb_t));\n\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tp->sym_val_to_name[i] = NULL;\n\t\trc = symtab_init(&p->symtab[i], symtab_sizes[i]);\n\t\tif (rc)\n\t\t\tgoto err;\n\t}\n\n\t\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tif (symtab_init(&p->scope[i], symtab_sizes[i])) {\n\t\t\tgoto err;\n\t\t}\n\t}\n\tif ((p->global = avrule_block_create()) == NULL ||\n\t (p->global->branch_list = avrule_decl_create(1)) == NULL) {\n\t\tgoto err;\n\t}\n\tp->decl_val_to_struct = NULL;\n\n\trc = avtab_init(&p->te_avtab);\n\tif (rc)\n\t\tgoto err;\n\n\trc = roles_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\trc = cond_policydb_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\tp->filename_trans = hashtab_create(filenametr_hash, filenametr_cmp, (1 << 10));\n\tif (!p->filename_trans) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tp->range_tr = hashtab_create(rangetr_hash, rangetr_cmp, 256);\n\tif (!p->range_tr) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tebitmap_init(&p->policycaps);\n\tebitmap_init(&p->permissive_map);\n\n\treturn 0;\nerr:\n\thashtab_destroy(p->filename_trans);\n\thashtab_destroy(p->range_tr);\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\thashtab_destroy(p->symtab[i].table);\n\t\thashtab_destroy(p->scope[i].table);\n\t}\n\tavrule_block_list_destroy(p->global);\n\treturn rc;\n}", "Selected Statement": "rc = cond_policydb_init(p);", "Function Input": {}, "Variable Values Before Statement": {"p": {"policy_type": "0", "name": null, "version": null, "target_platform": "0", "unsupported_format": "0", "mls": "0", "symtab": [{"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a42f0"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a4340"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a4480"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "1"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a4540"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x109da90"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x109d2d0"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10aaa90"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x109e4c0"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}], "sym_val_to_name": [{"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}], "class_val_to_struct": null, "role_val_to_struct": null, "user_val_to_struct": null, "type_val_to_struct": null, "scope": [{"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a5610"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a5640"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a5780"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a5840"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10aab50"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a6c90"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a6d50"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"table": {"type_category": "unknown", "concrete_type": "hashtab_t", "value": "0x10a6e10"}, "nprim": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}], "global": null, "decl_val_to_struct": null, "te_avtab": null, "bool_val_to_struct": null, "te_cond_avtab": null, "cond_list": null, "role_tr": null, "role_allow": null, "ocontexts": [{"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}], "genfs": null, "range_tr": null, "filename_trans": null, "filename_trans_count": "0", "type_attr_map": null, "attr_type_map": null, "policycaps": null, "permissive_map": null, "policyvers": "0", "handle_unknown": "0", "process_class": "0", "dir_class": "0", "process_trans": "0", "process_trans_dyntrans": "0"}}, "Value After Statement Execution": "int", "Function Name": "cond_policydb_init", "Block_Size": 32, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int policydb_init(policydb_t * p)\n{\n\tint i, rc;\n\n\tmemset(p, 0, sizeof(policydb_t));\n\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tp->sym_val_to_name[i] = NULL;\n\t\trc = symtab_init(&p->symtab[i], symtab_sizes[i]);\n\t\tif (rc)\n\t\t\tgoto err;\n\t}\n\n\t\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tif (symtab_init(&p->scope[i], symtab_sizes[i])) {\n\t\t\tgoto err;\n\t\t}\n\t}\n\tif ((p->global = avrule_block_create()) == NULL ||\n\t (p->global->branch_list = avrule_decl_create(1)) == NULL) {\n\t\tgoto err;\n\t}\n\tp->decl_val_to_struct = NULL;\n\n\trc = avtab_init(&p->te_avtab);\n\tif (rc)\n\t\tgoto err;\n\n\trc = roles_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\trc = cond_policydb_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\tp->filename_trans = hashtab_create(filenametr_hash, filenametr_cmp, (1 << 10));\n\tif (!p->filename_trans) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tp->range_tr = hashtab_create(rangetr_hash, rangetr_cmp, 256);\n\tif (!p->range_tr) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tebitmap_init(&p->policycaps);\n\tebitmap_init(&p->permissive_map);\n\n\treturn 0;\nerr:\n\thashtab_destroy(p->filename_trans);\n\thashtab_destroy(p->range_tr);\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\thashtab_destroy(p->symtab[i].table);\n\t\thashtab_destroy(p->scope[i].table);\n\t}\n\tavrule_block_list_destroy(p->global);\n\treturn rc;\n}", "Selected Statement": "p->filename_trans = hashtab_create(filenametr_hash, filenametr_cmp, (1 << 10));", "Function Input": {}, "Variable Values Before Statement": {"filenametr_hash": "NULL", "filenametr_cmp": "NULL"}, "Value After Statement Execution": "0x10a75f0", "Function Name": "hashtab_create", "Block_Size": 36, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int policydb_init(policydb_t * p)\n{\n\tint i, rc;\n\n\tmemset(p, 0, sizeof(policydb_t));\n\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tp->sym_val_to_name[i] = NULL;\n\t\trc = symtab_init(&p->symtab[i], symtab_sizes[i]);\n\t\tif (rc)\n\t\t\tgoto err;\n\t}\n\n\t\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\tif (symtab_init(&p->scope[i], symtab_sizes[i])) {\n\t\t\tgoto err;\n\t\t}\n\t}\n\tif ((p->global = avrule_block_create()) == NULL ||\n\t (p->global->branch_list = avrule_decl_create(1)) == NULL) {\n\t\tgoto err;\n\t}\n\tp->decl_val_to_struct = NULL;\n\n\trc = avtab_init(&p->te_avtab);\n\tif (rc)\n\t\tgoto err;\n\n\trc = roles_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\trc = cond_policydb_init(p);\n\tif (rc)\n\t\tgoto err;\n\n\tp->filename_trans = hashtab_create(filenametr_hash, filenametr_cmp, (1 << 10));\n\tif (!p->filename_trans) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tp->range_tr = hashtab_create(rangetr_hash, rangetr_cmp, 256);\n\tif (!p->range_tr) {\n\t\trc = -ENOMEM;\n\t\tgoto err;\n\t}\n\n\tebitmap_init(&p->policycaps);\n\tebitmap_init(&p->permissive_map);\n\n\treturn 0;\nerr:\n\thashtab_destroy(p->filename_trans);\n\thashtab_destroy(p->range_tr);\n\tfor (i = 0; i < SYM_NUM; i++) {\n\t\thashtab_destroy(p->symtab[i].table);\n\t\thashtab_destroy(p->scope[i].table);\n\t}\n\tavrule_block_list_destroy(p->global);\n\treturn rc;\n}", "Selected Statement": "p->range_tr = hashtab_create(rangetr_hash, rangetr_cmp, 256);", "Function Input": {}, "Variable Values Before Statement": {"rangetr_hash": "NULL", "rangetr_cmp": "NULL", "256": "256"}, "Value After Statement Execution": "0x10a7620", "Function Name": "hashtab_create", "Block_Size": 42, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int avtab_init(avtab_t * h)\n{\n\th->htable = NULL;\n\th->nel = 0;\n\treturn 0;\n}", "Selected Statement": "h->nel = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 2, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int add_i_to_a(uint32_t i, uint32_t * cnt, uint32_t ** a)\n{\n\tuint32_t *new;\n\n\tif (cnt == NULL || *cnt == UINT32_MAX || a == NULL)\n\t\treturn -1;\n\n\t\n\tif (*a != NULL)\n\t\tnew = (uint32_t *) reallocarray(*a, *cnt + 1, sizeof(uint32_t));\n\telse {\t\t\t\n\n\t\t*cnt = 0;\n\t\tnew = (uint32_t *) malloc(sizeof(uint32_t));\n\t}\n\tif (new == NULL) {\n\t\treturn -1;\n\t}\n\tnew[*cnt] = i;\n\t(*cnt)++;\n\t*a = new;\n\treturn 0;\n}", "Selected Statement": "*cnt = 0;", "Function Input": {"a": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x10a7570", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x725f7463656a626f\n", "message": "Cannot access memory at address 0x725f7463656a626f"}}}, "cnt": {"value": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "17455024"}}, "i": {"value": "4294956832"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 14, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int add_i_to_a(uint32_t i, uint32_t * cnt, uint32_t ** a)\n{\n\tuint32_t *new;\n\n\tif (cnt == NULL || *cnt == UINT32_MAX || a == NULL)\n\t\treturn -1;\n\n\t\n\tif (*a != NULL)\n\t\tnew = (uint32_t *) reallocarray(*a, *cnt + 1, sizeof(uint32_t));\n\telse {\t\t\t\n\n\t\t*cnt = 0;\n\t\tnew = (uint32_t *) malloc(sizeof(uint32_t));\n\t}\n\tif (new == NULL) {\n\t\treturn -1;\n\t}\n\tnew[*cnt] = i;\n\t(*cnt)++;\n\t*a = new;\n\treturn 0;\n}", "Selected Statement": "new[*cnt] = i;", "Function Input": {"a": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x10a7570", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x725f7463656a626f\n", "message": "Cannot access memory at address 0x725f7463656a626f"}}}, "cnt": {"value": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "17455024"}}, "i": {"value": "4294956832"}}, "Variable Values Before Statement": {"i": "1"}, "Value After Statement Execution": "1", "Block_Size": 20, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int add_i_to_a(uint32_t i, uint32_t * cnt, uint32_t ** a)\n{\n\tuint32_t *new;\n\n\tif (cnt == NULL || *cnt == UINT32_MAX || a == NULL)\n\t\treturn -1;\n\n\t\n\tif (*a != NULL)\n\t\tnew = (uint32_t *) reallocarray(*a, *cnt + 1, sizeof(uint32_t));\n\telse {\t\t\t\n\n\t\t*cnt = 0;\n\t\tnew = (uint32_t *) malloc(sizeof(uint32_t));\n\t}\n\tif (new == NULL) {\n\t\treturn -1;\n\t}\n\tnew[*cnt] = i;\n\t(*cnt)++;\n\t*a = new;\n\treturn 0;\n}", "Selected Statement": "*a = new;", "Function Input": {"a": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x10a7570", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x725f7463656a626f\n", "message": "Cannot access memory at address 0x725f7463656a626f"}}}, "cnt": {"value": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "17455024"}}, "i": {"value": "4294956832"}}, "Variable Values Before Statement": {"new": "1"}, "Value After Statement Execution": "1", "Block_Size": 22, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "static int read_source_policy(policydb_t *p, const uint8_t *data, size_t size)\n{\n\tint fd, rc;\n\tssize_t wr;\n\n\tfd = memfd_create(\"fuzz-input\", MFD_CLOEXEC);\n\tif (fd < 0)\n\t\treturn -1;\n\n\twr = full_write(fd, data, size);\n\tif (wr < 0 || (size_t)wr != size) {\n\t\tclose(fd);\n\t\treturn -1;\n\t}\n\n\tfsync(fd);\n\n\tyynerrs = 0;\n\n\tyyin = fdopen(fd, \"r\");\n\tif (!yyin) {\n\t\tclose(fd);\n\t\treturn -1;\n\t}\n\n\trewind(yyin);\n\n\tset_source_file(\"fuzz-input\");\n\n\tid_queue = queue_create();\n\tif (id_queue == NULL) {\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\tpolicydbp = p;\n\tmlspol = p->mls;\n\n\tinit_parser(1);\n\n\tif (!setjmp(fuzzing_pre_parse_stack_state)) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\trc = yyparse();\n\t\n\tassert(rc || !policydb_errors);\n\tif (rc || policydb_errors) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\trewind(yyin);\n\tinit_parser(2);\n\tset_source_file(\"fuzz-input\");\n\tyyrestart(yyin);\n\n\trc = yyparse();\n\tassert(rc || !policydb_errors);\n\tif (rc || policydb_errors) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\tqueue_destroy(id_queue);\n\tfclose(yyin);\n\tyylex_destroy();\n\n\treturn 0;\n}", "Selected Statement": "fd = memfd_create(\"fuzz-input\", MFD_CLOEXEC);", "Function Input": {"fd": {"value": "0"}}, "Variable Values Before Statement": {"\"fuzz-input\"": "\"fuzz-input\"", "MFD_CLOEXEC": "NULL"}, "Value After Statement Execution": "int", "Function Name": "memfd_create", "Block_Size": 4, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "static int read_source_policy(policydb_t *p, const uint8_t *data, size_t size)\n{\n\tint fd, rc;\n\tssize_t wr;\n\n\tfd = memfd_create(\"fuzz-input\", MFD_CLOEXEC);\n\tif (fd < 0)\n\t\treturn -1;\n\n\twr = full_write(fd, data, size);\n\tif (wr < 0 || (size_t)wr != size) {\n\t\tclose(fd);\n\t\treturn -1;\n\t}\n\n\tfsync(fd);\n\n\tyynerrs = 0;\n\n\tyyin = fdopen(fd, \"r\");\n\tif (!yyin) {\n\t\tclose(fd);\n\t\treturn -1;\n\t}\n\n\trewind(yyin);\n\n\tset_source_file(\"fuzz-input\");\n\n\tid_queue = queue_create();\n\tif (id_queue == NULL) {\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\tpolicydbp = p;\n\tmlspol = p->mls;\n\n\tinit_parser(1);\n\n\tif (!setjmp(fuzzing_pre_parse_stack_state)) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\trc = yyparse();\n\t\n\tassert(rc || !policydb_errors);\n\tif (rc || policydb_errors) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\trewind(yyin);\n\tinit_parser(2);\n\tset_source_file(\"fuzz-input\");\n\tyyrestart(yyin);\n\n\trc = yyparse();\n\tassert(rc || !policydb_errors);\n\tif (rc || policydb_errors) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\tqueue_destroy(id_queue);\n\tfclose(yyin);\n\tyylex_destroy();\n\n\treturn 0;\n}", "Selected Statement": "wr = full_write(fd, data, size);", "Function Input": {"fd": {"value": "0"}}, "Variable Values Before Statement": {"fd": "int", "data": "0x10a3a33 \"\"", "size": "0"}, "Value After Statement Execution": "0", "Function Name": "full_write", "Block_Size": 8, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "static int read_source_policy(policydb_t *p, const uint8_t *data, size_t size)\n{\n\tint fd, rc;\n\tssize_t wr;\n\n\tfd = memfd_create(\"fuzz-input\", MFD_CLOEXEC);\n\tif (fd < 0)\n\t\treturn -1;\n\n\twr = full_write(fd, data, size);\n\tif (wr < 0 || (size_t)wr != size) {\n\t\tclose(fd);\n\t\treturn -1;\n\t}\n\n\tfsync(fd);\n\n\tyynerrs = 0;\n\n\tyyin = fdopen(fd, \"r\");\n\tif (!yyin) {\n\t\tclose(fd);\n\t\treturn -1;\n\t}\n\n\trewind(yyin);\n\n\tset_source_file(\"fuzz-input\");\n\n\tid_queue = queue_create();\n\tif (id_queue == NULL) {\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\tpolicydbp = p;\n\tmlspol = p->mls;\n\n\tinit_parser(1);\n\n\tif (!setjmp(fuzzing_pre_parse_stack_state)) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\trc = yyparse();\n\t\n\tassert(rc || !policydb_errors);\n\tif (rc || policydb_errors) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\trewind(yyin);\n\tinit_parser(2);\n\tset_source_file(\"fuzz-input\");\n\tyyrestart(yyin);\n\n\trc = yyparse();\n\tassert(rc || !policydb_errors);\n\tif (rc || policydb_errors) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\tqueue_destroy(id_queue);\n\tfclose(yyin);\n\tyylex_destroy();\n\n\treturn 0;\n}", "Selected Statement": "yyin = fdopen(fd, \"r\");", "Function Input": {"fd": {"value": "0"}}, "Variable Values Before Statement": {"fd": "int", "\"r\"": "\"r\""}, "Value After Statement Execution": "NULL", "Function Name": "fdopen", "Block_Size": 18, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "static int read_source_policy(policydb_t *p, const uint8_t *data, size_t size)\n{\n\tint fd, rc;\n\tssize_t wr;\n\n\tfd = memfd_create(\"fuzz-input\", MFD_CLOEXEC);\n\tif (fd < 0)\n\t\treturn -1;\n\n\twr = full_write(fd, data, size);\n\tif (wr < 0 || (size_t)wr != size) {\n\t\tclose(fd);\n\t\treturn -1;\n\t}\n\n\tfsync(fd);\n\n\tyynerrs = 0;\n\n\tyyin = fdopen(fd, \"r\");\n\tif (!yyin) {\n\t\tclose(fd);\n\t\treturn -1;\n\t}\n\n\trewind(yyin);\n\n\tset_source_file(\"fuzz-input\");\n\n\tid_queue = queue_create();\n\tif (id_queue == NULL) {\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\tpolicydbp = p;\n\tmlspol = p->mls;\n\n\tinit_parser(1);\n\n\tif (!setjmp(fuzzing_pre_parse_stack_state)) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\trc = yyparse();\n\t\n\tassert(rc || !policydb_errors);\n\tif (rc || policydb_errors) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\trewind(yyin);\n\tinit_parser(2);\n\tset_source_file(\"fuzz-input\");\n\tyyrestart(yyin);\n\n\trc = yyparse();\n\tassert(rc || !policydb_errors);\n\tif (rc || policydb_errors) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\tqueue_destroy(id_queue);\n\tfclose(yyin);\n\tyylex_destroy();\n\n\treturn 0;\n}", "Selected Statement": "id_queue = queue_create();", "Function Input": {"fd": {"value": "0"}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "queue_create", "Block_Size": 28, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "static int read_source_policy(policydb_t *p, const uint8_t *data, size_t size)\n{\n\tint fd, rc;\n\tssize_t wr;\n\n\tfd = memfd_create(\"fuzz-input\", MFD_CLOEXEC);\n\tif (fd < 0)\n\t\treturn -1;\n\n\twr = full_write(fd, data, size);\n\tif (wr < 0 || (size_t)wr != size) {\n\t\tclose(fd);\n\t\treturn -1;\n\t}\n\n\tfsync(fd);\n\n\tyynerrs = 0;\n\n\tyyin = fdopen(fd, \"r\");\n\tif (!yyin) {\n\t\tclose(fd);\n\t\treturn -1;\n\t}\n\n\trewind(yyin);\n\n\tset_source_file(\"fuzz-input\");\n\n\tid_queue = queue_create();\n\tif (id_queue == NULL) {\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\tpolicydbp = p;\n\tmlspol = p->mls;\n\n\tinit_parser(1);\n\n\tif (!setjmp(fuzzing_pre_parse_stack_state)) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\trc = yyparse();\n\t\n\tassert(rc || !policydb_errors);\n\tif (rc || policydb_errors) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\trewind(yyin);\n\tinit_parser(2);\n\tset_source_file(\"fuzz-input\");\n\tyyrestart(yyin);\n\n\trc = yyparse();\n\tassert(rc || !policydb_errors);\n\tif (rc || policydb_errors) {\n\t\tqueue_destroy(id_queue);\n\t\tfclose(yyin);\n\t\tyylex_destroy();\n\t\treturn -1;\n\t}\n\n\tqueue_destroy(id_queue);\n\tfclose(yyin);\n\tyylex_destroy();\n\n\treturn 0;\n}", "Selected Statement": "policydbp = p;", "Function Input": {"fd": {"value": "0"}}, "Variable Values Before Statement": {"p": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 35, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "void set_source_file(const char *name)\n{\n\tsource_lineno = 1;\n\tstrncpy(source_file, name, sizeof(source_file)-1); \n\tsource_file[sizeof(source_file)-1] = '\\0';\n\tif (strlen(source_file) && source_file[strlen(source_file)-1] == '\"')\n\t\tsource_file[strlen(source_file)-1] = '\\0';\n}", "Selected Statement": "source_lineno = 1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 1, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "void init_parser(int pass_number)\n{\n\tpolicydb_lineno = 1;\n\tsource_lineno = 1;\n\tpolicydb_errors = 0;\n\tpass = pass_number;\n}", "Selected Statement": "policydb_lineno = 1;", "Function Input": {"pass_number": {"value": "0"}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 1, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "void init_parser(int pass_number)\n{\n\tpolicydb_lineno = 1;\n\tsource_lineno = 1;\n\tpolicydb_errors = 0;\n\tpass = pass_number;\n}", "Selected Statement": "source_lineno = 1;", "Function Input": {"pass_number": {"value": "0"}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 2, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "void init_parser(int pass_number)\n{\n\tpolicydb_lineno = 1;\n\tsource_lineno = 1;\n\tpolicydb_errors = 0;\n\tpass = pass_number;\n}", "Selected Statement": "policydb_errors = 0;", "Function Input": {"pass_number": {"value": "0"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 3, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "void init_parser(int pass_number)\n{\n\tpolicydb_lineno = 1;\n\tsource_lineno = 1;\n\tpolicydb_errors = 0;\n\tpass = pass_number;\n}", "Selected Statement": "pass = pass_number;", "Function Input": {"pass_number": {"value": "0"}}, "Variable Values Before Statement": {"pass_number": "int"}, "Value After Statement Execution": "int", "Block_Size": 4, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "void sepol_sidtab_destroy(sidtab_t * s)\n{\n\tint i;\n\tsidtab_ptr_t cur, temp;\n\n\tif (!s || !s->htable)\n\t\treturn;\n\n\tfor (i = 0; i < SIDTAB_SIZE; i++) {\n\t\tcur = s->htable[i];\n\t\twhile (cur != NULL) {\n\t\t\ttemp = cur;\n\t\t\tcur = cur->next;\n\t\t\tcontext_destroy(&temp->context);\n\t\t\tfree(temp);\n\t\t}\n\t\ts->htable[i] = NULL;\n\t}\n\tfree(s->htable);\n\ts->htable = NULL;\n\ts->nel = 0;\n\ts->next_sid = 1;\n}", "Selected Statement": "s->next_sid = 1;", "Function Input": {"s": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffff00000000\n", "message": "Cannot access memory at address 0xffffffff00000000"}}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 20, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "void ebitmap_destroy(ebitmap_t * e)\n{\n\tebitmap_node_t *n, *temp;\n\n\tif (!e)\n\t\treturn;\n\n\tn = e->node;\n\twhile (n) {\n\t\ttemp = n;\n\t\tn = n->next;\n\t\tfree(temp);\n\t}\n\n\te->highbit = 0;\n\te->node = 0;\n\treturn;\n}", "Selected Statement": "e->highbit = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 13, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "void module_compiler_reset(void)\n{\n\twhile (stack_top)\n\t\tpop_stack();\n\n\tlast_block = NULL;\n\tnext_decl_id = 1;\n}", "Selected Statement": "next_decl_id = 1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 5, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int next_entry(void *buf, struct policy_file *fp, size_t bytes)\n{\n\tsize_t nread;\n\n\tswitch (fp->type) {\n\tcase PF_USE_STDIO:\n\t\tnread = fread(buf, bytes, 1, fp->fp);\n\n\t\tif (nread != 1)\n\t\t\treturn -1;\n\t\tbreak;\n\tcase PF_USE_MEMORY:\n\t\tif (bytes > fp->len) {\n\t\t\terrno = EOVERFLOW;\n\t\t\treturn -1;\n\t\t}\n\t\tmemcpy(buf, fp->data, bytes);\n\t\tfp->data += bytes;\n\t\tfp->len -= bytes;\n\t\tbreak;\n\tdefault:\n\t\terrno = EINVAL;\n\t\treturn -1;\n\t}\n\treturn 0;\n}", "Selected Statement": "errno = EOVERFLOW;", "Function Input": {}, "Variable Values Before Statement": {"EOVERFLOW": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 12, "Project Information": "selinux"} +{"Programming Language": "C", "Source Code": "int parse_msg(\n\t\tchar *const buf, const unsigned int len, struct sip_msg *const msg)\n{\n\n\tchar *tmp;\n\tchar *rest;\n\tstruct msg_start *fl;\n\tint offset;\n\thdr_flags_t flags;\n\n\t\n\tfor(tmp = buf; (tmp - buf < len)\n\t\t\t\t && (*tmp == '\\n' || *tmp == '\\r' || *tmp == '\\0'\n\t\t\t\t\t\t || *tmp == '\\t' || *tmp == ' ');\n\t\t\ttmp++)\n\t\t;\n\toffset = tmp - buf;\n\tfl = &(msg->first_line);\n\trest = parse_first_line(tmp, len - offset, fl);\n\toffset += rest - tmp;\n\ttmp = rest;\n\tswitch(fl->type) {\n\t\tcase SIP_INVALID:\n\t\t\tDBG(\"invalid message\\n\");\n\t\t\tgoto error;\n\t\t\tbreak;\n\t\tcase SIP_REQUEST:\n\t\t\tDBG(\"SIP Request:\\n\");\n\t\t\tDBG(\" method: <%.*s>\\n\", fl->u.request.method.len,\n\t\t\t\t\tZSW(fl->u.request.method.s));\n\t\t\tDBG(\" uri: <%.*s>\\n\", fl->u.request.uri.len,\n\t\t\t\t\tZSW(fl->u.request.uri.s));\n\t\t\tDBG(\" version: <%.*s>\\n\", fl->u.request.version.len,\n\t\t\t\t\tZSW(fl->u.request.version.s));\n\t\t\tflags = HDR_VIA_F;\n\t\t\tbreak;\n\t\tcase SIP_REPLY:\n\t\t\tDBG(\"SIP Reply (status):\\n\");\n\t\t\tDBG(\" version: <%.*s>\\n\", fl->u.reply.version.len,\n\t\t\t\t\tZSW(fl->u.reply.version.s));\n\t\t\tDBG(\" status: <%.*s>\\n\", fl->u.reply.status.len,\n\t\t\t\t\tZSW(fl->u.reply.status.s));\n\t\t\tDBG(\" reason: <%.*s>\\n\", fl->u.reply.reason.len,\n\t\t\t\t\tZSW(fl->u.reply.reason.s));\n\t\t\t\n\t\t\t\n\t\t\tflags = HDR_VIA_F;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tDBG(\"unknown type %d\\n\", fl->type);\n\t\t\tgoto error;\n\t}\n\tmsg->unparsed = tmp;\n\t\n\tif(parse_headers(msg, flags, 0) == -1)\n\t\tgoto error;\n\n#ifdef EXTRA_DEBUG\n\t\n\tif(msg->via1) {\n\t\tDBG(\"first via: <%.*s/%.*s/%.*s> <%.*s:%.*s(%d)>\", msg->via1->name.len,\n\t\t\t\tZSW(msg->via1->name.s), msg->via1->version.len,\n\t\t\t\tZSW(msg->via1->version.s), msg->via1->transport.len,\n\t\t\t\tZSW(msg->via1->transport.s), msg->via1->host.len,\n\t\t\t\tZSW(msg->via1->host.s), msg->via1->port_str.len,\n\t\t\t\tZSW(msg->via1->port_str.s), msg->via1->port);\n\t\tif(msg->via1->params.s)\n\t\t\tDBG(\";<%.*s>\", msg->via1->params.len, ZSW(msg->via1->params.s));\n\t\tif(msg->via1->comment.s)\n\t\t\tDBG(\" <%.*s>\", msg->via1->comment.len, ZSW(msg->via1->comment.s));\n\t\tDBG(\"\\n\");\n\t}\n\tif(msg->via2) {\n\t\tDBG(\"second via: <%.*s/%.*s/%.*s> <%.*s:%.*s(%d)>\", msg->via2->name.len,\n\t\t\t\tZSW(msg->via2->name.s), msg->via2->version.len,\n\t\t\t\tZSW(msg->via2->version.s), msg->via2->transport.len,\n\t\t\t\tZSW(msg->via2->transport.s), msg->via2->host.len,\n\t\t\t\tZSW(msg->via2->host.s), msg->via2->port_str.len,\n\t\t\t\tZSW(msg->via2->port_str.s), msg->via2->port);\n\t\tif(msg->via2->params.s)\n\t\t\tDBG(\";<%.*s>\", msg->via2->params.len, ZSW(msg->via2->params.s));\n\t\tif(msg->via2->comment.s)\n\t\t\tDBG(\" <%.*s>\", msg->via2->comment.len, ZSW(msg->via2->comment.s));\n\t\tDBG(\"\\n\");\n\t}\n#endif\n\n\n#ifdef EXTRA_DEBUG\n\tDBG(\"exiting parse_msg\\n\");\n#endif\n\n\treturn 0;\n\nerror:\n\t\n\tLOG(cfg_get(core, core_cfg, sip_parser_log),\n\t\t\t\"ERROR: parse_msg: message=<%.*s>\\n\", (int)msg->len,\n\t\t\tZSW(ksr_buf_oneline(msg->buf, (int)msg->len)));\n\treturn -1;\n}", "Selected Statement": "for(tmp = buf; (tmp - buf < len)", "Function Input": {"flags": {"value": "140737322669824"}, "msg": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffff00001f80\n", "message": "Cannot access memory at address 0xffff00001f80"}}}, "Variable Values Before Statement": {"buf": "\"\""}, "Value After Statement Execution": "\"\"", "Block_Size": 10, "Project Information": "kamailio"} +{"Programming Language": "C", "Source Code": "int parse_msg(\n\t\tchar *const buf, const unsigned int len, struct sip_msg *const msg)\n{\n\n\tchar *tmp;\n\tchar *rest;\n\tstruct msg_start *fl;\n\tint offset;\n\thdr_flags_t flags;\n\n\t\n\tfor(tmp = buf; (tmp - buf < len)\n\t\t\t\t && (*tmp == '\\n' || *tmp == '\\r' || *tmp == '\\0'\n\t\t\t\t\t\t || *tmp == '\\t' || *tmp == ' ');\n\t\t\ttmp++)\n\t\t;\n\toffset = tmp - buf;\n\tfl = &(msg->first_line);\n\trest = parse_first_line(tmp, len - offset, fl);\n\toffset += rest - tmp;\n\ttmp = rest;\n\tswitch(fl->type) {\n\t\tcase SIP_INVALID:\n\t\t\tDBG(\"invalid message\\n\");\n\t\t\tgoto error;\n\t\t\tbreak;\n\t\tcase SIP_REQUEST:\n\t\t\tDBG(\"SIP Request:\\n\");\n\t\t\tDBG(\" method: <%.*s>\\n\", fl->u.request.method.len,\n\t\t\t\t\tZSW(fl->u.request.method.s));\n\t\t\tDBG(\" uri: <%.*s>\\n\", fl->u.request.uri.len,\n\t\t\t\t\tZSW(fl->u.request.uri.s));\n\t\t\tDBG(\" version: <%.*s>\\n\", fl->u.request.version.len,\n\t\t\t\t\tZSW(fl->u.request.version.s));\n\t\t\tflags = HDR_VIA_F;\n\t\t\tbreak;\n\t\tcase SIP_REPLY:\n\t\t\tDBG(\"SIP Reply (status):\\n\");\n\t\t\tDBG(\" version: <%.*s>\\n\", fl->u.reply.version.len,\n\t\t\t\t\tZSW(fl->u.reply.version.s));\n\t\t\tDBG(\" status: <%.*s>\\n\", fl->u.reply.status.len,\n\t\t\t\t\tZSW(fl->u.reply.status.s));\n\t\t\tDBG(\" reason: <%.*s>\\n\", fl->u.reply.reason.len,\n\t\t\t\t\tZSW(fl->u.reply.reason.s));\n\t\t\t\n\t\t\t\n\t\t\tflags = HDR_VIA_F;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tDBG(\"unknown type %d\\n\", fl->type);\n\t\t\tgoto error;\n\t}\n\tmsg->unparsed = tmp;\n\t\n\tif(parse_headers(msg, flags, 0) == -1)\n\t\tgoto error;\n\n#ifdef EXTRA_DEBUG\n\t\n\tif(msg->via1) {\n\t\tDBG(\"first via: <%.*s/%.*s/%.*s> <%.*s:%.*s(%d)>\", msg->via1->name.len,\n\t\t\t\tZSW(msg->via1->name.s), msg->via1->version.len,\n\t\t\t\tZSW(msg->via1->version.s), msg->via1->transport.len,\n\t\t\t\tZSW(msg->via1->transport.s), msg->via1->host.len,\n\t\t\t\tZSW(msg->via1->host.s), msg->via1->port_str.len,\n\t\t\t\tZSW(msg->via1->port_str.s), msg->via1->port);\n\t\tif(msg->via1->params.s)\n\t\t\tDBG(\";<%.*s>\", msg->via1->params.len, ZSW(msg->via1->params.s));\n\t\tif(msg->via1->comment.s)\n\t\t\tDBG(\" <%.*s>\", msg->via1->comment.len, ZSW(msg->via1->comment.s));\n\t\tDBG(\"\\n\");\n\t}\n\tif(msg->via2) {\n\t\tDBG(\"second via: <%.*s/%.*s/%.*s> <%.*s:%.*s(%d)>\", msg->via2->name.len,\n\t\t\t\tZSW(msg->via2->name.s), msg->via2->version.len,\n\t\t\t\tZSW(msg->via2->version.s), msg->via2->transport.len,\n\t\t\t\tZSW(msg->via2->transport.s), msg->via2->host.len,\n\t\t\t\tZSW(msg->via2->host.s), msg->via2->port_str.len,\n\t\t\t\tZSW(msg->via2->port_str.s), msg->via2->port);\n\t\tif(msg->via2->params.s)\n\t\t\tDBG(\";<%.*s>\", msg->via2->params.len, ZSW(msg->via2->params.s));\n\t\tif(msg->via2->comment.s)\n\t\t\tDBG(\" <%.*s>\", msg->via2->comment.len, ZSW(msg->via2->comment.s));\n\t\tDBG(\"\\n\");\n\t}\n#endif\n\n\n#ifdef EXTRA_DEBUG\n\tDBG(\"exiting parse_msg\\n\");\n#endif\n\n\treturn 0;\n\nerror:\n\t\n\tLOG(cfg_get(core, core_cfg, sip_parser_log),\n\t\t\t\"ERROR: parse_msg: message=<%.*s>\\n\", (int)msg->len,\n\t\t\tZSW(ksr_buf_oneline(msg->buf, (int)msg->len)));\n\treturn -1;\n}", "Selected Statement": "offset = tmp - buf;", "Function Input": {"flags": {"value": "140737322669824"}, "msg": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffff00001f80\n", "message": "Cannot access memory at address 0xffff00001f80"}}}, "Variable Values Before Statement": {"tmp": "0x1b7b2f0 \"\"", "buf": "0x1b7b2f0 \"\""}, "Value After Statement Execution": "int", "Block_Size": 15, "Project Information": "kamailio"} +{"Programming Language": "C", "Source Code": "int parse_msg(\n\t\tchar *const buf, const unsigned int len, struct sip_msg *const msg)\n{\n\n\tchar *tmp;\n\tchar *rest;\n\tstruct msg_start *fl;\n\tint offset;\n\thdr_flags_t flags;\n\n\t\n\tfor(tmp = buf; (tmp - buf < len)\n\t\t\t\t && (*tmp == '\\n' || *tmp == '\\r' || *tmp == '\\0'\n\t\t\t\t\t\t || *tmp == '\\t' || *tmp == ' ');\n\t\t\ttmp++)\n\t\t;\n\toffset = tmp - buf;\n\tfl = &(msg->first_line);\n\trest = parse_first_line(tmp, len - offset, fl);\n\toffset += rest - tmp;\n\ttmp = rest;\n\tswitch(fl->type) {\n\t\tcase SIP_INVALID:\n\t\t\tDBG(\"invalid message\\n\");\n\t\t\tgoto error;\n\t\t\tbreak;\n\t\tcase SIP_REQUEST:\n\t\t\tDBG(\"SIP Request:\\n\");\n\t\t\tDBG(\" method: <%.*s>\\n\", fl->u.request.method.len,\n\t\t\t\t\tZSW(fl->u.request.method.s));\n\t\t\tDBG(\" uri: <%.*s>\\n\", fl->u.request.uri.len,\n\t\t\t\t\tZSW(fl->u.request.uri.s));\n\t\t\tDBG(\" version: <%.*s>\\n\", fl->u.request.version.len,\n\t\t\t\t\tZSW(fl->u.request.version.s));\n\t\t\tflags = HDR_VIA_F;\n\t\t\tbreak;\n\t\tcase SIP_REPLY:\n\t\t\tDBG(\"SIP Reply (status):\\n\");\n\t\t\tDBG(\" version: <%.*s>\\n\", fl->u.reply.version.len,\n\t\t\t\t\tZSW(fl->u.reply.version.s));\n\t\t\tDBG(\" status: <%.*s>\\n\", fl->u.reply.status.len,\n\t\t\t\t\tZSW(fl->u.reply.status.s));\n\t\t\tDBG(\" reason: <%.*s>\\n\", fl->u.reply.reason.len,\n\t\t\t\t\tZSW(fl->u.reply.reason.s));\n\t\t\t\n\t\t\t\n\t\t\tflags = HDR_VIA_F;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tDBG(\"unknown type %d\\n\", fl->type);\n\t\t\tgoto error;\n\t}\n\tmsg->unparsed = tmp;\n\t\n\tif(parse_headers(msg, flags, 0) == -1)\n\t\tgoto error;\n\n#ifdef EXTRA_DEBUG\n\t\n\tif(msg->via1) {\n\t\tDBG(\"first via: <%.*s/%.*s/%.*s> <%.*s:%.*s(%d)>\", msg->via1->name.len,\n\t\t\t\tZSW(msg->via1->name.s), msg->via1->version.len,\n\t\t\t\tZSW(msg->via1->version.s), msg->via1->transport.len,\n\t\t\t\tZSW(msg->via1->transport.s), msg->via1->host.len,\n\t\t\t\tZSW(msg->via1->host.s), msg->via1->port_str.len,\n\t\t\t\tZSW(msg->via1->port_str.s), msg->via1->port);\n\t\tif(msg->via1->params.s)\n\t\t\tDBG(\";<%.*s>\", msg->via1->params.len, ZSW(msg->via1->params.s));\n\t\tif(msg->via1->comment.s)\n\t\t\tDBG(\" <%.*s>\", msg->via1->comment.len, ZSW(msg->via1->comment.s));\n\t\tDBG(\"\\n\");\n\t}\n\tif(msg->via2) {\n\t\tDBG(\"second via: <%.*s/%.*s/%.*s> <%.*s:%.*s(%d)>\", msg->via2->name.len,\n\t\t\t\tZSW(msg->via2->name.s), msg->via2->version.len,\n\t\t\t\tZSW(msg->via2->version.s), msg->via2->transport.len,\n\t\t\t\tZSW(msg->via2->transport.s), msg->via2->host.len,\n\t\t\t\tZSW(msg->via2->host.s), msg->via2->port_str.len,\n\t\t\t\tZSW(msg->via2->port_str.s), msg->via2->port);\n\t\tif(msg->via2->params.s)\n\t\t\tDBG(\";<%.*s>\", msg->via2->params.len, ZSW(msg->via2->params.s));\n\t\tif(msg->via2->comment.s)\n\t\t\tDBG(\" <%.*s>\", msg->via2->comment.len, ZSW(msg->via2->comment.s));\n\t\tDBG(\"\\n\");\n\t}\n#endif\n\n\n#ifdef EXTRA_DEBUG\n\tDBG(\"exiting parse_msg\\n\");\n#endif\n\n\treturn 0;\n\nerror:\n\t\n\tLOG(cfg_get(core, core_cfg, sip_parser_log),\n\t\t\t\"ERROR: parse_msg: message=<%.*s>\\n\", (int)msg->len,\n\t\t\tZSW(ksr_buf_oneline(msg->buf, (int)msg->len)));\n\treturn -1;\n}", "Selected Statement": "rest = parse_first_line(tmp, len - offset, fl);", "Function Input": {"flags": {"value": "140737322669824"}, "msg": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffff00001f80\n", "message": "Cannot access memory at address 0xffff00001f80"}}}, "Variable Values Before Statement": {"tmp": "0x1b7b2f0 \"\"", "fl": {"type": "0", "flags": "0", "len": "0", "u": null}}, "Value After Statement Execution": "0x1b7b2f0 \"\"", "Function Name": "parse_first_line", "Block_Size": 17, "Project Information": "kamailio"} +{"Programming Language": "C", "Source Code": "int parse_msg(\n\t\tchar *const buf, const unsigned int len, struct sip_msg *const msg)\n{\n\n\tchar *tmp;\n\tchar *rest;\n\tstruct msg_start *fl;\n\tint offset;\n\thdr_flags_t flags;\n\n\t\n\tfor(tmp = buf; (tmp - buf < len)\n\t\t\t\t && (*tmp == '\\n' || *tmp == '\\r' || *tmp == '\\0'\n\t\t\t\t\t\t || *tmp == '\\t' || *tmp == ' ');\n\t\t\ttmp++)\n\t\t;\n\toffset = tmp - buf;\n\tfl = &(msg->first_line);\n\trest = parse_first_line(tmp, len - offset, fl);\n\toffset += rest - tmp;\n\ttmp = rest;\n\tswitch(fl->type) {\n\t\tcase SIP_INVALID:\n\t\t\tDBG(\"invalid message\\n\");\n\t\t\tgoto error;\n\t\t\tbreak;\n\t\tcase SIP_REQUEST:\n\t\t\tDBG(\"SIP Request:\\n\");\n\t\t\tDBG(\" method: <%.*s>\\n\", fl->u.request.method.len,\n\t\t\t\t\tZSW(fl->u.request.method.s));\n\t\t\tDBG(\" uri: <%.*s>\\n\", fl->u.request.uri.len,\n\t\t\t\t\tZSW(fl->u.request.uri.s));\n\t\t\tDBG(\" version: <%.*s>\\n\", fl->u.request.version.len,\n\t\t\t\t\tZSW(fl->u.request.version.s));\n\t\t\tflags = HDR_VIA_F;\n\t\t\tbreak;\n\t\tcase SIP_REPLY:\n\t\t\tDBG(\"SIP Reply (status):\\n\");\n\t\t\tDBG(\" version: <%.*s>\\n\", fl->u.reply.version.len,\n\t\t\t\t\tZSW(fl->u.reply.version.s));\n\t\t\tDBG(\" status: <%.*s>\\n\", fl->u.reply.status.len,\n\t\t\t\t\tZSW(fl->u.reply.status.s));\n\t\t\tDBG(\" reason: <%.*s>\\n\", fl->u.reply.reason.len,\n\t\t\t\t\tZSW(fl->u.reply.reason.s));\n\t\t\t\n\t\t\t\n\t\t\tflags = HDR_VIA_F;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tDBG(\"unknown type %d\\n\", fl->type);\n\t\t\tgoto error;\n\t}\n\tmsg->unparsed = tmp;\n\t\n\tif(parse_headers(msg, flags, 0) == -1)\n\t\tgoto error;\n\n#ifdef EXTRA_DEBUG\n\t\n\tif(msg->via1) {\n\t\tDBG(\"first via: <%.*s/%.*s/%.*s> <%.*s:%.*s(%d)>\", msg->via1->name.len,\n\t\t\t\tZSW(msg->via1->name.s), msg->via1->version.len,\n\t\t\t\tZSW(msg->via1->version.s), msg->via1->transport.len,\n\t\t\t\tZSW(msg->via1->transport.s), msg->via1->host.len,\n\t\t\t\tZSW(msg->via1->host.s), msg->via1->port_str.len,\n\t\t\t\tZSW(msg->via1->port_str.s), msg->via1->port);\n\t\tif(msg->via1->params.s)\n\t\t\tDBG(\";<%.*s>\", msg->via1->params.len, ZSW(msg->via1->params.s));\n\t\tif(msg->via1->comment.s)\n\t\t\tDBG(\" <%.*s>\", msg->via1->comment.len, ZSW(msg->via1->comment.s));\n\t\tDBG(\"\\n\");\n\t}\n\tif(msg->via2) {\n\t\tDBG(\"second via: <%.*s/%.*s/%.*s> <%.*s:%.*s(%d)>\", msg->via2->name.len,\n\t\t\t\tZSW(msg->via2->name.s), msg->via2->version.len,\n\t\t\t\tZSW(msg->via2->version.s), msg->via2->transport.len,\n\t\t\t\tZSW(msg->via2->transport.s), msg->via2->host.len,\n\t\t\t\tZSW(msg->via2->host.s), msg->via2->port_str.len,\n\t\t\t\tZSW(msg->via2->port_str.s), msg->via2->port);\n\t\tif(msg->via2->params.s)\n\t\t\tDBG(\";<%.*s>\", msg->via2->params.len, ZSW(msg->via2->params.s));\n\t\tif(msg->via2->comment.s)\n\t\t\tDBG(\" <%.*s>\", msg->via2->comment.len, ZSW(msg->via2->comment.s));\n\t\tDBG(\"\\n\");\n\t}\n#endif\n\n\n#ifdef EXTRA_DEBUG\n\tDBG(\"exiting parse_msg\\n\");\n#endif\n\n\treturn 0;\n\nerror:\n\t\n\tLOG(cfg_get(core, core_cfg, sip_parser_log),\n\t\t\t\"ERROR: parse_msg: message=<%.*s>\\n\", (int)msg->len,\n\t\t\tZSW(ksr_buf_oneline(msg->buf, (int)msg->len)));\n\treturn -1;\n}", "Selected Statement": "offset += rest - tmp;", "Function Input": {"flags": {"value": "140737322669824"}, "msg": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffff00001f80\n", "message": "Cannot access memory at address 0xffff00001f80"}}}, "Variable Values Before Statement": {"rest": "0x1b7b2f0 \"\"", "tmp": "0x1b7b2f0 \"\""}, "Value After Statement Execution": "int", "Block_Size": 18, "Project Information": "kamailio"} +{"Programming Language": "C", "Source Code": "int parse_msg(\n\t\tchar *const buf, const unsigned int len, struct sip_msg *const msg)\n{\n\n\tchar *tmp;\n\tchar *rest;\n\tstruct msg_start *fl;\n\tint offset;\n\thdr_flags_t flags;\n\n\t\n\tfor(tmp = buf; (tmp - buf < len)\n\t\t\t\t && (*tmp == '\\n' || *tmp == '\\r' || *tmp == '\\0'\n\t\t\t\t\t\t || *tmp == '\\t' || *tmp == ' ');\n\t\t\ttmp++)\n\t\t;\n\toffset = tmp - buf;\n\tfl = &(msg->first_line);\n\trest = parse_first_line(tmp, len - offset, fl);\n\toffset += rest - tmp;\n\ttmp = rest;\n\tswitch(fl->type) {\n\t\tcase SIP_INVALID:\n\t\t\tDBG(\"invalid message\\n\");\n\t\t\tgoto error;\n\t\t\tbreak;\n\t\tcase SIP_REQUEST:\n\t\t\tDBG(\"SIP Request:\\n\");\n\t\t\tDBG(\" method: <%.*s>\\n\", fl->u.request.method.len,\n\t\t\t\t\tZSW(fl->u.request.method.s));\n\t\t\tDBG(\" uri: <%.*s>\\n\", fl->u.request.uri.len,\n\t\t\t\t\tZSW(fl->u.request.uri.s));\n\t\t\tDBG(\" version: <%.*s>\\n\", fl->u.request.version.len,\n\t\t\t\t\tZSW(fl->u.request.version.s));\n\t\t\tflags = HDR_VIA_F;\n\t\t\tbreak;\n\t\tcase SIP_REPLY:\n\t\t\tDBG(\"SIP Reply (status):\\n\");\n\t\t\tDBG(\" version: <%.*s>\\n\", fl->u.reply.version.len,\n\t\t\t\t\tZSW(fl->u.reply.version.s));\n\t\t\tDBG(\" status: <%.*s>\\n\", fl->u.reply.status.len,\n\t\t\t\t\tZSW(fl->u.reply.status.s));\n\t\t\tDBG(\" reason: <%.*s>\\n\", fl->u.reply.reason.len,\n\t\t\t\t\tZSW(fl->u.reply.reason.s));\n\t\t\t\n\t\t\t\n\t\t\tflags = HDR_VIA_F;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tDBG(\"unknown type %d\\n\", fl->type);\n\t\t\tgoto error;\n\t}\n\tmsg->unparsed = tmp;\n\t\n\tif(parse_headers(msg, flags, 0) == -1)\n\t\tgoto error;\n\n#ifdef EXTRA_DEBUG\n\t\n\tif(msg->via1) {\n\t\tDBG(\"first via: <%.*s/%.*s/%.*s> <%.*s:%.*s(%d)>\", msg->via1->name.len,\n\t\t\t\tZSW(msg->via1->name.s), msg->via1->version.len,\n\t\t\t\tZSW(msg->via1->version.s), msg->via1->transport.len,\n\t\t\t\tZSW(msg->via1->transport.s), msg->via1->host.len,\n\t\t\t\tZSW(msg->via1->host.s), msg->via1->port_str.len,\n\t\t\t\tZSW(msg->via1->port_str.s), msg->via1->port);\n\t\tif(msg->via1->params.s)\n\t\t\tDBG(\";<%.*s>\", msg->via1->params.len, ZSW(msg->via1->params.s));\n\t\tif(msg->via1->comment.s)\n\t\t\tDBG(\" <%.*s>\", msg->via1->comment.len, ZSW(msg->via1->comment.s));\n\t\tDBG(\"\\n\");\n\t}\n\tif(msg->via2) {\n\t\tDBG(\"second via: <%.*s/%.*s/%.*s> <%.*s:%.*s(%d)>\", msg->via2->name.len,\n\t\t\t\tZSW(msg->via2->name.s), msg->via2->version.len,\n\t\t\t\tZSW(msg->via2->version.s), msg->via2->transport.len,\n\t\t\t\tZSW(msg->via2->transport.s), msg->via2->host.len,\n\t\t\t\tZSW(msg->via2->host.s), msg->via2->port_str.len,\n\t\t\t\tZSW(msg->via2->port_str.s), msg->via2->port);\n\t\tif(msg->via2->params.s)\n\t\t\tDBG(\";<%.*s>\", msg->via2->params.len, ZSW(msg->via2->params.s));\n\t\tif(msg->via2->comment.s)\n\t\t\tDBG(\" <%.*s>\", msg->via2->comment.len, ZSW(msg->via2->comment.s));\n\t\tDBG(\"\\n\");\n\t}\n#endif\n\n\n#ifdef EXTRA_DEBUG\n\tDBG(\"exiting parse_msg\\n\");\n#endif\n\n\treturn 0;\n\nerror:\n\t\n\tLOG(cfg_get(core, core_cfg, sip_parser_log),\n\t\t\t\"ERROR: parse_msg: message=<%.*s>\\n\", (int)msg->len,\n\t\t\tZSW(ksr_buf_oneline(msg->buf, (int)msg->len)));\n\treturn -1;\n}", "Selected Statement": "tmp = rest;", "Function Input": {"flags": {"value": "140737322669824"}, "msg": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffff00001f80\n", "message": "Cannot access memory at address 0xffff00001f80"}}}, "Variable Values Before Statement": {"rest": "\"\""}, "Value After Statement Execution": "\"\"", "Block_Size": 19, "Project Information": "kamailio"} +{"Programming Language": "C", "Source Code": "int shm_address_in(void *p)\n{\n\tint i;\n\n\tfor(i = 0; i < _shm_core_pools_num; i++) {\n\t\tif(_shm_core_pools_mem[i] == (void *)-1) {\n\t\t\tcontinue;\n\t\t}\n\t\tif(((char *)p >= (char *)_shm_core_pools_mem[i])\n\t\t\t\t&& ((char *)p\n\t\t\t\t\t\t< ((char *)_shm_core_pools_mem[i]) + shm_mem_size)) {\n\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t}\n\n\t\n\treturn 0;\n}", "Selected Statement": "for(i = 0; i < _shm_core_pools_num; i++) {", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 3, "Project Information": "kamailio"} +{"Programming Language": "C", "Source Code": "int mdb_set_default_backend(MdbHandle *mdb, const char *backend_name)\n{\n\tMdbBackend *backend;\n\n if (!mdb->backends) {\n mdb_init_backends(mdb);\n }\n\tbackend = (MdbBackend *) g_hash_table_lookup(mdb->backends, backend_name);\n\tif (backend) {\n\t\tmdb->default_backend = backend;\n\t\tg_free(mdb->backend_name); \n\t\tmdb->backend_name = (char *) g_strdup(backend_name);\n\t\tmdb->relationships_table = NULL;\n\t\tif (backend->date_fmt) {\n\t\t\tmdb_set_date_fmt(mdb, backend->date_fmt);\n\t\t} else {\n\t\t\tmdb_set_date_fmt(mdb, \"%x %X\");\n\t\t}\n\t\tif (backend->shortdate_fmt) {\n\t\t\tmdb_set_shortdate_fmt(mdb, backend->shortdate_fmt);\n\t\t} else {\n\t\t\tmdb_set_shortdate_fmt(mdb, \"%x\");\n\t\t}\n\t}\n\treturn (backend != NULL);\n}", "Selected Statement": "mdb->default_backend = backend;", "Function Input": {}, "Variable Values Before Statement": {"backend": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 8, "Project Information": "mdbtools"} +{"Programming Language": "C", "Source Code": "void mdb_iconv_init(MdbHandle *mdb)\n{\n\tconst char *iconv_code;\n\n\t\n\tif (!(iconv_code=getenv(\"MDBICONV\"))) {\n\t\ticonv_code=\"UTF-8\";\n\t}\n\n#ifdef HAVE_ICONV\n\tif (!IS_JET3(mdb)) {\n\t\tmdb->iconv_out = iconv_open(\"UCS-2LE\", iconv_code);\n\t\tmdb->iconv_in = iconv_open(iconv_code, \"UCS-2LE\");\n\t} else {\n\t\t\n\t\tconst char *jet3_iconv_code = getenv(\"MDB_JET3_CHARSET\");\n\n\t\tif (!jet3_iconv_code) {\n\t\t\t\n\t\t\t\n\t\t\tjet3_iconv_code = mdb_iconv_name_from_code_page(mdb->f->code_page);\n\t\t}\n\t\tif (!jet3_iconv_code) {\n\t\t\tjet3_iconv_code = \"CP1252\";\n\t\t}\n\n\t\tmdb->iconv_out = iconv_open(jet3_iconv_code, iconv_code);\n\t\tmdb->iconv_in = iconv_open(iconv_code, jet3_iconv_code);\n\t}\n#elif defined(_WIN32) || defined(WIN32) || defined(_WIN64) || defined(WIN64) || defined(WINDOWS)\n mdb->locale = _create_locale(LC_CTYPE, \".65001\");\n#else\n mdb->locale = newlocale(LC_CTYPE_MASK, \"C.UTF-8\", NULL);\n#endif\n}", "Selected Statement": "mdb->iconv_out = iconv_open(jet3_iconv_code, iconv_code);", "Function Input": {}, "Variable Values Before Statement": {"jet3_iconv_code": "0x53100c \"CP1252\"", "iconv_code": "0x530fed \"UTF-8\""}, "Value After Statement Execution": "0xf74f80", "Function Name": "iconv_open", "Block_Size": 26, "Project Information": "mdbtools"} +{"Programming Language": "C", "Source Code": "int libbfio_handle_initialize(\n libbfio_handle_t **handle,\n intptr_t *io_handle,\n int (*free_io_handle)(\n intptr_t **io_handle,\n libcerror_error_t **error ),\n int (*clone_io_handle)(\n intptr_t **destination_io_handle,\n intptr_t *source_io_handle,\n libcerror_error_t **error ),\n int (*open)(\n intptr_t *io_handle,\n int access_flags,\n libcerror_error_t **error ),\n int (*close)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n ssize_t (*read)(\n intptr_t *io_handle,\n uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n ssize_t (*write)(\n intptr_t *io_handle,\n const uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n off64_t (*seek_offset)(\n intptr_t *io_handle,\n off64_t offset,\n int whence,\n libcerror_error_t **error ),\n int (*exists)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*is_open)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*get_size)(\n intptr_t *io_handle,\n size64_t *size,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibbfio_internal_handle_t *internal_handle = NULL;\n\tstatic char *function = \"libbfio_handle_initialize\";\n\n\tif( handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_handle = memory_allocate_structure(\n\t libbfio_internal_handle_t );\n\n\tif( internal_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_handle,\n\t 0,\n\t sizeof( libbfio_internal_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear handle.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_handle );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_range_list_initialize(\n\t &( internal_handle->offsets_read ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create read offsets list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_handle->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to intialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_handle->io_handle = io_handle;\n\tinternal_handle->flags = flags;\n\tinternal_handle->free_io_handle = free_io_handle;\n\tinternal_handle->clone_io_handle = clone_io_handle;\n\tinternal_handle->open = open;\n\tinternal_handle->close = close;\n\tinternal_handle->read = read;\n\tinternal_handle->write = write;\n\tinternal_handle->seek_offset = seek_offset;\n\tinternal_handle->exists = exists;\n\tinternal_handle->is_open = is_open;\n\tinternal_handle->get_size = get_size;\n\n\t*handle = (libbfio_handle_t *) internal_handle;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_handle != NULL )\n\t{\n\t\tif( internal_handle->offsets_read != NULL )\n\t\t{\n\t\t\tlibcdata_range_list_free(\n\t\t\t &( internal_handle->offsets_read ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_handle );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_handle->io_handle = io_handle;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1060fe1a\n", "message": "Cannot access memory at address 0x1060fe1a"}}, "flags": {"value": "0 '\\000'"}, "handle": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"io_handle": "0"}, "Value After Statement Execution": "0", "Block_Size": 128, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libbfio_handle_initialize(\n libbfio_handle_t **handle,\n intptr_t *io_handle,\n int (*free_io_handle)(\n intptr_t **io_handle,\n libcerror_error_t **error ),\n int (*clone_io_handle)(\n intptr_t **destination_io_handle,\n intptr_t *source_io_handle,\n libcerror_error_t **error ),\n int (*open)(\n intptr_t *io_handle,\n int access_flags,\n libcerror_error_t **error ),\n int (*close)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n ssize_t (*read)(\n intptr_t *io_handle,\n uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n ssize_t (*write)(\n intptr_t *io_handle,\n const uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n off64_t (*seek_offset)(\n intptr_t *io_handle,\n off64_t offset,\n int whence,\n libcerror_error_t **error ),\n int (*exists)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*is_open)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*get_size)(\n intptr_t *io_handle,\n size64_t *size,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibbfio_internal_handle_t *internal_handle = NULL;\n\tstatic char *function = \"libbfio_handle_initialize\";\n\n\tif( handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_handle = memory_allocate_structure(\n\t libbfio_internal_handle_t );\n\n\tif( internal_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_handle,\n\t 0,\n\t sizeof( libbfio_internal_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear handle.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_handle );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_range_list_initialize(\n\t &( internal_handle->offsets_read ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create read offsets list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_handle->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to intialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_handle->io_handle = io_handle;\n\tinternal_handle->flags = flags;\n\tinternal_handle->free_io_handle = free_io_handle;\n\tinternal_handle->clone_io_handle = clone_io_handle;\n\tinternal_handle->open = open;\n\tinternal_handle->close = close;\n\tinternal_handle->read = read;\n\tinternal_handle->write = write;\n\tinternal_handle->seek_offset = seek_offset;\n\tinternal_handle->exists = exists;\n\tinternal_handle->is_open = is_open;\n\tinternal_handle->get_size = get_size;\n\n\t*handle = (libbfio_handle_t *) internal_handle;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_handle != NULL )\n\t{\n\t\tif( internal_handle->offsets_read != NULL )\n\t\t{\n\t\t\tlibcdata_range_list_free(\n\t\t\t &( internal_handle->offsets_read ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_handle );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_handle->flags = flags;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1060fe1a\n", "message": "Cannot access memory at address 0x1060fe1a"}}, "flags": {"value": "0 '\\000'"}, "handle": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"flags": "1 '\\001'"}, "Value After Statement Execution": "1 '\\001'", "Block_Size": 129, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libbfio_handle_initialize(\n libbfio_handle_t **handle,\n intptr_t *io_handle,\n int (*free_io_handle)(\n intptr_t **io_handle,\n libcerror_error_t **error ),\n int (*clone_io_handle)(\n intptr_t **destination_io_handle,\n intptr_t *source_io_handle,\n libcerror_error_t **error ),\n int (*open)(\n intptr_t *io_handle,\n int access_flags,\n libcerror_error_t **error ),\n int (*close)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n ssize_t (*read)(\n intptr_t *io_handle,\n uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n ssize_t (*write)(\n intptr_t *io_handle,\n const uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n off64_t (*seek_offset)(\n intptr_t *io_handle,\n off64_t offset,\n int whence,\n libcerror_error_t **error ),\n int (*exists)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*is_open)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*get_size)(\n intptr_t *io_handle,\n size64_t *size,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibbfio_internal_handle_t *internal_handle = NULL;\n\tstatic char *function = \"libbfio_handle_initialize\";\n\n\tif( handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_handle = memory_allocate_structure(\n\t libbfio_internal_handle_t );\n\n\tif( internal_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_handle,\n\t 0,\n\t sizeof( libbfio_internal_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear handle.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_handle );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_range_list_initialize(\n\t &( internal_handle->offsets_read ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create read offsets list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_handle->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to intialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_handle->io_handle = io_handle;\n\tinternal_handle->flags = flags;\n\tinternal_handle->free_io_handle = free_io_handle;\n\tinternal_handle->clone_io_handle = clone_io_handle;\n\tinternal_handle->open = open;\n\tinternal_handle->close = close;\n\tinternal_handle->read = read;\n\tinternal_handle->write = write;\n\tinternal_handle->seek_offset = seek_offset;\n\tinternal_handle->exists = exists;\n\tinternal_handle->is_open = is_open;\n\tinternal_handle->get_size = get_size;\n\n\t*handle = (libbfio_handle_t *) internal_handle;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_handle != NULL )\n\t{\n\t\tif( internal_handle->offsets_read != NULL )\n\t\t{\n\t\t\tlibcdata_range_list_free(\n\t\t\t &( internal_handle->offsets_read ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_handle );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_handle->free_io_handle = free_io_handle;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1060fe1a\n", "message": "Cannot access memory at address 0x1060fe1a"}}, "flags": {"value": "0 '\\000'"}, "handle": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"free_io_handle": "{int (intptr_t **, libcerror_error_t **)} 0x4c59c0 "}, "Value After Statement Execution": "{int (intptr_t **, libcerror_error_t **)} 0x4c59c0 ", "Block_Size": 130, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libbfio_handle_initialize(\n libbfio_handle_t **handle,\n intptr_t *io_handle,\n int (*free_io_handle)(\n intptr_t **io_handle,\n libcerror_error_t **error ),\n int (*clone_io_handle)(\n intptr_t **destination_io_handle,\n intptr_t *source_io_handle,\n libcerror_error_t **error ),\n int (*open)(\n intptr_t *io_handle,\n int access_flags,\n libcerror_error_t **error ),\n int (*close)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n ssize_t (*read)(\n intptr_t *io_handle,\n uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n ssize_t (*write)(\n intptr_t *io_handle,\n const uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n off64_t (*seek_offset)(\n intptr_t *io_handle,\n off64_t offset,\n int whence,\n libcerror_error_t **error ),\n int (*exists)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*is_open)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*get_size)(\n intptr_t *io_handle,\n size64_t *size,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibbfio_internal_handle_t *internal_handle = NULL;\n\tstatic char *function = \"libbfio_handle_initialize\";\n\n\tif( handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_handle = memory_allocate_structure(\n\t libbfio_internal_handle_t );\n\n\tif( internal_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_handle,\n\t 0,\n\t sizeof( libbfio_internal_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear handle.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_handle );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_range_list_initialize(\n\t &( internal_handle->offsets_read ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create read offsets list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_handle->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to intialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_handle->io_handle = io_handle;\n\tinternal_handle->flags = flags;\n\tinternal_handle->free_io_handle = free_io_handle;\n\tinternal_handle->clone_io_handle = clone_io_handle;\n\tinternal_handle->open = open;\n\tinternal_handle->close = close;\n\tinternal_handle->read = read;\n\tinternal_handle->write = write;\n\tinternal_handle->seek_offset = seek_offset;\n\tinternal_handle->exists = exists;\n\tinternal_handle->is_open = is_open;\n\tinternal_handle->get_size = get_size;\n\n\t*handle = (libbfio_handle_t *) internal_handle;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_handle != NULL )\n\t{\n\t\tif( internal_handle->offsets_read != NULL )\n\t\t{\n\t\t\tlibcdata_range_list_free(\n\t\t\t &( internal_handle->offsets_read ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_handle );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_handle->clone_io_handle = clone_io_handle;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1060fe1a\n", "message": "Cannot access memory at address 0x1060fe1a"}}, "flags": {"value": "0 '\\000'"}, "handle": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"clone_io_handle": "{int (intptr_t **, intptr_t *, libcerror_error_t **)} 0x4c5ac0 "}, "Value After Statement Execution": "{int (intptr_t **, intptr_t *, libcerror_error_t **)} 0x4c5ac0 ", "Block_Size": 131, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libbfio_handle_initialize(\n libbfio_handle_t **handle,\n intptr_t *io_handle,\n int (*free_io_handle)(\n intptr_t **io_handle,\n libcerror_error_t **error ),\n int (*clone_io_handle)(\n intptr_t **destination_io_handle,\n intptr_t *source_io_handle,\n libcerror_error_t **error ),\n int (*open)(\n intptr_t *io_handle,\n int access_flags,\n libcerror_error_t **error ),\n int (*close)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n ssize_t (*read)(\n intptr_t *io_handle,\n uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n ssize_t (*write)(\n intptr_t *io_handle,\n const uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n off64_t (*seek_offset)(\n intptr_t *io_handle,\n off64_t offset,\n int whence,\n libcerror_error_t **error ),\n int (*exists)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*is_open)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*get_size)(\n intptr_t *io_handle,\n size64_t *size,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibbfio_internal_handle_t *internal_handle = NULL;\n\tstatic char *function = \"libbfio_handle_initialize\";\n\n\tif( handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_handle = memory_allocate_structure(\n\t libbfio_internal_handle_t );\n\n\tif( internal_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_handle,\n\t 0,\n\t sizeof( libbfio_internal_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear handle.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_handle );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_range_list_initialize(\n\t &( internal_handle->offsets_read ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create read offsets list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_handle->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to intialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_handle->io_handle = io_handle;\n\tinternal_handle->flags = flags;\n\tinternal_handle->free_io_handle = free_io_handle;\n\tinternal_handle->clone_io_handle = clone_io_handle;\n\tinternal_handle->open = open;\n\tinternal_handle->close = close;\n\tinternal_handle->read = read;\n\tinternal_handle->write = write;\n\tinternal_handle->seek_offset = seek_offset;\n\tinternal_handle->exists = exists;\n\tinternal_handle->is_open = is_open;\n\tinternal_handle->get_size = get_size;\n\n\t*handle = (libbfio_handle_t *) internal_handle;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_handle != NULL )\n\t{\n\t\tif( internal_handle->offsets_read != NULL )\n\t\t{\n\t\t\tlibcdata_range_list_free(\n\t\t\t &( internal_handle->offsets_read ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_handle );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_handle->open = open;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1060fe1a\n", "message": "Cannot access memory at address 0x1060fe1a"}}, "flags": {"value": "0 '\\000'"}, "handle": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"open": "{int (intptr_t *, int, libcerror_error_t **)} 0x4c6080 "}, "Value After Statement Execution": "{int (intptr_t *, int, libcerror_error_t **)} 0x4c6080 ", "Block_Size": 132, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libbfio_handle_initialize(\n libbfio_handle_t **handle,\n intptr_t *io_handle,\n int (*free_io_handle)(\n intptr_t **io_handle,\n libcerror_error_t **error ),\n int (*clone_io_handle)(\n intptr_t **destination_io_handle,\n intptr_t *source_io_handle,\n libcerror_error_t **error ),\n int (*open)(\n intptr_t *io_handle,\n int access_flags,\n libcerror_error_t **error ),\n int (*close)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n ssize_t (*read)(\n intptr_t *io_handle,\n uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n ssize_t (*write)(\n intptr_t *io_handle,\n const uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n off64_t (*seek_offset)(\n intptr_t *io_handle,\n off64_t offset,\n int whence,\n libcerror_error_t **error ),\n int (*exists)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*is_open)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*get_size)(\n intptr_t *io_handle,\n size64_t *size,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibbfio_internal_handle_t *internal_handle = NULL;\n\tstatic char *function = \"libbfio_handle_initialize\";\n\n\tif( handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_handle = memory_allocate_structure(\n\t libbfio_internal_handle_t );\n\n\tif( internal_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_handle,\n\t 0,\n\t sizeof( libbfio_internal_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear handle.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_handle );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_range_list_initialize(\n\t &( internal_handle->offsets_read ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create read offsets list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_handle->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to intialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_handle->io_handle = io_handle;\n\tinternal_handle->flags = flags;\n\tinternal_handle->free_io_handle = free_io_handle;\n\tinternal_handle->clone_io_handle = clone_io_handle;\n\tinternal_handle->open = open;\n\tinternal_handle->close = close;\n\tinternal_handle->read = read;\n\tinternal_handle->write = write;\n\tinternal_handle->seek_offset = seek_offset;\n\tinternal_handle->exists = exists;\n\tinternal_handle->is_open = is_open;\n\tinternal_handle->get_size = get_size;\n\n\t*handle = (libbfio_handle_t *) internal_handle;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_handle != NULL )\n\t{\n\t\tif( internal_handle->offsets_read != NULL )\n\t\t{\n\t\t\tlibcdata_range_list_free(\n\t\t\t &( internal_handle->offsets_read ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_handle );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_handle->close = close;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1060fe1a\n", "message": "Cannot access memory at address 0x1060fe1a"}}, "flags": {"value": "0 '\\000'"}, "handle": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"close": "{int (intptr_t *, libcerror_error_t **)} 0x4c62c0 "}, "Value After Statement Execution": "{int (intptr_t *, libcerror_error_t **)} 0x4c62c0 ", "Block_Size": 133, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libbfio_handle_initialize(\n libbfio_handle_t **handle,\n intptr_t *io_handle,\n int (*free_io_handle)(\n intptr_t **io_handle,\n libcerror_error_t **error ),\n int (*clone_io_handle)(\n intptr_t **destination_io_handle,\n intptr_t *source_io_handle,\n libcerror_error_t **error ),\n int (*open)(\n intptr_t *io_handle,\n int access_flags,\n libcerror_error_t **error ),\n int (*close)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n ssize_t (*read)(\n intptr_t *io_handle,\n uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n ssize_t (*write)(\n intptr_t *io_handle,\n const uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n off64_t (*seek_offset)(\n intptr_t *io_handle,\n off64_t offset,\n int whence,\n libcerror_error_t **error ),\n int (*exists)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*is_open)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*get_size)(\n intptr_t *io_handle,\n size64_t *size,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibbfio_internal_handle_t *internal_handle = NULL;\n\tstatic char *function = \"libbfio_handle_initialize\";\n\n\tif( handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_handle = memory_allocate_structure(\n\t libbfio_internal_handle_t );\n\n\tif( internal_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_handle,\n\t 0,\n\t sizeof( libbfio_internal_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear handle.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_handle );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_range_list_initialize(\n\t &( internal_handle->offsets_read ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create read offsets list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_handle->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to intialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_handle->io_handle = io_handle;\n\tinternal_handle->flags = flags;\n\tinternal_handle->free_io_handle = free_io_handle;\n\tinternal_handle->clone_io_handle = clone_io_handle;\n\tinternal_handle->open = open;\n\tinternal_handle->close = close;\n\tinternal_handle->read = read;\n\tinternal_handle->write = write;\n\tinternal_handle->seek_offset = seek_offset;\n\tinternal_handle->exists = exists;\n\tinternal_handle->is_open = is_open;\n\tinternal_handle->get_size = get_size;\n\n\t*handle = (libbfio_handle_t *) internal_handle;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_handle != NULL )\n\t{\n\t\tif( internal_handle->offsets_read != NULL )\n\t\t{\n\t\t\tlibcdata_range_list_free(\n\t\t\t &( internal_handle->offsets_read ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_handle );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_handle->read = read;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1060fe1a\n", "message": "Cannot access memory at address 0x1060fe1a"}}, "flags": {"value": "0 '\\000'"}, "handle": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"read": "{ssize_t (intptr_t *, uint8_t *, size_t, libcerror_error_t **)} 0x4c6440 "}, "Value After Statement Execution": "{ssize_t (intptr_t *, uint8_t *, size_t, libcerror_error_t **)} 0x4c6440 ", "Block_Size": 134, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libbfio_handle_initialize(\n libbfio_handle_t **handle,\n intptr_t *io_handle,\n int (*free_io_handle)(\n intptr_t **io_handle,\n libcerror_error_t **error ),\n int (*clone_io_handle)(\n intptr_t **destination_io_handle,\n intptr_t *source_io_handle,\n libcerror_error_t **error ),\n int (*open)(\n intptr_t *io_handle,\n int access_flags,\n libcerror_error_t **error ),\n int (*close)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n ssize_t (*read)(\n intptr_t *io_handle,\n uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n ssize_t (*write)(\n intptr_t *io_handle,\n const uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n off64_t (*seek_offset)(\n intptr_t *io_handle,\n off64_t offset,\n int whence,\n libcerror_error_t **error ),\n int (*exists)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*is_open)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*get_size)(\n intptr_t *io_handle,\n size64_t *size,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibbfio_internal_handle_t *internal_handle = NULL;\n\tstatic char *function = \"libbfio_handle_initialize\";\n\n\tif( handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_handle = memory_allocate_structure(\n\t libbfio_internal_handle_t );\n\n\tif( internal_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_handle,\n\t 0,\n\t sizeof( libbfio_internal_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear handle.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_handle );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_range_list_initialize(\n\t &( internal_handle->offsets_read ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create read offsets list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_handle->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to intialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_handle->io_handle = io_handle;\n\tinternal_handle->flags = flags;\n\tinternal_handle->free_io_handle = free_io_handle;\n\tinternal_handle->clone_io_handle = clone_io_handle;\n\tinternal_handle->open = open;\n\tinternal_handle->close = close;\n\tinternal_handle->read = read;\n\tinternal_handle->write = write;\n\tinternal_handle->seek_offset = seek_offset;\n\tinternal_handle->exists = exists;\n\tinternal_handle->is_open = is_open;\n\tinternal_handle->get_size = get_size;\n\n\t*handle = (libbfio_handle_t *) internal_handle;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_handle != NULL )\n\t{\n\t\tif( internal_handle->offsets_read != NULL )\n\t\t{\n\t\t\tlibcdata_range_list_free(\n\t\t\t &( internal_handle->offsets_read ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_handle );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_handle->write = write;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1060fe1a\n", "message": "Cannot access memory at address 0x1060fe1a"}}, "flags": {"value": "0 '\\000'"}, "handle": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"write": "{ssize_t (intptr_t *, const uint8_t *, size_t, libcerror_error_t **)} 0x4c68d0 "}, "Value After Statement Execution": "{ssize_t (intptr_t *, const uint8_t *, size_t, libcerror_error_t **)} 0x4c68d0 ", "Block_Size": 135, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libbfio_handle_initialize(\n libbfio_handle_t **handle,\n intptr_t *io_handle,\n int (*free_io_handle)(\n intptr_t **io_handle,\n libcerror_error_t **error ),\n int (*clone_io_handle)(\n intptr_t **destination_io_handle,\n intptr_t *source_io_handle,\n libcerror_error_t **error ),\n int (*open)(\n intptr_t *io_handle,\n int access_flags,\n libcerror_error_t **error ),\n int (*close)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n ssize_t (*read)(\n intptr_t *io_handle,\n uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n ssize_t (*write)(\n intptr_t *io_handle,\n const uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n off64_t (*seek_offset)(\n intptr_t *io_handle,\n off64_t offset,\n int whence,\n libcerror_error_t **error ),\n int (*exists)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*is_open)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*get_size)(\n intptr_t *io_handle,\n size64_t *size,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibbfio_internal_handle_t *internal_handle = NULL;\n\tstatic char *function = \"libbfio_handle_initialize\";\n\n\tif( handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_handle = memory_allocate_structure(\n\t libbfio_internal_handle_t );\n\n\tif( internal_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_handle,\n\t 0,\n\t sizeof( libbfio_internal_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear handle.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_handle );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_range_list_initialize(\n\t &( internal_handle->offsets_read ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create read offsets list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_handle->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to intialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_handle->io_handle = io_handle;\n\tinternal_handle->flags = flags;\n\tinternal_handle->free_io_handle = free_io_handle;\n\tinternal_handle->clone_io_handle = clone_io_handle;\n\tinternal_handle->open = open;\n\tinternal_handle->close = close;\n\tinternal_handle->read = read;\n\tinternal_handle->write = write;\n\tinternal_handle->seek_offset = seek_offset;\n\tinternal_handle->exists = exists;\n\tinternal_handle->is_open = is_open;\n\tinternal_handle->get_size = get_size;\n\n\t*handle = (libbfio_handle_t *) internal_handle;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_handle != NULL )\n\t{\n\t\tif( internal_handle->offsets_read != NULL )\n\t\t{\n\t\t\tlibcdata_range_list_free(\n\t\t\t &( internal_handle->offsets_read ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_handle );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_handle->seek_offset = seek_offset;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1060fe1a\n", "message": "Cannot access memory at address 0x1060fe1a"}}, "flags": {"value": "0 '\\000'"}, "handle": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"seek_offset": "{off64_t (intptr_t *, off64_t, int, libcerror_error_t **)} 0x4c6d60 "}, "Value After Statement Execution": "{off64_t (intptr_t *, off64_t, int, libcerror_error_t **)} 0x4c6d60 ", "Block_Size": 136, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libbfio_handle_initialize(\n libbfio_handle_t **handle,\n intptr_t *io_handle,\n int (*free_io_handle)(\n intptr_t **io_handle,\n libcerror_error_t **error ),\n int (*clone_io_handle)(\n intptr_t **destination_io_handle,\n intptr_t *source_io_handle,\n libcerror_error_t **error ),\n int (*open)(\n intptr_t *io_handle,\n int access_flags,\n libcerror_error_t **error ),\n int (*close)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n ssize_t (*read)(\n intptr_t *io_handle,\n uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n ssize_t (*write)(\n intptr_t *io_handle,\n const uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n off64_t (*seek_offset)(\n intptr_t *io_handle,\n off64_t offset,\n int whence,\n libcerror_error_t **error ),\n int (*exists)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*is_open)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*get_size)(\n intptr_t *io_handle,\n size64_t *size,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibbfio_internal_handle_t *internal_handle = NULL;\n\tstatic char *function = \"libbfio_handle_initialize\";\n\n\tif( handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_handle = memory_allocate_structure(\n\t libbfio_internal_handle_t );\n\n\tif( internal_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_handle,\n\t 0,\n\t sizeof( libbfio_internal_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear handle.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_handle );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_range_list_initialize(\n\t &( internal_handle->offsets_read ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create read offsets list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_handle->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to intialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_handle->io_handle = io_handle;\n\tinternal_handle->flags = flags;\n\tinternal_handle->free_io_handle = free_io_handle;\n\tinternal_handle->clone_io_handle = clone_io_handle;\n\tinternal_handle->open = open;\n\tinternal_handle->close = close;\n\tinternal_handle->read = read;\n\tinternal_handle->write = write;\n\tinternal_handle->seek_offset = seek_offset;\n\tinternal_handle->exists = exists;\n\tinternal_handle->is_open = is_open;\n\tinternal_handle->get_size = get_size;\n\n\t*handle = (libbfio_handle_t *) internal_handle;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_handle != NULL )\n\t{\n\t\tif( internal_handle->offsets_read != NULL )\n\t\t{\n\t\t\tlibcdata_range_list_free(\n\t\t\t &( internal_handle->offsets_read ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_handle );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_handle->exists = exists;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1060fe1a\n", "message": "Cannot access memory at address 0x1060fe1a"}}, "flags": {"value": "0 '\\000'"}, "handle": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"exists": "{int (intptr_t *, libcerror_error_t **)} 0x4c71c0 "}, "Value After Statement Execution": "{int (intptr_t *, libcerror_error_t **)} 0x4c71c0 ", "Block_Size": 137, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libbfio_handle_initialize(\n libbfio_handle_t **handle,\n intptr_t *io_handle,\n int (*free_io_handle)(\n intptr_t **io_handle,\n libcerror_error_t **error ),\n int (*clone_io_handle)(\n intptr_t **destination_io_handle,\n intptr_t *source_io_handle,\n libcerror_error_t **error ),\n int (*open)(\n intptr_t *io_handle,\n int access_flags,\n libcerror_error_t **error ),\n int (*close)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n ssize_t (*read)(\n intptr_t *io_handle,\n uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n ssize_t (*write)(\n intptr_t *io_handle,\n const uint8_t *buffer,\n size_t size,\n libcerror_error_t **error ),\n off64_t (*seek_offset)(\n intptr_t *io_handle,\n off64_t offset,\n int whence,\n libcerror_error_t **error ),\n int (*exists)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*is_open)(\n intptr_t *io_handle,\n libcerror_error_t **error ),\n int (*get_size)(\n intptr_t *io_handle,\n size64_t *size,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibbfio_internal_handle_t *internal_handle = NULL;\n\tstatic char *function = \"libbfio_handle_initialize\";\n\n\tif( handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_handle = memory_allocate_structure(\n\t libbfio_internal_handle_t );\n\n\tif( internal_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_handle,\n\t 0,\n\t sizeof( libbfio_internal_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear handle.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_handle );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_range_list_initialize(\n\t &( internal_handle->offsets_read ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create read offsets list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_handle->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to intialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_handle->io_handle = io_handle;\n\tinternal_handle->flags = flags;\n\tinternal_handle->free_io_handle = free_io_handle;\n\tinternal_handle->clone_io_handle = clone_io_handle;\n\tinternal_handle->open = open;\n\tinternal_handle->close = close;\n\tinternal_handle->read = read;\n\tinternal_handle->write = write;\n\tinternal_handle->seek_offset = seek_offset;\n\tinternal_handle->exists = exists;\n\tinternal_handle->is_open = is_open;\n\tinternal_handle->get_size = get_size;\n\n\t*handle = (libbfio_handle_t *) internal_handle;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_handle != NULL )\n\t{\n\t\tif( internal_handle->offsets_read != NULL )\n\t\t{\n\t\t\tlibcdata_range_list_free(\n\t\t\t &( internal_handle->offsets_read ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_handle );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_handle->is_open = is_open;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1060fe1a\n", "message": "Cannot access memory at address 0x1060fe1a"}}, "flags": {"value": "0 '\\000'"}, "handle": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"is_open": "{int (intptr_t *, libcerror_error_t **)} 0x4c72b0 "}, "Value After Statement Execution": "{int (intptr_t *, libcerror_error_t **)} 0x4c72b0 ", "Block_Size": 138, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsapfs_io_handle_initialize(\n libfsapfs_io_handle_t **io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsapfs_io_handle_initialize\";\n\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *io_handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid IO handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*io_handle = memory_allocate_structure(\n\t libfsapfs_io_handle_t );\n\n\tif( *io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *io_handle,\n\t 0,\n\t sizeof( libfsapfs_io_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear IO handle.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_PROFILER )\n\tif( libfsapfs_profiler_initialize(\n\t &( ( *io_handle )->profiler ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to initialize profiler.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsapfs_profiler_open(\n\t ( *io_handle )->profiler,\n\t \"profiler.csv\",\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t \"%s: unable to open profiler.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif \n\n\t( *io_handle )->bytes_per_sector = 512;\n\t( *io_handle )->block_size = 4096;\n\n\treturn( 1 );\n\non_error:\n\tif( *io_handle != NULL )\n\t{\n#if defined( HAVE_PROFILER )\n\t\tif( ( *io_handle )->profiler != NULL )\n\t\t{\n\t\t\tlibfsapfs_profiler_free(\n\t\t\t &( ( *io_handle )->profiler ),\n\t\t\t NULL );\n\t\t}\n#endif\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *io_handle )->bytes_per_sector = 512;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1004c73e0\n", "message": "Cannot access memory at address 0x1004c73e0"}}, "io_handle": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x11\n", "message": "Cannot access memory at address 0x11"}}}, "Variable Values Before Statement": {"constant": "512"}, "Value After Statement Execution": "512", "Block_Size": 90, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfshfs_extents_record_read_data(\n libfshfs_fork_descriptor_t *fork_descriptor,\n uint16_t extents_start_block_number,\n const uint8_t *data,\n size_t data_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfshfs_extents_record_read_data\";\n\tsize_t data_offset = 0;\n\tuint32_t physical_extent_block_number = 0;\n\tuint16_t extent_block_number = 0;\n\tuint16_t extent_number_of_blocks = 0;\n\tint extent_index = 0;\n\n\tif( fork_descriptor == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid fork descriptor.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: extents records data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tif( data_size != 12 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported extents record data size: %\" PRIzd \"\\n\",\n\t\t function,\n\t\t data_size );\n\n\t\treturn( -1 );\n\t}\n\twhile( data_offset < 12 )\n\t{\n\t\tbyte_stream_copy_to_uint16_big_endian(\n\t\t &( data[ data_offset ] ),\n\t\t extent_block_number );\n\n\t\tdata_offset += 2;\n\n\t\tbyte_stream_copy_to_uint16_big_endian(\n\t\t &( data[ data_offset ] ),\n\t\t extent_number_of_blocks );\n\n\t\tdata_offset += 2;\n\n\t\tphysical_extent_block_number = extent_block_number;\n\n\t\tif( extent_number_of_blocks > 0 )\n\t\t{\n\t\t\tphysical_extent_block_number += extents_start_block_number;\n\t\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\t\tif( libcnotify_verbose != 0 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: extent: %d block number\\t\\t: %\" PRIu32 \" (%\" PRIu16 \")\\n\",\n\t\t\t function,\n\t\t\t extent_index,\n\t\t\t physical_extent_block_number,\n\t\t\t extent_block_number );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: extent: %d number of blocks\\t\\t: %\" PRIu16 \"\\n\",\n\t\t\t function,\n\t\t\t extent_index,\n\t\t\t extent_number_of_blocks );\n\t\t}\n#endif \n\n\t\tfork_descriptor->extents[ extent_index ][ 0 ] = physical_extent_block_number;\n\t\tfork_descriptor->extents[ extent_index ][ 1 ] = extent_number_of_blocks;\n\n\t\tfork_descriptor->number_of_blocks_in_extents += extent_number_of_blocks;\n\n\t\textent_index++;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif\n\treturn( 1 );\n}", "Selected Statement": "static char *function = \"libfshfs_extents_record_read_data\";", "Function Input": {"data": {"value": "0x600 "}, "data_size": {"value": "4809124"}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffd8e0", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "140737488346128"}}}, "extents_start_block_number": {"value": "0"}, "fork_descriptor": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"size": {"type_category": "unknown", "concrete_type": "uint64_t", "value": "0"}, "number_of_blocks": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, "extents": {"type_category": "array", "concrete_type": "ARRAY", "value": [{"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}]}, "number_of_blocks_in_extents": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}}}, "Variable Values Before Statement": {"constant": "\"libfshfs_extents_record_read_data\""}, "Value After Statement Execution": "\"libfshfs_extents_record_read_data\"", "Block_Size": 6, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfshfs_extents_record_read_data(\n libfshfs_fork_descriptor_t *fork_descriptor,\n uint16_t extents_start_block_number,\n const uint8_t *data,\n size_t data_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfshfs_extents_record_read_data\";\n\tsize_t data_offset = 0;\n\tuint32_t physical_extent_block_number = 0;\n\tuint16_t extent_block_number = 0;\n\tuint16_t extent_number_of_blocks = 0;\n\tint extent_index = 0;\n\n\tif( fork_descriptor == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid fork descriptor.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: extents records data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tif( data_size != 12 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported extents record data size: %\" PRIzd \"\\n\",\n\t\t function,\n\t\t data_size );\n\n\t\treturn( -1 );\n\t}\n\twhile( data_offset < 12 )\n\t{\n\t\tbyte_stream_copy_to_uint16_big_endian(\n\t\t &( data[ data_offset ] ),\n\t\t extent_block_number );\n\n\t\tdata_offset += 2;\n\n\t\tbyte_stream_copy_to_uint16_big_endian(\n\t\t &( data[ data_offset ] ),\n\t\t extent_number_of_blocks );\n\n\t\tdata_offset += 2;\n\n\t\tphysical_extent_block_number = extent_block_number;\n\n\t\tif( extent_number_of_blocks > 0 )\n\t\t{\n\t\t\tphysical_extent_block_number += extents_start_block_number;\n\t\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\t\tif( libcnotify_verbose != 0 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: extent: %d block number\\t\\t: %\" PRIu32 \" (%\" PRIu16 \")\\n\",\n\t\t\t function,\n\t\t\t extent_index,\n\t\t\t physical_extent_block_number,\n\t\t\t extent_block_number );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: extent: %d number of blocks\\t\\t: %\" PRIu16 \"\\n\",\n\t\t\t function,\n\t\t\t extent_index,\n\t\t\t extent_number_of_blocks );\n\t\t}\n#endif \n\n\t\tfork_descriptor->extents[ extent_index ][ 0 ] = physical_extent_block_number;\n\t\tfork_descriptor->extents[ extent_index ][ 1 ] = extent_number_of_blocks;\n\n\t\tfork_descriptor->number_of_blocks_in_extents += extent_number_of_blocks;\n\n\t\textent_index++;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif\n\treturn( 1 );\n}", "Selected Statement": "size_t data_offset = 0;", "Function Input": {"data": {"value": "0x600 "}, "data_size": {"value": "4809124"}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffd8e0", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "140737488346128"}}}, "extents_start_block_number": {"value": "0"}, "fork_descriptor": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"size": {"type_category": "unknown", "concrete_type": "uint64_t", "value": "0"}, "number_of_blocks": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, "extents": {"type_category": "array", "concrete_type": "ARRAY", "value": [{"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}]}, "number_of_blocks_in_extents": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 7, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfshfs_extents_record_read_data(\n libfshfs_fork_descriptor_t *fork_descriptor,\n uint16_t extents_start_block_number,\n const uint8_t *data,\n size_t data_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfshfs_extents_record_read_data\";\n\tsize_t data_offset = 0;\n\tuint32_t physical_extent_block_number = 0;\n\tuint16_t extent_block_number = 0;\n\tuint16_t extent_number_of_blocks = 0;\n\tint extent_index = 0;\n\n\tif( fork_descriptor == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid fork descriptor.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: extents records data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tif( data_size != 12 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported extents record data size: %\" PRIzd \"\\n\",\n\t\t function,\n\t\t data_size );\n\n\t\treturn( -1 );\n\t}\n\twhile( data_offset < 12 )\n\t{\n\t\tbyte_stream_copy_to_uint16_big_endian(\n\t\t &( data[ data_offset ] ),\n\t\t extent_block_number );\n\n\t\tdata_offset += 2;\n\n\t\tbyte_stream_copy_to_uint16_big_endian(\n\t\t &( data[ data_offset ] ),\n\t\t extent_number_of_blocks );\n\n\t\tdata_offset += 2;\n\n\t\tphysical_extent_block_number = extent_block_number;\n\n\t\tif( extent_number_of_blocks > 0 )\n\t\t{\n\t\t\tphysical_extent_block_number += extents_start_block_number;\n\t\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\t\tif( libcnotify_verbose != 0 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: extent: %d block number\\t\\t: %\" PRIu32 \" (%\" PRIu16 \")\\n\",\n\t\t\t function,\n\t\t\t extent_index,\n\t\t\t physical_extent_block_number,\n\t\t\t extent_block_number );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: extent: %d number of blocks\\t\\t: %\" PRIu16 \"\\n\",\n\t\t\t function,\n\t\t\t extent_index,\n\t\t\t extent_number_of_blocks );\n\t\t}\n#endif \n\n\t\tfork_descriptor->extents[ extent_index ][ 0 ] = physical_extent_block_number;\n\t\tfork_descriptor->extents[ extent_index ][ 1 ] = extent_number_of_blocks;\n\n\t\tfork_descriptor->number_of_blocks_in_extents += extent_number_of_blocks;\n\n\t\textent_index++;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif\n\treturn( 1 );\n}", "Selected Statement": "uint32_t physical_extent_block_number = 0;", "Function Input": {"data": {"value": "0x600 "}, "data_size": {"value": "4809124"}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffd8e0", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "140737488346128"}}}, "extents_start_block_number": {"value": "0"}, "fork_descriptor": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"size": {"type_category": "unknown", "concrete_type": "uint64_t", "value": "0"}, "number_of_blocks": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, "extents": {"type_category": "array", "concrete_type": "ARRAY", "value": [{"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}]}, "number_of_blocks_in_extents": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 8, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfshfs_extents_record_read_data(\n libfshfs_fork_descriptor_t *fork_descriptor,\n uint16_t extents_start_block_number,\n const uint8_t *data,\n size_t data_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfshfs_extents_record_read_data\";\n\tsize_t data_offset = 0;\n\tuint32_t physical_extent_block_number = 0;\n\tuint16_t extent_block_number = 0;\n\tuint16_t extent_number_of_blocks = 0;\n\tint extent_index = 0;\n\n\tif( fork_descriptor == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid fork descriptor.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: extents records data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tif( data_size != 12 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported extents record data size: %\" PRIzd \"\\n\",\n\t\t function,\n\t\t data_size );\n\n\t\treturn( -1 );\n\t}\n\twhile( data_offset < 12 )\n\t{\n\t\tbyte_stream_copy_to_uint16_big_endian(\n\t\t &( data[ data_offset ] ),\n\t\t extent_block_number );\n\n\t\tdata_offset += 2;\n\n\t\tbyte_stream_copy_to_uint16_big_endian(\n\t\t &( data[ data_offset ] ),\n\t\t extent_number_of_blocks );\n\n\t\tdata_offset += 2;\n\n\t\tphysical_extent_block_number = extent_block_number;\n\n\t\tif( extent_number_of_blocks > 0 )\n\t\t{\n\t\t\tphysical_extent_block_number += extents_start_block_number;\n\t\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\t\tif( libcnotify_verbose != 0 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: extent: %d block number\\t\\t: %\" PRIu32 \" (%\" PRIu16 \")\\n\",\n\t\t\t function,\n\t\t\t extent_index,\n\t\t\t physical_extent_block_number,\n\t\t\t extent_block_number );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: extent: %d number of blocks\\t\\t: %\" PRIu16 \"\\n\",\n\t\t\t function,\n\t\t\t extent_index,\n\t\t\t extent_number_of_blocks );\n\t\t}\n#endif \n\n\t\tfork_descriptor->extents[ extent_index ][ 0 ] = physical_extent_block_number;\n\t\tfork_descriptor->extents[ extent_index ][ 1 ] = extent_number_of_blocks;\n\n\t\tfork_descriptor->number_of_blocks_in_extents += extent_number_of_blocks;\n\n\t\textent_index++;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif\n\treturn( 1 );\n}", "Selected Statement": "uint16_t extent_block_number = 0;", "Function Input": {"data": {"value": "0x600 "}, "data_size": {"value": "4809124"}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffd8e0", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "140737488346128"}}}, "extents_start_block_number": {"value": "0"}, "fork_descriptor": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"size": {"type_category": "unknown", "concrete_type": "uint64_t", "value": "0"}, "number_of_blocks": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, "extents": {"type_category": "array", "concrete_type": "ARRAY", "value": [{"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}]}, "number_of_blocks_in_extents": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 9, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfshfs_extents_record_read_data(\n libfshfs_fork_descriptor_t *fork_descriptor,\n uint16_t extents_start_block_number,\n const uint8_t *data,\n size_t data_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfshfs_extents_record_read_data\";\n\tsize_t data_offset = 0;\n\tuint32_t physical_extent_block_number = 0;\n\tuint16_t extent_block_number = 0;\n\tuint16_t extent_number_of_blocks = 0;\n\tint extent_index = 0;\n\n\tif( fork_descriptor == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid fork descriptor.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: extents records data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tif( data_size != 12 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported extents record data size: %\" PRIzd \"\\n\",\n\t\t function,\n\t\t data_size );\n\n\t\treturn( -1 );\n\t}\n\twhile( data_offset < 12 )\n\t{\n\t\tbyte_stream_copy_to_uint16_big_endian(\n\t\t &( data[ data_offset ] ),\n\t\t extent_block_number );\n\n\t\tdata_offset += 2;\n\n\t\tbyte_stream_copy_to_uint16_big_endian(\n\t\t &( data[ data_offset ] ),\n\t\t extent_number_of_blocks );\n\n\t\tdata_offset += 2;\n\n\t\tphysical_extent_block_number = extent_block_number;\n\n\t\tif( extent_number_of_blocks > 0 )\n\t\t{\n\t\t\tphysical_extent_block_number += extents_start_block_number;\n\t\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\t\tif( libcnotify_verbose != 0 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: extent: %d block number\\t\\t: %\" PRIu32 \" (%\" PRIu16 \")\\n\",\n\t\t\t function,\n\t\t\t extent_index,\n\t\t\t physical_extent_block_number,\n\t\t\t extent_block_number );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: extent: %d number of blocks\\t\\t: %\" PRIu16 \"\\n\",\n\t\t\t function,\n\t\t\t extent_index,\n\t\t\t extent_number_of_blocks );\n\t\t}\n#endif \n\n\t\tfork_descriptor->extents[ extent_index ][ 0 ] = physical_extent_block_number;\n\t\tfork_descriptor->extents[ extent_index ][ 1 ] = extent_number_of_blocks;\n\n\t\tfork_descriptor->number_of_blocks_in_extents += extent_number_of_blocks;\n\n\t\textent_index++;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif\n\treturn( 1 );\n}", "Selected Statement": "uint16_t extent_number_of_blocks = 0;", "Function Input": {"data": {"value": "0x600 "}, "data_size": {"value": "4809124"}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffd8e0", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "140737488346128"}}}, "extents_start_block_number": {"value": "0"}, "fork_descriptor": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"size": {"type_category": "unknown", "concrete_type": "uint64_t", "value": "0"}, "number_of_blocks": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, "extents": {"type_category": "array", "concrete_type": "ARRAY", "value": [{"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}]}, "number_of_blocks_in_extents": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 10, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfshfs_extents_record_read_data(\n libfshfs_fork_descriptor_t *fork_descriptor,\n uint16_t extents_start_block_number,\n const uint8_t *data,\n size_t data_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfshfs_extents_record_read_data\";\n\tsize_t data_offset = 0;\n\tuint32_t physical_extent_block_number = 0;\n\tuint16_t extent_block_number = 0;\n\tuint16_t extent_number_of_blocks = 0;\n\tint extent_index = 0;\n\n\tif( fork_descriptor == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid fork descriptor.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: extents records data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tif( data_size != 12 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported extents record data size: %\" PRIzd \"\\n\",\n\t\t function,\n\t\t data_size );\n\n\t\treturn( -1 );\n\t}\n\twhile( data_offset < 12 )\n\t{\n\t\tbyte_stream_copy_to_uint16_big_endian(\n\t\t &( data[ data_offset ] ),\n\t\t extent_block_number );\n\n\t\tdata_offset += 2;\n\n\t\tbyte_stream_copy_to_uint16_big_endian(\n\t\t &( data[ data_offset ] ),\n\t\t extent_number_of_blocks );\n\n\t\tdata_offset += 2;\n\n\t\tphysical_extent_block_number = extent_block_number;\n\n\t\tif( extent_number_of_blocks > 0 )\n\t\t{\n\t\t\tphysical_extent_block_number += extents_start_block_number;\n\t\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\t\tif( libcnotify_verbose != 0 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: extent: %d block number\\t\\t: %\" PRIu32 \" (%\" PRIu16 \")\\n\",\n\t\t\t function,\n\t\t\t extent_index,\n\t\t\t physical_extent_block_number,\n\t\t\t extent_block_number );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: extent: %d number of blocks\\t\\t: %\" PRIu16 \"\\n\",\n\t\t\t function,\n\t\t\t extent_index,\n\t\t\t extent_number_of_blocks );\n\t\t}\n#endif \n\n\t\tfork_descriptor->extents[ extent_index ][ 0 ] = physical_extent_block_number;\n\t\tfork_descriptor->extents[ extent_index ][ 1 ] = extent_number_of_blocks;\n\n\t\tfork_descriptor->number_of_blocks_in_extents += extent_number_of_blocks;\n\n\t\textent_index++;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif\n\treturn( 1 );\n}", "Selected Statement": "fork_descriptor->extents[ extent_index ][ 0 ] = physical_extent_block_number;", "Function Input": {"data": {"value": "0x600 "}, "data_size": {"value": "4809124"}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffd8e0", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "140737488346128"}}}, "extents_start_block_number": {"value": "0"}, "fork_descriptor": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"size": {"type_category": "unknown", "concrete_type": "uint64_t", "value": "0"}, "number_of_blocks": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, "extents": {"type_category": "array", "concrete_type": "ARRAY", "value": [{"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}, {"type_category": "array", "concrete_type": "uint32_t", "value": [{"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}]}]}, "number_of_blocks_in_extents": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}}}}}, "Variable Values Before Statement": {"physical_extent_block_number": "1"}, "Value After Statement Execution": "1", "Block_Size": 108, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libcdata_array_initialize(\n libcdata_array_t **array,\n int number_of_entries,\n libcerror_error_t **error )\n{\n\tlibcdata_internal_array_t *internal_array = NULL;\n\tstatic char *function = \"libcdata_array_initialize\";\n\tsize_t entries_size = 0;\n\tint number_of_allocated_entries = 0;\n\n\tif( array == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid array.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *array != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid array value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( number_of_entries < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO,\n\t\t \"%s: invalid number of entries value less than zero.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_array = memory_allocate_structure(\n\t libcdata_internal_array_t );\n\n\tif( internal_array == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_array,\n\t 0,\n\t sizeof( libcdata_internal_array_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear array.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_array );\n\n\t\treturn( -1 );\n\t}\n\t\n\tif( number_of_entries >= (int) ( INT_MAX - 16 ) )\n\t{\n\t\tnumber_of_allocated_entries = INT_MAX;\n\t}\n\telse\n\t{\n\t\tnumber_of_allocated_entries = ( number_of_entries & ~( 15 ) ) + 16;\n\t}\n#if SIZEOF_INT <= SIZEOF_SIZE_T\n\tif( (size_t) number_of_allocated_entries > (size_t) ( SSIZE_MAX / sizeof( intptr_t * ) ) )\n#else\n\tif( number_of_allocated_entries > (int) ( SSIZE_MAX / sizeof( intptr_t * ) ) )\n#endif\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid number of allocated entries value exceeds maximum.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tentries_size = sizeof( intptr_t * ) * number_of_allocated_entries;\n\n\tif( entries_size > (size_t) LIBCDATA_ARRAY_ENTRIES_MEMORY_LIMIT )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid entries size value exceeds maximum.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_array->entries = (intptr_t **) memory_allocate(\n\t entries_size );\n\n\tif( internal_array->entries == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create array entries.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_array->entries,\n\t 0,\n\t entries_size ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear array entries.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_array->number_of_allocated_entries = number_of_allocated_entries;\n\tinternal_array->number_of_entries = number_of_entries;\n\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_array->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to initialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\t*array = (libcdata_array_t *) internal_array;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_array != NULL )\n\t{\n\t\tif( internal_array->entries != NULL )\n\t\t{\n\t\t\tmemory_free(\n\t\t\t internal_array->entries );\n\t\t}\n\t\tmemory_free(\n\t\t internal_array );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "static char *function = \"libcdata_array_initialize\";", "Function Input": {"array": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x200\n", "message": "Cannot access memory at address 0x200"}}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x7366780800000200\n", "message": "Cannot access memory at address 0x7366780800000200"}}, "number_of_entries": {"value": "116"}}, "Variable Values Before Statement": {"constant": "\"libcdata_array_initialize\""}, "Value After Statement Execution": "\"libcdata_array_initialize\"", "Block_Size": 5, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libcdata_array_initialize(\n libcdata_array_t **array,\n int number_of_entries,\n libcerror_error_t **error )\n{\n\tlibcdata_internal_array_t *internal_array = NULL;\n\tstatic char *function = \"libcdata_array_initialize\";\n\tsize_t entries_size = 0;\n\tint number_of_allocated_entries = 0;\n\n\tif( array == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid array.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *array != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid array value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( number_of_entries < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO,\n\t\t \"%s: invalid number of entries value less than zero.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_array = memory_allocate_structure(\n\t libcdata_internal_array_t );\n\n\tif( internal_array == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_array,\n\t 0,\n\t sizeof( libcdata_internal_array_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear array.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_array );\n\n\t\treturn( -1 );\n\t}\n\t\n\tif( number_of_entries >= (int) ( INT_MAX - 16 ) )\n\t{\n\t\tnumber_of_allocated_entries = INT_MAX;\n\t}\n\telse\n\t{\n\t\tnumber_of_allocated_entries = ( number_of_entries & ~( 15 ) ) + 16;\n\t}\n#if SIZEOF_INT <= SIZEOF_SIZE_T\n\tif( (size_t) number_of_allocated_entries > (size_t) ( SSIZE_MAX / sizeof( intptr_t * ) ) )\n#else\n\tif( number_of_allocated_entries > (int) ( SSIZE_MAX / sizeof( intptr_t * ) ) )\n#endif\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid number of allocated entries value exceeds maximum.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tentries_size = sizeof( intptr_t * ) * number_of_allocated_entries;\n\n\tif( entries_size > (size_t) LIBCDATA_ARRAY_ENTRIES_MEMORY_LIMIT )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid entries size value exceeds maximum.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_array->entries = (intptr_t **) memory_allocate(\n\t entries_size );\n\n\tif( internal_array->entries == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create array entries.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_array->entries,\n\t 0,\n\t entries_size ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear array entries.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_array->number_of_allocated_entries = number_of_allocated_entries;\n\tinternal_array->number_of_entries = number_of_entries;\n\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_array->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to initialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\t*array = (libcdata_array_t *) internal_array;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_array != NULL )\n\t{\n\t\tif( internal_array->entries != NULL )\n\t\t{\n\t\t\tmemory_free(\n\t\t\t internal_array->entries );\n\t\t}\n\t\tmemory_free(\n\t\t internal_array );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "size_t entries_size = 0;", "Function Input": {"array": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x200\n", "message": "Cannot access memory at address 0x200"}}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x7366780800000200\n", "message": "Cannot access memory at address 0x7366780800000200"}}, "number_of_entries": {"value": "116"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 6, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libcdata_array_initialize(\n libcdata_array_t **array,\n int number_of_entries,\n libcerror_error_t **error )\n{\n\tlibcdata_internal_array_t *internal_array = NULL;\n\tstatic char *function = \"libcdata_array_initialize\";\n\tsize_t entries_size = 0;\n\tint number_of_allocated_entries = 0;\n\n\tif( array == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid array.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *array != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid array value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( number_of_entries < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO,\n\t\t \"%s: invalid number of entries value less than zero.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_array = memory_allocate_structure(\n\t libcdata_internal_array_t );\n\n\tif( internal_array == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_array,\n\t 0,\n\t sizeof( libcdata_internal_array_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear array.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_array );\n\n\t\treturn( -1 );\n\t}\n\t\n\tif( number_of_entries >= (int) ( INT_MAX - 16 ) )\n\t{\n\t\tnumber_of_allocated_entries = INT_MAX;\n\t}\n\telse\n\t{\n\t\tnumber_of_allocated_entries = ( number_of_entries & ~( 15 ) ) + 16;\n\t}\n#if SIZEOF_INT <= SIZEOF_SIZE_T\n\tif( (size_t) number_of_allocated_entries > (size_t) ( SSIZE_MAX / sizeof( intptr_t * ) ) )\n#else\n\tif( number_of_allocated_entries > (int) ( SSIZE_MAX / sizeof( intptr_t * ) ) )\n#endif\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid number of allocated entries value exceeds maximum.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tentries_size = sizeof( intptr_t * ) * number_of_allocated_entries;\n\n\tif( entries_size > (size_t) LIBCDATA_ARRAY_ENTRIES_MEMORY_LIMIT )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid entries size value exceeds maximum.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_array->entries = (intptr_t **) memory_allocate(\n\t entries_size );\n\n\tif( internal_array->entries == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create array entries.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_array->entries,\n\t 0,\n\t entries_size ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear array entries.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_array->number_of_allocated_entries = number_of_allocated_entries;\n\tinternal_array->number_of_entries = number_of_entries;\n\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_array->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to initialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\t*array = (libcdata_array_t *) internal_array;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_array != NULL )\n\t{\n\t\tif( internal_array->entries != NULL )\n\t\t{\n\t\t\tmemory_free(\n\t\t\t internal_array->entries );\n\t\t}\n\t\tmemory_free(\n\t\t internal_array );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_array->number_of_allocated_entries = number_of_allocated_entries;", "Function Input": {"array": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x200\n", "message": "Cannot access memory at address 0x200"}}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x7366780800000200\n", "message": "Cannot access memory at address 0x7366780800000200"}}, "number_of_entries": {"value": "116"}}, "Variable Values Before Statement": {"number_of_allocated_entries": "int"}, "Value After Statement Execution": "int", "Block_Size": 139, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfwnt_bit_stream_initialize(\n libfwnt_bit_stream_t **bit_stream,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfwnt_bit_stream_initialize\";\n\n\tif( bit_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid bit stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *bit_stream != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid bit stream value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( byte_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid byte stream value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( byte_stream_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: byte stream size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*bit_stream = memory_allocate_structure(\n\t libfwnt_bit_stream_t );\n\n\tif( *bit_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create bit stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *bit_stream,\n\t 0,\n\t sizeof( libfwnt_bit_stream_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear bit stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *bit_stream )->byte_stream = byte_stream;\n\t( *bit_stream )->byte_stream_size = byte_stream_size;\n\n\treturn( 1 );\n\non_error:\n\tif( *bit_stream != NULL )\n\t{\n\t\tmemory_free(\n\t\t *bit_stream );\n\n\t\t*bit_stream = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *bit_stream )->byte_stream = byte_stream;", "Function Input": {"bit_stream": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "byte_stream": {"value": null}, "byte_stream_size": {"value": "140737488279872"}, "error": {"value": null}}, "Variable Values Before Statement": {"byte_stream": "\"\\377\\246\\365\""}, "Value After Statement Execution": "\"\\377\\246\\365\"", "Block_Size": 79, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfwnt_huffman_tree_initialize(\n libfwnt_huffman_tree_t **huffman_tree,\n int number_of_symbols,\n uint8_t maximum_code_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfwnt_huffman_tree_initialize\";\n\tsize_t array_size = 0;\n\n\tif( huffman_tree == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid Huffman tree.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *huffman_tree != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid Huffman tree value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( number_of_symbols < 0 )\n\t || ( number_of_symbols > 1024 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid number of symbols value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( maximum_code_size > 32 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid maximum code size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*huffman_tree = memory_allocate_structure(\n\t libfwnt_huffman_tree_t );\n\n\tif( *huffman_tree == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create Huffman tree.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *huffman_tree,\n\t 0,\n\t sizeof( libfwnt_huffman_tree_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear Huffman tree.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *huffman_tree );\n\n\t\t*huffman_tree = NULL;\n\n\t\treturn( -1 );\n\t}\n\tarray_size = sizeof( int ) * number_of_symbols;\n\n\t( *huffman_tree )->symbols = (int *) memory_allocate(\n\t array_size );\n\n\tif( ( *huffman_tree )->symbols == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create symbols.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t ( *huffman_tree )->symbols,\n\t 0,\n\t array_size ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear symbols.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tarray_size = sizeof( int ) * ( maximum_code_size + 1 );\n\n\t( *huffman_tree )->code_size_counts = (int *) memory_allocate(\n\t array_size );\n\n\tif( ( *huffman_tree )->code_size_counts == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create code size counts.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t ( *huffman_tree )->code_size_counts,\n\t 0,\n\t array_size ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear code size counts.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *huffman_tree )->maximum_code_size = maximum_code_size;\n\n\treturn( 1 );\n\non_error:\n\tif( *huffman_tree != NULL )\n\t{\n\t\tif( ( *huffman_tree )->code_size_counts != NULL )\n\t\t{\n\t\t\tmemory_free(\n\t\t\t ( *huffman_tree )->code_size_counts );\n\t\t}\n\t\tif( ( *huffman_tree )->symbols != NULL )\n\t\t{\n\t\t\tmemory_free(\n\t\t\t ( *huffman_tree )->symbols );\n\t\t}\n\t\tmemory_free(\n\t\t *huffman_tree );\n\n\t\t*huffman_tree = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "static char *function = \"libfwnt_huffman_tree_initialize\";", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffffffedaac", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x8000\n", "message": "Cannot access memory at address 0x8000"}}}, "huffman_tree": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0xf5a860", "value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"maximum_code_size": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "96 '`'"}, "symbols": {"type_category": "pointer", "concrete_type": "NULL"}, "code_size_counts": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x10bed10", "value": {"type_category": "int", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x20\n", "message": "Cannot access memory at address 0x20"}}}}}}, "maximum_code_size": {"value": "1 '\\001'"}, "number_of_symbols": {"value": "16777216"}}, "Variable Values Before Statement": {"constant": "\"libfwnt_huffman_tree_initialize\""}, "Value After Statement Execution": "\"libfwnt_huffman_tree_initialize\"", "Block_Size": 5, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_list_initialize(\n libfdata_list_t **list,\n intptr_t *data_handle,\n int (*free_data_handle)(\n intptr_t **data_handle,\n libcerror_error_t **error ),\n int (*clone_data_handle)(\n intptr_t **destination_data_handle,\n intptr_t *source_data_handle,\n libcerror_error_t **error ),\n int (*read_element_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n libfdata_list_element_t *list_element,\n libfdata_cache_t *cache,\n int element_data_file_index,\n off64_t element_data_offset,\n size64_t element_data_size,\n uint32_t element_data_flags,\n uint8_t read_flags,\n libcerror_error_t **error ),\n int (*write_element_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n libfdata_list_element_t *list_element,\n libfdata_cache_t *cache,\n int element_data_file_index,\n off64_t element_data_offset,\n size64_t element_data_size,\n uint32_t element_data_flags,\n uint8_t write_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfdata_internal_list_t *internal_list = NULL;\n\tstatic char *function = \"libfdata_list_initialize\";\n\n\tif( list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid list.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *list != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid list value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( flags & 0xfe ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported flags: 0x%02\" PRIx8 \".\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_list = memory_allocate_structure(\n\t libfdata_internal_list_t );\n\n\tif( internal_list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_list,\n\t 0,\n\t sizeof( libfdata_internal_list_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear list.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_list );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_list->elements_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create elements array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_list->mapped_ranges_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create mapped ranges array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_list->flags |= flags;\n\tinternal_list->data_handle = data_handle;\n\tinternal_list->free_data_handle = free_data_handle;\n\tinternal_list->clone_data_handle = clone_data_handle;\n\tinternal_list->read_element_data = read_element_data;\n\tinternal_list->write_element_data = write_element_data;\n\n\t*list = (libfdata_list_t *) internal_list;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_list != NULL )\n\t{\n\t\tif( internal_list->elements_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_list->elements_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_list );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_list->flags |= flags;", "Function Input": {"data_handle": {"value": null}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x4d7bac ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xf88348c8458b48\n", "message": "Cannot access memory at address 0xf88348c8458b48"}}}, "flags": {"value": "0 '\\000'"}, "list": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x12ea8a0", "value": {"type_category": "unknown", "concrete_type": "libfdata_list_t", "value": "0"}}}}, "Variable Values Before Statement": {"flags": "0 '\\000'"}, "Value After Statement Execution": "0 '\\000'", "Block_Size": 129, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_list_initialize(\n libfdata_list_t **list,\n intptr_t *data_handle,\n int (*free_data_handle)(\n intptr_t **data_handle,\n libcerror_error_t **error ),\n int (*clone_data_handle)(\n intptr_t **destination_data_handle,\n intptr_t *source_data_handle,\n libcerror_error_t **error ),\n int (*read_element_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n libfdata_list_element_t *list_element,\n libfdata_cache_t *cache,\n int element_data_file_index,\n off64_t element_data_offset,\n size64_t element_data_size,\n uint32_t element_data_flags,\n uint8_t read_flags,\n libcerror_error_t **error ),\n int (*write_element_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n libfdata_list_element_t *list_element,\n libfdata_cache_t *cache,\n int element_data_file_index,\n off64_t element_data_offset,\n size64_t element_data_size,\n uint32_t element_data_flags,\n uint8_t write_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfdata_internal_list_t *internal_list = NULL;\n\tstatic char *function = \"libfdata_list_initialize\";\n\n\tif( list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid list.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *list != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid list value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( flags & 0xfe ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported flags: 0x%02\" PRIx8 \".\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_list = memory_allocate_structure(\n\t libfdata_internal_list_t );\n\n\tif( internal_list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_list,\n\t 0,\n\t sizeof( libfdata_internal_list_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear list.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_list );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_list->elements_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create elements array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_list->mapped_ranges_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create mapped ranges array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_list->flags |= flags;\n\tinternal_list->data_handle = data_handle;\n\tinternal_list->free_data_handle = free_data_handle;\n\tinternal_list->clone_data_handle = clone_data_handle;\n\tinternal_list->read_element_data = read_element_data;\n\tinternal_list->write_element_data = write_element_data;\n\n\t*list = (libfdata_list_t *) internal_list;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_list != NULL )\n\t{\n\t\tif( internal_list->elements_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_list->elements_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_list );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_list->data_handle = data_handle;", "Function Input": {"data_handle": {"value": null}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x4d7bac ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xf88348c8458b48\n", "message": "Cannot access memory at address 0xf88348c8458b48"}}}, "flags": {"value": "0 '\\000'"}, "list": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x12ea8a0", "value": {"type_category": "unknown", "concrete_type": "libfdata_list_t", "value": "0"}}}}, "Variable Values Before Statement": {"data_handle": "0"}, "Value After Statement Execution": "0", "Block_Size": 130, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_list_initialize(\n libfdata_list_t **list,\n intptr_t *data_handle,\n int (*free_data_handle)(\n intptr_t **data_handle,\n libcerror_error_t **error ),\n int (*clone_data_handle)(\n intptr_t **destination_data_handle,\n intptr_t *source_data_handle,\n libcerror_error_t **error ),\n int (*read_element_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n libfdata_list_element_t *list_element,\n libfdata_cache_t *cache,\n int element_data_file_index,\n off64_t element_data_offset,\n size64_t element_data_size,\n uint32_t element_data_flags,\n uint8_t read_flags,\n libcerror_error_t **error ),\n int (*write_element_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n libfdata_list_element_t *list_element,\n libfdata_cache_t *cache,\n int element_data_file_index,\n off64_t element_data_offset,\n size64_t element_data_size,\n uint32_t element_data_flags,\n uint8_t write_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfdata_internal_list_t *internal_list = NULL;\n\tstatic char *function = \"libfdata_list_initialize\";\n\n\tif( list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid list.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *list != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid list value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( flags & 0xfe ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported flags: 0x%02\" PRIx8 \".\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_list = memory_allocate_structure(\n\t libfdata_internal_list_t );\n\n\tif( internal_list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_list,\n\t 0,\n\t sizeof( libfdata_internal_list_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear list.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_list );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_list->elements_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create elements array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_list->mapped_ranges_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create mapped ranges array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_list->flags |= flags;\n\tinternal_list->data_handle = data_handle;\n\tinternal_list->free_data_handle = free_data_handle;\n\tinternal_list->clone_data_handle = clone_data_handle;\n\tinternal_list->read_element_data = read_element_data;\n\tinternal_list->write_element_data = write_element_data;\n\n\t*list = (libfdata_list_t *) internal_list;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_list != NULL )\n\t{\n\t\tif( internal_list->elements_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_list->elements_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_list );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_list->free_data_handle = free_data_handle;", "Function Input": {"data_handle": {"value": null}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x4d7bac ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xf88348c8458b48\n", "message": "Cannot access memory at address 0xf88348c8458b48"}}}, "flags": {"value": "0 '\\000'"}, "list": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x12ea8a0", "value": {"type_category": "unknown", "concrete_type": "libfdata_list_t", "value": "0"}}}}, "Variable Values Before Statement": {"free_data_handle": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 131, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_list_initialize(\n libfdata_list_t **list,\n intptr_t *data_handle,\n int (*free_data_handle)(\n intptr_t **data_handle,\n libcerror_error_t **error ),\n int (*clone_data_handle)(\n intptr_t **destination_data_handle,\n intptr_t *source_data_handle,\n libcerror_error_t **error ),\n int (*read_element_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n libfdata_list_element_t *list_element,\n libfdata_cache_t *cache,\n int element_data_file_index,\n off64_t element_data_offset,\n size64_t element_data_size,\n uint32_t element_data_flags,\n uint8_t read_flags,\n libcerror_error_t **error ),\n int (*write_element_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n libfdata_list_element_t *list_element,\n libfdata_cache_t *cache,\n int element_data_file_index,\n off64_t element_data_offset,\n size64_t element_data_size,\n uint32_t element_data_flags,\n uint8_t write_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfdata_internal_list_t *internal_list = NULL;\n\tstatic char *function = \"libfdata_list_initialize\";\n\n\tif( list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid list.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *list != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid list value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( flags & 0xfe ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported flags: 0x%02\" PRIx8 \".\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_list = memory_allocate_structure(\n\t libfdata_internal_list_t );\n\n\tif( internal_list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_list,\n\t 0,\n\t sizeof( libfdata_internal_list_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear list.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_list );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_list->elements_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create elements array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_list->mapped_ranges_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create mapped ranges array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_list->flags |= flags;\n\tinternal_list->data_handle = data_handle;\n\tinternal_list->free_data_handle = free_data_handle;\n\tinternal_list->clone_data_handle = clone_data_handle;\n\tinternal_list->read_element_data = read_element_data;\n\tinternal_list->write_element_data = write_element_data;\n\n\t*list = (libfdata_list_t *) internal_list;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_list != NULL )\n\t{\n\t\tif( internal_list->elements_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_list->elements_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_list );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_list->clone_data_handle = clone_data_handle;", "Function Input": {"data_handle": {"value": null}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x4d7bac ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xf88348c8458b48\n", "message": "Cannot access memory at address 0xf88348c8458b48"}}}, "flags": {"value": "0 '\\000'"}, "list": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x12ea8a0", "value": {"type_category": "unknown", "concrete_type": "libfdata_list_t", "value": "0"}}}}, "Variable Values Before Statement": {"clone_data_handle": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 132, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_list_initialize(\n libfdata_list_t **list,\n intptr_t *data_handle,\n int (*free_data_handle)(\n intptr_t **data_handle,\n libcerror_error_t **error ),\n int (*clone_data_handle)(\n intptr_t **destination_data_handle,\n intptr_t *source_data_handle,\n libcerror_error_t **error ),\n int (*read_element_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n libfdata_list_element_t *list_element,\n libfdata_cache_t *cache,\n int element_data_file_index,\n off64_t element_data_offset,\n size64_t element_data_size,\n uint32_t element_data_flags,\n uint8_t read_flags,\n libcerror_error_t **error ),\n int (*write_element_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n libfdata_list_element_t *list_element,\n libfdata_cache_t *cache,\n int element_data_file_index,\n off64_t element_data_offset,\n size64_t element_data_size,\n uint32_t element_data_flags,\n uint8_t write_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfdata_internal_list_t *internal_list = NULL;\n\tstatic char *function = \"libfdata_list_initialize\";\n\n\tif( list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid list.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *list != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid list value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( flags & 0xfe ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported flags: 0x%02\" PRIx8 \".\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_list = memory_allocate_structure(\n\t libfdata_internal_list_t );\n\n\tif( internal_list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_list,\n\t 0,\n\t sizeof( libfdata_internal_list_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear list.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_list );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_list->elements_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create elements array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_list->mapped_ranges_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create mapped ranges array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_list->flags |= flags;\n\tinternal_list->data_handle = data_handle;\n\tinternal_list->free_data_handle = free_data_handle;\n\tinternal_list->clone_data_handle = clone_data_handle;\n\tinternal_list->read_element_data = read_element_data;\n\tinternal_list->write_element_data = write_element_data;\n\n\t*list = (libfdata_list_t *) internal_list;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_list != NULL )\n\t{\n\t\tif( internal_list->elements_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_list->elements_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_list );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_list->read_element_data = read_element_data;", "Function Input": {"data_handle": {"value": null}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x4d7bac ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xf88348c8458b48\n", "message": "Cannot access memory at address 0xf88348c8458b48"}}}, "flags": {"value": "0 '\\000'"}, "list": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x12ea8a0", "value": {"type_category": "unknown", "concrete_type": "libfdata_list_t", "value": "0"}}}}, "Variable Values Before Statement": {"read_element_data": "{int (intptr_t *, intptr_t *, libfdata_list_element_t *, libfdata_cache_t *, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)} 0x4e1640 "}, "Value After Statement Execution": "{int (intptr_t *, intptr_t *, libfdata_list_element_t *, libfdata_cache_t *, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)} 0x4e1640 ", "Block_Size": 133, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "static char *function = \"libesedb_checksum_calculate_little_endian_xor32\";", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"constant": "\"libesedb_checksum_calculate_little_endian_xor32\""}, "Value After Statement Execution": "\"libesedb_checksum_calculate_little_endian_xor32\"", "Block_Size": 8, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "libesedb_aligned_t value_aligned = 0;", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 9, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "uint32_t big_endian_value_32bit = 0;", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 10, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "uint32_t safe_checksum_value = 0;", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 11, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "uint32_t value_32bit = 0;", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 12, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "uint8_t alignment_count = 0;", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 13, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "uint8_t alignment_size = 0;", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 14, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "uint8_t byte_count = 0;", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 15, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "uint8_t byte_order = 0;", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 16, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "value_32bit = 0;", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 74, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "buffer_iterator += byte_count;", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"byte_count": "4 '\\004'"}, "Value After Statement Execution": "4 '\\004'", "Block_Size": 100, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "byte_count = ( alignment_size % 4 ) * 8;", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"alignment_size": "4 '\\004'"}, "Value After Statement Execution": "0 '\\000'", "Block_Size": 131, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "value_32bit = 0;", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 221, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libesedb_checksum_calculate_little_endian_xor32(\n uint32_t *checksum_value,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tlibesedb_aligned_t *aligned_buffer_iterator = NULL;\n\tuint8_t *buffer_iterator = NULL;\n\tstatic char *function = \"libesedb_checksum_calculate_little_endian_xor32\";\n\tlibesedb_aligned_t value_aligned = 0;\n\tuint32_t big_endian_value_32bit = 0;\n\tuint32_t safe_checksum_value = 0;\n\tuint32_t value_32bit = 0;\n\tuint8_t alignment_count = 0;\n\tuint8_t alignment_size = 0;\n\tuint8_t byte_count = 0;\n\tuint8_t byte_order = 0;\n\tuint8_t byte_size = 0;\n\n\tif( checksum_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_checksum_value = initial_value;\n\n\tbuffer_iterator = (uint8_t *) buffer;\n\n\t\n\tif( ( ( sizeof( libesedb_aligned_t ) % 4 ) == 0 )\n\t && ( size > ( 2 * sizeof( libesedb_aligned_t ) ) ) )\n\t{\n\t\t\n\t\talignment_size = (uint8_t) ( (intptr_t) buffer_iterator % sizeof( libesedb_aligned_t ) );\n\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_size = sizeof( libesedb_aligned_t ) - alignment_size;\n\n\t\t\t\n\t\t\twhile( byte_size != 0 )\n\t\t\t{\n\t\t\t\tvalue_32bit = 0;\n\t\t\t\tbyte_count = 1;\n\n\t\t\t\tif( byte_size >= 4 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 3 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tif( byte_size >= 2 )\n\t\t\t\t{\n\t\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t\t\tvalue_32bit <<= 8;\n\n\t\t\t\t\tbyte_count++;\n\t\t\t\t}\n\t\t\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\t\t\tbuffer_iterator += byte_count;\n\t\t\t\tbyte_size -= byte_count;\n\n\t\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t\t}\n\t\t\tsize -= byte_count;\n\t\t}\n\t\taligned_buffer_iterator = (libesedb_aligned_t *) buffer_iterator;\n\n\t\tif( *buffer_iterator != (uint8_t) ( *aligned_buffer_iterator & 0xff ) )\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_BIG;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte_order = _BYTE_STREAM_ENDIAN_LITTLE;\n\t\t}\n\t\t\n\t\twhile( size > sizeof( libesedb_aligned_t ) )\n\t\t{\n\t\t\tvalue_aligned ^= *aligned_buffer_iterator;\n\n\t\t\taligned_buffer_iterator++;\n\n\t\t\tsize -= sizeof( libesedb_aligned_t );\n\t\t}\n\t\t\n\t\tif( alignment_size > 0 )\n\t\t{\n\t\t\tbyte_count = ( alignment_size % 4 ) * 8;\n\t\t\talignment_count = ( sizeof( libesedb_aligned_t ) - alignment_size ) * 8;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> alignment_count ) << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned <<= alignment_count;\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) ( value_aligned << byte_count );\n\n\t\t\t\t\n\t\t\t\tvalue_aligned >>= alignment_count;\n\t\t\t}\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbyte_size = (uint8_t) sizeof( libesedb_aligned_t );\n\n\t\twhile( byte_size != 0 )\n\t\t{\n\t\t\tbyte_count = ( ( byte_size / 4 ) - 1 ) * 32;\n\n\t\t\tif( byte_order == _BYTE_STREAM_ENDIAN_BIG )\n\t\t\t{\n\t\t\t\tbig_endian_value_32bit = (uint32_t) ( ( value_aligned >> byte_count ) & 0xffffffffUL );\n\n\t\t\t\t\n\t\t\t\tvalue_32bit = ( ( big_endian_value_32bit & 0x000000ffUL ) << 24 )\n\t\t\t\t | ( ( big_endian_value_32bit & 0x0000ff00UL ) << 8 )\n\t\t\t\t | ( ( big_endian_value_32bit >> 8 ) & 0x0000ff00UL )\n\t\t\t\t | ( ( big_endian_value_32bit >> 24 ) & 0x000000ffUL );\n\t\t\t}\n\t\t\telse if( byte_order == _BYTE_STREAM_ENDIAN_LITTLE )\n\t\t\t{\n\t\t\t\tvalue_32bit = (uint32_t) value_aligned;\n\n\t\t\t\tvalue_aligned >>= byte_count;\n\t\t\t}\n\t\t\tbyte_size -= 4;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t\t\n\t\tbuffer_iterator = (uint8_t *) aligned_buffer_iterator;\n\n\t\tbyte_size = 4 - ( alignment_size % 4 );\n\n\t\tif( byte_size != 4 )\n\t\t{\n\t\t\tvalue_32bit = buffer_iterator[ 0 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 2 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tif( byte_size >= 3 )\n\t\t\t{\n\t\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\t}\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbuffer_iterator += byte_size;\n\t\t\tsize -= byte_size;\n\n\t\t\tsafe_checksum_value ^= value_32bit;\n\t\t}\n\t}\n\twhile( size > 0 )\n\t{\n\t\tvalue_32bit = 0;\n\t\tbyte_count = 1;\n\n\t\tif( size >= 4 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 3 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 3 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 2 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tif( size >= 2 )\n\t\t{\n\t\t\tvalue_32bit |= buffer_iterator[ 1 ];\n\t\t\tvalue_32bit <<= 8;\n\n\t\t\tbyte_count++;\n\t\t}\n\t\tvalue_32bit |= buffer_iterator[ 0 ];\n\n\t\tbuffer_iterator += byte_count;\n\t\tsize -= byte_count;\n\n\t\tsafe_checksum_value ^= value_32bit;\n\t}\n\t*checksum_value = safe_checksum_value;\n\n\treturn( 1 );\n}", "Selected Statement": "buffer_iterator += byte_count;", "Function Input": {"buffer": {"value": "0x117ca50 \"\""}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x29c\n", "message": "Cannot access memory at address 0x29c"}}, "initial_value": {"value": "0"}, "size": {"value": "672"}}, "Variable Values Before Statement": {"byte_count": "4 '\\004'"}, "Value After Statement Execution": "4 '\\004'", "Block_Size": 247, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libbfio_pool_initialize(\n libbfio_pool_t **pool,\n int number_of_handles,\n int maximum_number_of_open_handles,\n libcerror_error_t **error )\n{\n\tlibbfio_internal_pool_t *internal_pool = NULL;\n\tstatic char *function = \"libbfio_pool_initialize\";\n\n\tif( pool == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid pool.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *pool != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid pool value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( number_of_handles < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO,\n\t\t \"%s: invalid number of handles value less than zero.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( maximum_number_of_open_handles < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO,\n\t\t \"%s: invalid maximum number of open handles value less than zero.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_pool = memory_allocate_structure(\n\t libbfio_internal_pool_t );\n\n\tif( internal_pool == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create pool.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_pool,\n\t 0,\n\t sizeof( libbfio_internal_pool_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear pool.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_pool );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_pool->handles_array ),\n\t number_of_handles,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create handles array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_list_initialize(\n\t &( internal_pool->last_used_list ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create last used list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_pool->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to initialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_pool->maximum_number_of_open_handles = maximum_number_of_open_handles;\n\tinternal_pool->current_entry = -1;\n\n\t*pool = (libbfio_pool_t *) internal_pool;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_pool != NULL )\n\t{\n\t\tif( internal_pool->last_used_list != NULL )\n\t\t{\n\t\t\tlibcdata_list_free(\n\t\t\t &( internal_pool->last_used_list ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tif( internal_pool->handles_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_pool->handles_array ),\n\t\t\t (int (*)(intptr_t **, libcerror_error_t **)) &libbfio_handle_free,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_pool );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_pool->maximum_number_of_open_handles = maximum_number_of_open_handles;", "Function Input": {"error": {"value": null}, "maximum_number_of_open_handles": {"value": "20312240"}, "number_of_handles": {"value": "0"}, "pool": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x135f1d0", "value": {"type_category": "unknown", "concrete_type": "libbfio_pool_t", "value": "20312240"}}}}, "Variable Values Before Statement": {"maximum_number_of_open_handles": "int"}, "Value After Statement Execution": "int", "Block_Size": 125, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvde_checksum_calculate_weak_crc32(\n uint32_t *checksum,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfvde_checkcum_calculate_weak_crc32\";\n\tsize_t buffer_offset = 0;\n\tuint32_t table_index = 0;\n\n\tif( checksum == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n if( libfvde_checksum_crc32_table_computed == 0 )\n\t{\n\t\tlibfvde_checksum_initialize_crc32_table(\n\t\t 0x82f63b78UL );\n\t}\n\t*checksum = initial_value;\n\n for( buffer_offset = 0;\n\t buffer_offset < size;\n\t buffer_offset++ )\n\t{\n\t\ttable_index = ( *checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL;\n\n\t\t*checksum = libfvde_checksum_crc32_table[ table_index ] ^ ( *checksum >> 8 );\n }\n\treturn( 1 );\n}", "Selected Statement": "static char *function = \"libfvde_checkcum_calculate_weak_crc32\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"libfvde_checkcum_calculate_weak_crc32\""}, "Value After Statement Execution": "\"libfvde_checkcum_calculate_weak_crc32\"", "Block_Size": 6, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvde_checksum_calculate_weak_crc32(\n uint32_t *checksum,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfvde_checkcum_calculate_weak_crc32\";\n\tsize_t buffer_offset = 0;\n\tuint32_t table_index = 0;\n\n\tif( checksum == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n if( libfvde_checksum_crc32_table_computed == 0 )\n\t{\n\t\tlibfvde_checksum_initialize_crc32_table(\n\t\t 0x82f63b78UL );\n\t}\n\t*checksum = initial_value;\n\n for( buffer_offset = 0;\n\t buffer_offset < size;\n\t buffer_offset++ )\n\t{\n\t\ttable_index = ( *checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL;\n\n\t\t*checksum = libfvde_checksum_crc32_table[ table_index ] ^ ( *checksum >> 8 );\n }\n\treturn( 1 );\n}", "Selected Statement": "size_t buffer_offset = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 7, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvde_checksum_calculate_weak_crc32(\n uint32_t *checksum,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfvde_checkcum_calculate_weak_crc32\";\n\tsize_t buffer_offset = 0;\n\tuint32_t table_index = 0;\n\n\tif( checksum == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n if( libfvde_checksum_crc32_table_computed == 0 )\n\t{\n\t\tlibfvde_checksum_initialize_crc32_table(\n\t\t 0x82f63b78UL );\n\t}\n\t*checksum = initial_value;\n\n for( buffer_offset = 0;\n\t buffer_offset < size;\n\t buffer_offset++ )\n\t{\n\t\ttable_index = ( *checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL;\n\n\t\t*checksum = libfvde_checksum_crc32_table[ table_index ] ^ ( *checksum >> 8 );\n }\n\treturn( 1 );\n}", "Selected Statement": "for( buffer_offset = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 50, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfplist_xml_tag_free(\n libfplist_xml_tag_t **tag,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfplist_xml_tag_free\";\n\tint result = 1;\n\n\tif( tag == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid XML plist tag.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *tag != NULL )\n\t{\n\t\t\n\n\t\tif( libcdata_array_free(\n\t\t &( ( *tag )->elements_array ),\n\t\t (int (*)(intptr_t **, libcerror_error_t **)) &libfplist_xml_tag_free,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free elements array.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tif( libcdata_array_free(\n\t\t &( ( *tag )->attributes_array ),\n\t\t (int (*)(intptr_t **, libcerror_error_t **)) &libfplist_xml_attribute_free,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free attributes array.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tif( ( *tag )->value != NULL )\n\t\t{\n\t\t\tmemory_free(\n\t\t\t ( *tag )->value );\n\t\t}\n\t\tif( ( *tag )->name != NULL )\n\t\t{\n\t\t\tmemory_free(\n\t\t\t ( *tag )->name );\n\t\t}\n\t\tmemory_free(\n\t\t *tag );\n\n\t\t*tag = NULL;\n\t}\n\treturn( result );\n}", "Selected Statement": "static char *function = \"libfplist_xml_tag_free\";", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "tag": {"value": null}}, "Variable Values Before Statement": {"constant": "\"libfplist_xml_tag_free\""}, "Value After Statement Execution": "\"libfplist_xml_tag_free\"", "Block_Size": 3, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfplist_xml_parser_parse_buffer(\n libfplist_property_list_t *property_list,\n uint8_t *buffer,\n size_t buffer_size,\n libcerror_error_t **error )\n{\n\tlibfplist_xml_parser_state_t parser_state;\n\t\n\tYY_BUFFER_STATE buffer_state = NULL;\n\tstatic char *function = \"libfplist_xml_parser_parse_buffer\";\n\tint result = -1;\n\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tbuffer_state = libfplist_xml_scanner__scan_buffer(\n\t (char *) buffer,\n\t buffer_size );\n\n\tlibfplist_xml_scanner_buffer_offset = 0;\n\n\tif( buffer_state != NULL )\n\t{\n\t\tparser_state.property_list = property_list;\n\t\tparser_state.error = error;\n\t\tparser_state.root_tag = NULL;\n\t\tparser_state.current_tag = NULL;\n\t\tparser_state.parent_tag = NULL;\n\n\t\tif( libfplist_xml_scanner_parse(\n\t\t &parser_state ) == 0 )\n\t\t{\n\t\t\tif( libfplist_property_list_set_root_tag(\n\t\t\t property_list,\n\t\t\t parser_state.root_tag,\n\t\t\t error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t\t \"%s: unable to set root tag.\",\n\t\t\t\t function );\n\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tparser_state.root_tag = NULL;\n\n\t\t\t\tresult = 1;\n\t\t\t}\n\t\t}\n\t\tlibfplist_xml_scanner__delete_buffer(\n\t\t buffer_state );\n\t}\n\tlibfplist_xml_scanner_lex_destroy();\n\n\tif( parser_state.root_tag != NULL )\n\t{\n\t\tlibfplist_xml_tag_free(\n\t\t &( parser_state.root_tag ),\n\t\t NULL );\n\t}\n\treturn( result );\n}", "Selected Statement": "static char *function = \"libfplist_xml_parser_parse_buffer\";", "Function Input": {"buffer": {"value": "0x11f6eb0 \"\\340\\v\\342\\367\\377\\177\""}, "buffer_size": {"value": "4096"}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1000\n", "message": "Cannot access memory at address 0x1000"}}, "property_list": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x2\n", "message": "Cannot access memory at address 0x2"}}}, "Variable Values Before Statement": {"constant": "\"libfplist_xml_parser_parse_buffer\""}, "Value After Statement Execution": "\"libfplist_xml_parser_parse_buffer\"", "Block_Size": 8, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfplist_xml_parser_parse_buffer(\n libfplist_property_list_t *property_list,\n uint8_t *buffer,\n size_t buffer_size,\n libcerror_error_t **error )\n{\n\tlibfplist_xml_parser_state_t parser_state;\n\t\n\tYY_BUFFER_STATE buffer_state = NULL;\n\tstatic char *function = \"libfplist_xml_parser_parse_buffer\";\n\tint result = -1;\n\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tbuffer_state = libfplist_xml_scanner__scan_buffer(\n\t (char *) buffer,\n\t buffer_size );\n\n\tlibfplist_xml_scanner_buffer_offset = 0;\n\n\tif( buffer_state != NULL )\n\t{\n\t\tparser_state.property_list = property_list;\n\t\tparser_state.error = error;\n\t\tparser_state.root_tag = NULL;\n\t\tparser_state.current_tag = NULL;\n\t\tparser_state.parent_tag = NULL;\n\n\t\tif( libfplist_xml_scanner_parse(\n\t\t &parser_state ) == 0 )\n\t\t{\n\t\t\tif( libfplist_property_list_set_root_tag(\n\t\t\t property_list,\n\t\t\t parser_state.root_tag,\n\t\t\t error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t\t \"%s: unable to set root tag.\",\n\t\t\t\t function );\n\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tparser_state.root_tag = NULL;\n\n\t\t\t\tresult = 1;\n\t\t\t}\n\t\t}\n\t\tlibfplist_xml_scanner__delete_buffer(\n\t\t buffer_state );\n\t}\n\tlibfplist_xml_scanner_lex_destroy();\n\n\tif( parser_state.root_tag != NULL )\n\t{\n\t\tlibfplist_xml_tag_free(\n\t\t &( parser_state.root_tag ),\n\t\t NULL );\n\t}\n\treturn( result );\n}", "Selected Statement": "parser_state.property_list = property_list;", "Function Input": {"buffer": {"value": "0x11f6eb0 \"\\340\\v\\342\\367\\377\\177\""}, "buffer_size": {"value": "4096"}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1000\n", "message": "Cannot access memory at address 0x1000"}}, "property_list": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x2\n", "message": "Cannot access memory at address 0x2"}}}, "Variable Values Before Statement": {"property_list": "0"}, "Value After Statement Execution": "0", "Block_Size": 30, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfplist_xml_parser_parse_buffer(\n libfplist_property_list_t *property_list,\n uint8_t *buffer,\n size_t buffer_size,\n libcerror_error_t **error )\n{\n\tlibfplist_xml_parser_state_t parser_state;\n\t\n\tYY_BUFFER_STATE buffer_state = NULL;\n\tstatic char *function = \"libfplist_xml_parser_parse_buffer\";\n\tint result = -1;\n\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tbuffer_state = libfplist_xml_scanner__scan_buffer(\n\t (char *) buffer,\n\t buffer_size );\n\n\tlibfplist_xml_scanner_buffer_offset = 0;\n\n\tif( buffer_state != NULL )\n\t{\n\t\tparser_state.property_list = property_list;\n\t\tparser_state.error = error;\n\t\tparser_state.root_tag = NULL;\n\t\tparser_state.current_tag = NULL;\n\t\tparser_state.parent_tag = NULL;\n\n\t\tif( libfplist_xml_scanner_parse(\n\t\t &parser_state ) == 0 )\n\t\t{\n\t\t\tif( libfplist_property_list_set_root_tag(\n\t\t\t property_list,\n\t\t\t parser_state.root_tag,\n\t\t\t error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t\t \"%s: unable to set root tag.\",\n\t\t\t\t function );\n\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tparser_state.root_tag = NULL;\n\n\t\t\t\tresult = 1;\n\t\t\t}\n\t\t}\n\t\tlibfplist_xml_scanner__delete_buffer(\n\t\t buffer_state );\n\t}\n\tlibfplist_xml_scanner_lex_destroy();\n\n\tif( parser_state.root_tag != NULL )\n\t{\n\t\tlibfplist_xml_tag_free(\n\t\t &( parser_state.root_tag ),\n\t\t NULL );\n\t}\n\treturn( result );\n}", "Selected Statement": "parser_state.error = error;", "Function Input": {"buffer": {"value": "0x11f6eb0 \"\\340\\v\\342\\367\\377\\177\""}, "buffer_size": {"value": "4096"}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1000\n", "message": "Cannot access memory at address 0x1000"}}, "property_list": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x2\n", "message": "Cannot access memory at address 0x2"}}}, "Variable Values Before Statement": {"error": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 31, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_handle_initialize(\n libewf_handle_t **handle,\n libcerror_error_t **error )\n{\n\tlibewf_internal_handle_t *internal_handle = NULL;\n\tstatic char *function = \"libewf_handle_initialize\";\n\n\tif( handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_handle = memory_allocate_structure(\n\t libewf_internal_handle_t );\n\n\tif( internal_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_handle,\n\t 0,\n\t sizeof( libewf_internal_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear handle.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_handle );\n\n\t\treturn( -1 );\n\t}\n\tif( libewf_io_handle_initialize(\n\t &( internal_handle->io_handle ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libewf_media_values_initialize(\n\t &( internal_handle->media_values ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create media values.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_handle->sessions ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create sessions array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_handle->tracks ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create tracks array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_range_list_initialize(\n\t &( internal_handle->acquiry_errors ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create acquiry errors range list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libewf_segment_table_initialize(\n\t &( internal_handle->segment_table ),\n\t internal_handle->io_handle,\n\t LIBEWF_DEFAULT_SEGMENT_FILE_SIZE,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create segment table.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_LIBEWF_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_initialize(\n\t &( internal_handle->read_write_lock ),\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to initialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_handle->date_format = LIBEWF_DATE_FORMAT_CTIME;\n\tinternal_handle->maximum_number_of_open_handles = LIBBFIO_POOL_UNLIMITED_NUMBER_OF_OPEN_HANDLES;\n\n\t*handle = (libewf_handle_t *) internal_handle;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_handle != NULL )\n\t{\n\t\tif( internal_handle->acquiry_errors != NULL )\n\t\t{\n\t\t\tlibcdata_range_list_free(\n\t\t\t &( internal_handle->acquiry_errors ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tif( internal_handle->tracks != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_handle->tracks ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tif( internal_handle->sessions != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_handle->sessions ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tif( internal_handle->media_values != NULL )\n\t\t{\n\t\t\tlibewf_media_values_free(\n\t\t\t &( internal_handle->media_values ),\n\t\t\t NULL );\n\t\t}\n\t\tif( internal_handle->io_handle != NULL )\n\t\t{\n\t\t\tlibewf_io_handle_free(\n\t\t\t &( internal_handle->io_handle ),\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_handle );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_handle->date_format = LIBEWF_DATE_FORMAT_CTIME;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "NULL"}}, "handle": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x124a0b0", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1\n", "message": "Cannot access memory at address 0x1"}}}}, "Variable Values Before Statement": {"LIBEWF_DATE_FORMAT_CTIME": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 156, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_io_handle_initialize(\n libewf_io_handle_t **io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_io_handle_initialize\";\n\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *io_handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid IO handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*io_handle = memory_allocate_structure(\n\t libewf_io_handle_t );\n\n\tif( *io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *io_handle,\n\t 0,\n\t sizeof( libewf_io_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *io_handle )->segment_file_type = LIBEWF_SEGMENT_FILE_TYPE_UNDEFINED;\n\t( *io_handle )->format = LIBEWF_FORMAT_ENCASE6;\n\t( *io_handle )->major_version = 1;\n\t( *io_handle )->minor_version = 0;\n\t( *io_handle )->compression_method = LIBEWF_COMPRESSION_METHOD_DEFLATE;\n\t( *io_handle )->compression_level = LIBEWF_COMPRESSION_LEVEL_NONE;\n\t( *io_handle )->zero_on_error = 1;\n\t( *io_handle )->header_codepage = LIBEWF_CODEPAGE_ASCII;\n\n\treturn( 1 );\n\non_error:\n\tif( *io_handle != NULL )\n\t{\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *io_handle )->segment_file_type = LIBEWF_SEGMENT_FILE_TYPE_UNDEFINED;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"LIBEWF_SEGMENT_FILE_TYPE_UNDEFINED": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 55, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_io_handle_initialize(\n libewf_io_handle_t **io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_io_handle_initialize\";\n\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *io_handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid IO handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*io_handle = memory_allocate_structure(\n\t libewf_io_handle_t );\n\n\tif( *io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *io_handle,\n\t 0,\n\t sizeof( libewf_io_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *io_handle )->segment_file_type = LIBEWF_SEGMENT_FILE_TYPE_UNDEFINED;\n\t( *io_handle )->format = LIBEWF_FORMAT_ENCASE6;\n\t( *io_handle )->major_version = 1;\n\t( *io_handle )->minor_version = 0;\n\t( *io_handle )->compression_method = LIBEWF_COMPRESSION_METHOD_DEFLATE;\n\t( *io_handle )->compression_level = LIBEWF_COMPRESSION_LEVEL_NONE;\n\t( *io_handle )->zero_on_error = 1;\n\t( *io_handle )->header_codepage = LIBEWF_CODEPAGE_ASCII;\n\n\treturn( 1 );\n\non_error:\n\tif( *io_handle != NULL )\n\t{\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *io_handle )->format = LIBEWF_FORMAT_ENCASE6;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"LIBEWF_FORMAT_ENCASE6": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 56, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_io_handle_initialize(\n libewf_io_handle_t **io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_io_handle_initialize\";\n\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *io_handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid IO handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*io_handle = memory_allocate_structure(\n\t libewf_io_handle_t );\n\n\tif( *io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *io_handle,\n\t 0,\n\t sizeof( libewf_io_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *io_handle )->segment_file_type = LIBEWF_SEGMENT_FILE_TYPE_UNDEFINED;\n\t( *io_handle )->format = LIBEWF_FORMAT_ENCASE6;\n\t( *io_handle )->major_version = 1;\n\t( *io_handle )->minor_version = 0;\n\t( *io_handle )->compression_method = LIBEWF_COMPRESSION_METHOD_DEFLATE;\n\t( *io_handle )->compression_level = LIBEWF_COMPRESSION_LEVEL_NONE;\n\t( *io_handle )->zero_on_error = 1;\n\t( *io_handle )->header_codepage = LIBEWF_CODEPAGE_ASCII;\n\n\treturn( 1 );\n\non_error:\n\tif( *io_handle != NULL )\n\t{\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *io_handle )->major_version = 1;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 57, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_io_handle_initialize(\n libewf_io_handle_t **io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_io_handle_initialize\";\n\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *io_handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid IO handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*io_handle = memory_allocate_structure(\n\t libewf_io_handle_t );\n\n\tif( *io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *io_handle,\n\t 0,\n\t sizeof( libewf_io_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *io_handle )->segment_file_type = LIBEWF_SEGMENT_FILE_TYPE_UNDEFINED;\n\t( *io_handle )->format = LIBEWF_FORMAT_ENCASE6;\n\t( *io_handle )->major_version = 1;\n\t( *io_handle )->minor_version = 0;\n\t( *io_handle )->compression_method = LIBEWF_COMPRESSION_METHOD_DEFLATE;\n\t( *io_handle )->compression_level = LIBEWF_COMPRESSION_LEVEL_NONE;\n\t( *io_handle )->zero_on_error = 1;\n\t( *io_handle )->header_codepage = LIBEWF_CODEPAGE_ASCII;\n\n\treturn( 1 );\n\non_error:\n\tif( *io_handle != NULL )\n\t{\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *io_handle )->minor_version = 0;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 58, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_io_handle_initialize(\n libewf_io_handle_t **io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_io_handle_initialize\";\n\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *io_handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid IO handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*io_handle = memory_allocate_structure(\n\t libewf_io_handle_t );\n\n\tif( *io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *io_handle,\n\t 0,\n\t sizeof( libewf_io_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *io_handle )->segment_file_type = LIBEWF_SEGMENT_FILE_TYPE_UNDEFINED;\n\t( *io_handle )->format = LIBEWF_FORMAT_ENCASE6;\n\t( *io_handle )->major_version = 1;\n\t( *io_handle )->minor_version = 0;\n\t( *io_handle )->compression_method = LIBEWF_COMPRESSION_METHOD_DEFLATE;\n\t( *io_handle )->compression_level = LIBEWF_COMPRESSION_LEVEL_NONE;\n\t( *io_handle )->zero_on_error = 1;\n\t( *io_handle )->header_codepage = LIBEWF_CODEPAGE_ASCII;\n\n\treturn( 1 );\n\non_error:\n\tif( *io_handle != NULL )\n\t{\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *io_handle )->compression_method = LIBEWF_COMPRESSION_METHOD_DEFLATE;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"LIBEWF_COMPRESSION_METHOD_DEFLATE": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 59, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_io_handle_initialize(\n libewf_io_handle_t **io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_io_handle_initialize\";\n\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *io_handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid IO handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*io_handle = memory_allocate_structure(\n\t libewf_io_handle_t );\n\n\tif( *io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *io_handle,\n\t 0,\n\t sizeof( libewf_io_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *io_handle )->segment_file_type = LIBEWF_SEGMENT_FILE_TYPE_UNDEFINED;\n\t( *io_handle )->format = LIBEWF_FORMAT_ENCASE6;\n\t( *io_handle )->major_version = 1;\n\t( *io_handle )->minor_version = 0;\n\t( *io_handle )->compression_method = LIBEWF_COMPRESSION_METHOD_DEFLATE;\n\t( *io_handle )->compression_level = LIBEWF_COMPRESSION_LEVEL_NONE;\n\t( *io_handle )->zero_on_error = 1;\n\t( *io_handle )->header_codepage = LIBEWF_CODEPAGE_ASCII;\n\n\treturn( 1 );\n\non_error:\n\tif( *io_handle != NULL )\n\t{\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *io_handle )->compression_level = LIBEWF_COMPRESSION_LEVEL_NONE;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"LIBEWF_COMPRESSION_LEVEL_NONE": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 60, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_io_handle_initialize(\n libewf_io_handle_t **io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_io_handle_initialize\";\n\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *io_handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid IO handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*io_handle = memory_allocate_structure(\n\t libewf_io_handle_t );\n\n\tif( *io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *io_handle,\n\t 0,\n\t sizeof( libewf_io_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *io_handle )->segment_file_type = LIBEWF_SEGMENT_FILE_TYPE_UNDEFINED;\n\t( *io_handle )->format = LIBEWF_FORMAT_ENCASE6;\n\t( *io_handle )->major_version = 1;\n\t( *io_handle )->minor_version = 0;\n\t( *io_handle )->compression_method = LIBEWF_COMPRESSION_METHOD_DEFLATE;\n\t( *io_handle )->compression_level = LIBEWF_COMPRESSION_LEVEL_NONE;\n\t( *io_handle )->zero_on_error = 1;\n\t( *io_handle )->header_codepage = LIBEWF_CODEPAGE_ASCII;\n\n\treturn( 1 );\n\non_error:\n\tif( *io_handle != NULL )\n\t{\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *io_handle )->zero_on_error = 1;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}, "io_handle": {"value": null}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 61, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_media_values_initialize(\n libewf_media_values_t **media_values,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_media_values_initialize\";\n\n\tif( media_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid media values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *media_values != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid media values value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*media_values = memory_allocate_structure(\n\t libewf_media_values_t );\n\n\tif( *media_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create media values.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *media_values,\n\t 0,\n\t sizeof( libewf_media_values_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear media values.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *media_values )->chunk_size = LIBEWF_MINIMUM_CHUNK_SIZE;\n\t( *media_values )->sectors_per_chunk = 64;\n\t( *media_values )->bytes_per_sector = 512;\n\t( *media_values )->media_flags = 0x01;\n\n\treturn( 1 );\n\non_error:\n\tif( *media_values != NULL )\n\t{\n\t\tmemory_free(\n\t\t *media_values );\n\n\t\t*media_values = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *media_values )->chunk_size = LIBEWF_MINIMUM_CHUNK_SIZE;", "Function Input": {"error": {"value": null}, "media_values": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x124a380", "value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"media_size": {"type_category": "unknown", "concrete_type": "size64_t", "value": "288072046477312"}, "chunk_size": {"type_category": "unknown", "concrete_type": "size32_t", "value": "1"}, "sectors_per_chunk": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, "bytes_per_sector": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, "number_of_chunks": {"type_category": "unknown", "concrete_type": "uint64_t", "value": "20127"}, "number_of_sectors": {"type_category": "unknown", "concrete_type": "uint64_t", "value": "48"}, "error_granularity": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "81"}, "media_type": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "media_flags": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "set_identifier": {"type_category": "string", "concrete_type": "string", "value": "\"\\000\\000/testcase/8800\""}}}}}}, "Variable Values Before Statement": {"LIBEWF_MINIMUM_CHUNK_SIZE": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 55, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_media_values_initialize(\n libewf_media_values_t **media_values,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_media_values_initialize\";\n\n\tif( media_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid media values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *media_values != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid media values value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*media_values = memory_allocate_structure(\n\t libewf_media_values_t );\n\n\tif( *media_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create media values.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *media_values,\n\t 0,\n\t sizeof( libewf_media_values_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear media values.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *media_values )->chunk_size = LIBEWF_MINIMUM_CHUNK_SIZE;\n\t( *media_values )->sectors_per_chunk = 64;\n\t( *media_values )->bytes_per_sector = 512;\n\t( *media_values )->media_flags = 0x01;\n\n\treturn( 1 );\n\non_error:\n\tif( *media_values != NULL )\n\t{\n\t\tmemory_free(\n\t\t *media_values );\n\n\t\t*media_values = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *media_values )->sectors_per_chunk = 64;", "Function Input": {"error": {"value": null}, "media_values": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x124a380", "value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"media_size": {"type_category": "unknown", "concrete_type": "size64_t", "value": "288072046477312"}, "chunk_size": {"type_category": "unknown", "concrete_type": "size32_t", "value": "1"}, "sectors_per_chunk": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, "bytes_per_sector": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, "number_of_chunks": {"type_category": "unknown", "concrete_type": "uint64_t", "value": "20127"}, "number_of_sectors": {"type_category": "unknown", "concrete_type": "uint64_t", "value": "48"}, "error_granularity": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "81"}, "media_type": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "media_flags": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "set_identifier": {"type_category": "string", "concrete_type": "string", "value": "\"\\000\\000/testcase/8800\""}}}}}}, "Variable Values Before Statement": {"constant": "64"}, "Value After Statement Execution": "64", "Block_Size": 56, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_media_values_initialize(\n libewf_media_values_t **media_values,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_media_values_initialize\";\n\n\tif( media_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid media values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *media_values != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid media values value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*media_values = memory_allocate_structure(\n\t libewf_media_values_t );\n\n\tif( *media_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create media values.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *media_values,\n\t 0,\n\t sizeof( libewf_media_values_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear media values.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *media_values )->chunk_size = LIBEWF_MINIMUM_CHUNK_SIZE;\n\t( *media_values )->sectors_per_chunk = 64;\n\t( *media_values )->bytes_per_sector = 512;\n\t( *media_values )->media_flags = 0x01;\n\n\treturn( 1 );\n\non_error:\n\tif( *media_values != NULL )\n\t{\n\t\tmemory_free(\n\t\t *media_values );\n\n\t\t*media_values = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *media_values )->bytes_per_sector = 512;", "Function Input": {"error": {"value": null}, "media_values": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x124a380", "value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"media_size": {"type_category": "unknown", "concrete_type": "size64_t", "value": "288072046477312"}, "chunk_size": {"type_category": "unknown", "concrete_type": "size32_t", "value": "1"}, "sectors_per_chunk": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, "bytes_per_sector": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, "number_of_chunks": {"type_category": "unknown", "concrete_type": "uint64_t", "value": "20127"}, "number_of_sectors": {"type_category": "unknown", "concrete_type": "uint64_t", "value": "48"}, "error_granularity": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "81"}, "media_type": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "media_flags": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "set_identifier": {"type_category": "string", "concrete_type": "string", "value": "\"\\000\\000/testcase/8800\""}}}}}}, "Variable Values Before Statement": {"constant": "512"}, "Value After Statement Execution": "512", "Block_Size": 57, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvalue_value_initialize(\n libfvalue_value_t **value,\n const char *type_string,\n const char *type_description,\n libfvalue_data_handle_t *data_handle,\n int (*initialize_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*free_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*clone_instance)(\n intptr_t **destination_instance,\n intptr_t *source_instance,\n libcerror_error_t **error ),\n int (*copy_from_byte_stream)(\n intptr_t *instance,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_to_byte_stream)(\n intptr_t *instance,\n uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_from_integer)(\n intptr_t *instance,\n uint64_t integer_value,\n size_t integer_value_size,\n libcerror_error_t **error ),\n int (*copy_to_integer)(\n intptr_t *instance,\n uint64_t *integer_value,\n size_t *integer_value_size,\n libcerror_error_t **error ),\n int (*copy_from_floating_point)(\n intptr_t *instance,\n double floating_point_value,\n size_t floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_to_floating_point)(\n intptr_t *instance,\n double *floating_point_value,\n size_t *floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_from_utf8_string_with_index)(\n intptr_t *instance,\n const uint8_t *utf8_string,\n size_t utf8_string_length,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf8_string_size)(\n intptr_t *instance,\n size_t *utf8_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf8_string_with_index)(\n intptr_t *instance,\n uint8_t *utf8_string,\n size_t utf8_string_size,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf16_string_with_index)(\n intptr_t *instance,\n const uint16_t *utf16_string,\n size_t utf16_string_length,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf16_string_size)(\n intptr_t *instance,\n size_t *utf16_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf16_string_with_index)(\n intptr_t *instance,\n uint16_t *utf16_string,\n size_t utf16_string_size,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf32_string_with_index)(\n intptr_t *instance,\n const uint32_t *utf32_string,\n size_t utf32_string_length,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf32_string_size)(\n intptr_t *instance,\n size_t *utf32_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf32_string_with_index)(\n intptr_t *instance,\n uint32_t *utf32_string,\n size_t utf32_string_size,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfvalue_internal_value_t *internal_value = NULL;\n\tstatic char *function = \"libfvalue_value_initialize\";\n\n\tif( value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *value != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid value value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( type_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid type string\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_value = memory_allocate_structure(\n\t libfvalue_internal_value_t );\n\n\tif( internal_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create value.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_value,\n\t 0,\n\t sizeof( libfvalue_internal_value_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear value.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_value );\n\n\t\treturn( -1 );\n\t}\n\tif( free_instance != NULL )\n\t{\n\t\tif( libcdata_array_initialize(\n\t\t &( internal_value->value_instances ),\n\t\t 1,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create value instances array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( data_handle == NULL )\n\t{\n\n\t\tif( libfvalue_data_handle_initialize(\n\t\t &( internal_value->data_handle ),\n\t\t NULL,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tinternal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;\n\t}\n\telse\n\t{\n\t\tinternal_value->data_handle = data_handle;\n\t}\n\tinternal_value->type_string = type_string;\n\tinternal_value->type_description = type_description;\n\n\tinternal_value->initialize_instance = initialize_instance;\n\tinternal_value->free_instance = free_instance;\n\tinternal_value->clone_instance = clone_instance;\n\n\tinternal_value->copy_from_byte_stream = copy_from_byte_stream;\n\tinternal_value->copy_to_byte_stream = copy_to_byte_stream;\n\n\tinternal_value->copy_from_integer = copy_from_integer;\n\tinternal_value->copy_to_integer = copy_to_integer;\n\n\tinternal_value->copy_from_floating_point = copy_from_floating_point;\n\tinternal_value->copy_to_floating_point = copy_to_floating_point;\n\n\tinternal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;\n\tinternal_value->get_utf8_string_size = get_utf8_string_size;\n\tinternal_value->copy_to_utf8_string_with_index = copy_to_utf8_string_with_index;\n\n\tinternal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;\n\tinternal_value->get_utf16_string_size = get_utf16_string_size;\n\tinternal_value->copy_to_utf16_string_with_index = copy_to_utf16_string_with_index;\n\n\tinternal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;\n\tinternal_value->get_utf32_string_size = get_utf32_string_size;\n\tinternal_value->copy_to_utf32_string_with_index = copy_to_utf32_string_with_index;\n\n\tinternal_value->flags |= flags;\n\n\t*value = (libfvalue_value_t *) internal_value;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_value != NULL )\n\t{\n\t\tif( internal_value->value_instances != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_value->value_instances ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_value );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "libfvalue_data_handle_t", "value": "21718765"}}, "error": {"value": null}, "flags": {"value": "0 '\\000'"}, "type_description": {"value": "0x7ffff7caad24 \"A\\211\\301\\351\\202\\376\\377\\377\\017\\037@\""}, "type_string": {"value": null}, "value": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffda50", "value": {"type_category": "unknown", "concrete_type": "libfvalue_value_t", "value": "66570244592322645"}}}}, "Variable Values Before Statement": {"LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 207, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvalue_value_initialize(\n libfvalue_value_t **value,\n const char *type_string,\n const char *type_description,\n libfvalue_data_handle_t *data_handle,\n int (*initialize_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*free_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*clone_instance)(\n intptr_t **destination_instance,\n intptr_t *source_instance,\n libcerror_error_t **error ),\n int (*copy_from_byte_stream)(\n intptr_t *instance,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_to_byte_stream)(\n intptr_t *instance,\n uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_from_integer)(\n intptr_t *instance,\n uint64_t integer_value,\n size_t integer_value_size,\n libcerror_error_t **error ),\n int (*copy_to_integer)(\n intptr_t *instance,\n uint64_t *integer_value,\n size_t *integer_value_size,\n libcerror_error_t **error ),\n int (*copy_from_floating_point)(\n intptr_t *instance,\n double floating_point_value,\n size_t floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_to_floating_point)(\n intptr_t *instance,\n double *floating_point_value,\n size_t *floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_from_utf8_string_with_index)(\n intptr_t *instance,\n const uint8_t *utf8_string,\n size_t utf8_string_length,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf8_string_size)(\n intptr_t *instance,\n size_t *utf8_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf8_string_with_index)(\n intptr_t *instance,\n uint8_t *utf8_string,\n size_t utf8_string_size,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf16_string_with_index)(\n intptr_t *instance,\n const uint16_t *utf16_string,\n size_t utf16_string_length,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf16_string_size)(\n intptr_t *instance,\n size_t *utf16_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf16_string_with_index)(\n intptr_t *instance,\n uint16_t *utf16_string,\n size_t utf16_string_size,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf32_string_with_index)(\n intptr_t *instance,\n const uint32_t *utf32_string,\n size_t utf32_string_length,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf32_string_size)(\n intptr_t *instance,\n size_t *utf32_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf32_string_with_index)(\n intptr_t *instance,\n uint32_t *utf32_string,\n size_t utf32_string_size,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfvalue_internal_value_t *internal_value = NULL;\n\tstatic char *function = \"libfvalue_value_initialize\";\n\n\tif( value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *value != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid value value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( type_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid type string\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_value = memory_allocate_structure(\n\t libfvalue_internal_value_t );\n\n\tif( internal_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create value.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_value,\n\t 0,\n\t sizeof( libfvalue_internal_value_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear value.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_value );\n\n\t\treturn( -1 );\n\t}\n\tif( free_instance != NULL )\n\t{\n\t\tif( libcdata_array_initialize(\n\t\t &( internal_value->value_instances ),\n\t\t 1,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create value instances array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( data_handle == NULL )\n\t{\n\n\t\tif( libfvalue_data_handle_initialize(\n\t\t &( internal_value->data_handle ),\n\t\t NULL,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tinternal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;\n\t}\n\telse\n\t{\n\t\tinternal_value->data_handle = data_handle;\n\t}\n\tinternal_value->type_string = type_string;\n\tinternal_value->type_description = type_description;\n\n\tinternal_value->initialize_instance = initialize_instance;\n\tinternal_value->free_instance = free_instance;\n\tinternal_value->clone_instance = clone_instance;\n\n\tinternal_value->copy_from_byte_stream = copy_from_byte_stream;\n\tinternal_value->copy_to_byte_stream = copy_to_byte_stream;\n\n\tinternal_value->copy_from_integer = copy_from_integer;\n\tinternal_value->copy_to_integer = copy_to_integer;\n\n\tinternal_value->copy_from_floating_point = copy_from_floating_point;\n\tinternal_value->copy_to_floating_point = copy_to_floating_point;\n\n\tinternal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;\n\tinternal_value->get_utf8_string_size = get_utf8_string_size;\n\tinternal_value->copy_to_utf8_string_with_index = copy_to_utf8_string_with_index;\n\n\tinternal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;\n\tinternal_value->get_utf16_string_size = get_utf16_string_size;\n\tinternal_value->copy_to_utf16_string_with_index = copy_to_utf16_string_with_index;\n\n\tinternal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;\n\tinternal_value->get_utf32_string_size = get_utf32_string_size;\n\tinternal_value->copy_to_utf32_string_with_index = copy_to_utf32_string_with_index;\n\n\tinternal_value->flags |= flags;\n\n\t*value = (libfvalue_value_t *) internal_value;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_value != NULL )\n\t{\n\t\tif( internal_value->value_instances != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_value->value_instances ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_value );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_value->type_string = type_string;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "libfvalue_data_handle_t", "value": "21718765"}}, "error": {"value": null}, "flags": {"value": "0 '\\000'"}, "type_description": {"value": "0x7ffff7caad24 \"A\\211\\301\\351\\202\\376\\377\\377\\017\\037@\""}, "type_string": {"value": null}, "value": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffda50", "value": {"type_category": "unknown", "concrete_type": "libfvalue_value_t", "value": "66570244592322645"}}}}, "Variable Values Before Statement": {"type_string": "\"utf8-string\""}, "Value After Statement Execution": "\"utf8-string\"", "Block_Size": 213, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvalue_value_initialize(\n libfvalue_value_t **value,\n const char *type_string,\n const char *type_description,\n libfvalue_data_handle_t *data_handle,\n int (*initialize_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*free_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*clone_instance)(\n intptr_t **destination_instance,\n intptr_t *source_instance,\n libcerror_error_t **error ),\n int (*copy_from_byte_stream)(\n intptr_t *instance,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_to_byte_stream)(\n intptr_t *instance,\n uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_from_integer)(\n intptr_t *instance,\n uint64_t integer_value,\n size_t integer_value_size,\n libcerror_error_t **error ),\n int (*copy_to_integer)(\n intptr_t *instance,\n uint64_t *integer_value,\n size_t *integer_value_size,\n libcerror_error_t **error ),\n int (*copy_from_floating_point)(\n intptr_t *instance,\n double floating_point_value,\n size_t floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_to_floating_point)(\n intptr_t *instance,\n double *floating_point_value,\n size_t *floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_from_utf8_string_with_index)(\n intptr_t *instance,\n const uint8_t *utf8_string,\n size_t utf8_string_length,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf8_string_size)(\n intptr_t *instance,\n size_t *utf8_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf8_string_with_index)(\n intptr_t *instance,\n uint8_t *utf8_string,\n size_t utf8_string_size,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf16_string_with_index)(\n intptr_t *instance,\n const uint16_t *utf16_string,\n size_t utf16_string_length,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf16_string_size)(\n intptr_t *instance,\n size_t *utf16_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf16_string_with_index)(\n intptr_t *instance,\n uint16_t *utf16_string,\n size_t utf16_string_size,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf32_string_with_index)(\n intptr_t *instance,\n const uint32_t *utf32_string,\n size_t utf32_string_length,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf32_string_size)(\n intptr_t *instance,\n size_t *utf32_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf32_string_with_index)(\n intptr_t *instance,\n uint32_t *utf32_string,\n size_t utf32_string_size,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfvalue_internal_value_t *internal_value = NULL;\n\tstatic char *function = \"libfvalue_value_initialize\";\n\n\tif( value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *value != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid value value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( type_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid type string\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_value = memory_allocate_structure(\n\t libfvalue_internal_value_t );\n\n\tif( internal_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create value.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_value,\n\t 0,\n\t sizeof( libfvalue_internal_value_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear value.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_value );\n\n\t\treturn( -1 );\n\t}\n\tif( free_instance != NULL )\n\t{\n\t\tif( libcdata_array_initialize(\n\t\t &( internal_value->value_instances ),\n\t\t 1,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create value instances array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( data_handle == NULL )\n\t{\n\n\t\tif( libfvalue_data_handle_initialize(\n\t\t &( internal_value->data_handle ),\n\t\t NULL,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tinternal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;\n\t}\n\telse\n\t{\n\t\tinternal_value->data_handle = data_handle;\n\t}\n\tinternal_value->type_string = type_string;\n\tinternal_value->type_description = type_description;\n\n\tinternal_value->initialize_instance = initialize_instance;\n\tinternal_value->free_instance = free_instance;\n\tinternal_value->clone_instance = clone_instance;\n\n\tinternal_value->copy_from_byte_stream = copy_from_byte_stream;\n\tinternal_value->copy_to_byte_stream = copy_to_byte_stream;\n\n\tinternal_value->copy_from_integer = copy_from_integer;\n\tinternal_value->copy_to_integer = copy_to_integer;\n\n\tinternal_value->copy_from_floating_point = copy_from_floating_point;\n\tinternal_value->copy_to_floating_point = copy_to_floating_point;\n\n\tinternal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;\n\tinternal_value->get_utf8_string_size = get_utf8_string_size;\n\tinternal_value->copy_to_utf8_string_with_index = copy_to_utf8_string_with_index;\n\n\tinternal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;\n\tinternal_value->get_utf16_string_size = get_utf16_string_size;\n\tinternal_value->copy_to_utf16_string_with_index = copy_to_utf16_string_with_index;\n\n\tinternal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;\n\tinternal_value->get_utf32_string_size = get_utf32_string_size;\n\tinternal_value->copy_to_utf32_string_with_index = copy_to_utf32_string_with_index;\n\n\tinternal_value->flags |= flags;\n\n\t*value = (libfvalue_value_t *) internal_value;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_value != NULL )\n\t{\n\t\tif( internal_value->value_instances != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_value->value_instances ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_value );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_value->initialize_instance = initialize_instance;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "libfvalue_data_handle_t", "value": "21718765"}}, "error": {"value": null}, "flags": {"value": "0 '\\000'"}, "type_description": {"value": "0x7ffff7caad24 \"A\\211\\301\\351\\202\\376\\377\\377\\017\\037@\""}, "type_string": {"value": null}, "value": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffda50", "value": {"type_category": "unknown", "concrete_type": "libfvalue_value_t", "value": "66570244592322645"}}}}, "Variable Values Before Statement": {"initialize_instance": "{int (intptr_t **, libcerror_error_t **)} 0x681ce0 "}, "Value After Statement Execution": "{int (intptr_t **, libcerror_error_t **)} 0x681ce0 ", "Block_Size": 216, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvalue_value_initialize(\n libfvalue_value_t **value,\n const char *type_string,\n const char *type_description,\n libfvalue_data_handle_t *data_handle,\n int (*initialize_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*free_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*clone_instance)(\n intptr_t **destination_instance,\n intptr_t *source_instance,\n libcerror_error_t **error ),\n int (*copy_from_byte_stream)(\n intptr_t *instance,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_to_byte_stream)(\n intptr_t *instance,\n uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_from_integer)(\n intptr_t *instance,\n uint64_t integer_value,\n size_t integer_value_size,\n libcerror_error_t **error ),\n int (*copy_to_integer)(\n intptr_t *instance,\n uint64_t *integer_value,\n size_t *integer_value_size,\n libcerror_error_t **error ),\n int (*copy_from_floating_point)(\n intptr_t *instance,\n double floating_point_value,\n size_t floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_to_floating_point)(\n intptr_t *instance,\n double *floating_point_value,\n size_t *floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_from_utf8_string_with_index)(\n intptr_t *instance,\n const uint8_t *utf8_string,\n size_t utf8_string_length,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf8_string_size)(\n intptr_t *instance,\n size_t *utf8_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf8_string_with_index)(\n intptr_t *instance,\n uint8_t *utf8_string,\n size_t utf8_string_size,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf16_string_with_index)(\n intptr_t *instance,\n const uint16_t *utf16_string,\n size_t utf16_string_length,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf16_string_size)(\n intptr_t *instance,\n size_t *utf16_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf16_string_with_index)(\n intptr_t *instance,\n uint16_t *utf16_string,\n size_t utf16_string_size,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf32_string_with_index)(\n intptr_t *instance,\n const uint32_t *utf32_string,\n size_t utf32_string_length,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf32_string_size)(\n intptr_t *instance,\n size_t *utf32_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf32_string_with_index)(\n intptr_t *instance,\n uint32_t *utf32_string,\n size_t utf32_string_size,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfvalue_internal_value_t *internal_value = NULL;\n\tstatic char *function = \"libfvalue_value_initialize\";\n\n\tif( value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *value != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid value value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( type_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid type string\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_value = memory_allocate_structure(\n\t libfvalue_internal_value_t );\n\n\tif( internal_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create value.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_value,\n\t 0,\n\t sizeof( libfvalue_internal_value_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear value.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_value );\n\n\t\treturn( -1 );\n\t}\n\tif( free_instance != NULL )\n\t{\n\t\tif( libcdata_array_initialize(\n\t\t &( internal_value->value_instances ),\n\t\t 1,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create value instances array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( data_handle == NULL )\n\t{\n\n\t\tif( libfvalue_data_handle_initialize(\n\t\t &( internal_value->data_handle ),\n\t\t NULL,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tinternal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;\n\t}\n\telse\n\t{\n\t\tinternal_value->data_handle = data_handle;\n\t}\n\tinternal_value->type_string = type_string;\n\tinternal_value->type_description = type_description;\n\n\tinternal_value->initialize_instance = initialize_instance;\n\tinternal_value->free_instance = free_instance;\n\tinternal_value->clone_instance = clone_instance;\n\n\tinternal_value->copy_from_byte_stream = copy_from_byte_stream;\n\tinternal_value->copy_to_byte_stream = copy_to_byte_stream;\n\n\tinternal_value->copy_from_integer = copy_from_integer;\n\tinternal_value->copy_to_integer = copy_to_integer;\n\n\tinternal_value->copy_from_floating_point = copy_from_floating_point;\n\tinternal_value->copy_to_floating_point = copy_to_floating_point;\n\n\tinternal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;\n\tinternal_value->get_utf8_string_size = get_utf8_string_size;\n\tinternal_value->copy_to_utf8_string_with_index = copy_to_utf8_string_with_index;\n\n\tinternal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;\n\tinternal_value->get_utf16_string_size = get_utf16_string_size;\n\tinternal_value->copy_to_utf16_string_with_index = copy_to_utf16_string_with_index;\n\n\tinternal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;\n\tinternal_value->get_utf32_string_size = get_utf32_string_size;\n\tinternal_value->copy_to_utf32_string_with_index = copy_to_utf32_string_with_index;\n\n\tinternal_value->flags |= flags;\n\n\t*value = (libfvalue_value_t *) internal_value;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_value != NULL )\n\t{\n\t\tif( internal_value->value_instances != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_value->value_instances ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_value );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_value->free_instance = free_instance;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "libfvalue_data_handle_t", "value": "21718765"}}, "error": {"value": null}, "flags": {"value": "0 '\\000'"}, "type_description": {"value": "0x7ffff7caad24 \"A\\211\\301\\351\\202\\376\\377\\377\\017\\037@\""}, "type_string": {"value": null}, "value": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffda50", "value": {"type_category": "unknown", "concrete_type": "libfvalue_value_t", "value": "66570244592322645"}}}}, "Variable Values Before Statement": {"free_instance": "{int (intptr_t **, libcerror_error_t **)} 0x681f20 "}, "Value After Statement Execution": "{int (intptr_t **, libcerror_error_t **)} 0x681f20 ", "Block_Size": 217, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvalue_value_initialize(\n libfvalue_value_t **value,\n const char *type_string,\n const char *type_description,\n libfvalue_data_handle_t *data_handle,\n int (*initialize_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*free_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*clone_instance)(\n intptr_t **destination_instance,\n intptr_t *source_instance,\n libcerror_error_t **error ),\n int (*copy_from_byte_stream)(\n intptr_t *instance,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_to_byte_stream)(\n intptr_t *instance,\n uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_from_integer)(\n intptr_t *instance,\n uint64_t integer_value,\n size_t integer_value_size,\n libcerror_error_t **error ),\n int (*copy_to_integer)(\n intptr_t *instance,\n uint64_t *integer_value,\n size_t *integer_value_size,\n libcerror_error_t **error ),\n int (*copy_from_floating_point)(\n intptr_t *instance,\n double floating_point_value,\n size_t floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_to_floating_point)(\n intptr_t *instance,\n double *floating_point_value,\n size_t *floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_from_utf8_string_with_index)(\n intptr_t *instance,\n const uint8_t *utf8_string,\n size_t utf8_string_length,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf8_string_size)(\n intptr_t *instance,\n size_t *utf8_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf8_string_with_index)(\n intptr_t *instance,\n uint8_t *utf8_string,\n size_t utf8_string_size,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf16_string_with_index)(\n intptr_t *instance,\n const uint16_t *utf16_string,\n size_t utf16_string_length,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf16_string_size)(\n intptr_t *instance,\n size_t *utf16_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf16_string_with_index)(\n intptr_t *instance,\n uint16_t *utf16_string,\n size_t utf16_string_size,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf32_string_with_index)(\n intptr_t *instance,\n const uint32_t *utf32_string,\n size_t utf32_string_length,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf32_string_size)(\n intptr_t *instance,\n size_t *utf32_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf32_string_with_index)(\n intptr_t *instance,\n uint32_t *utf32_string,\n size_t utf32_string_size,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfvalue_internal_value_t *internal_value = NULL;\n\tstatic char *function = \"libfvalue_value_initialize\";\n\n\tif( value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *value != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid value value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( type_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid type string\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_value = memory_allocate_structure(\n\t libfvalue_internal_value_t );\n\n\tif( internal_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create value.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_value,\n\t 0,\n\t sizeof( libfvalue_internal_value_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear value.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_value );\n\n\t\treturn( -1 );\n\t}\n\tif( free_instance != NULL )\n\t{\n\t\tif( libcdata_array_initialize(\n\t\t &( internal_value->value_instances ),\n\t\t 1,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create value instances array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( data_handle == NULL )\n\t{\n\n\t\tif( libfvalue_data_handle_initialize(\n\t\t &( internal_value->data_handle ),\n\t\t NULL,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tinternal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;\n\t}\n\telse\n\t{\n\t\tinternal_value->data_handle = data_handle;\n\t}\n\tinternal_value->type_string = type_string;\n\tinternal_value->type_description = type_description;\n\n\tinternal_value->initialize_instance = initialize_instance;\n\tinternal_value->free_instance = free_instance;\n\tinternal_value->clone_instance = clone_instance;\n\n\tinternal_value->copy_from_byte_stream = copy_from_byte_stream;\n\tinternal_value->copy_to_byte_stream = copy_to_byte_stream;\n\n\tinternal_value->copy_from_integer = copy_from_integer;\n\tinternal_value->copy_to_integer = copy_to_integer;\n\n\tinternal_value->copy_from_floating_point = copy_from_floating_point;\n\tinternal_value->copy_to_floating_point = copy_to_floating_point;\n\n\tinternal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;\n\tinternal_value->get_utf8_string_size = get_utf8_string_size;\n\tinternal_value->copy_to_utf8_string_with_index = copy_to_utf8_string_with_index;\n\n\tinternal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;\n\tinternal_value->get_utf16_string_size = get_utf16_string_size;\n\tinternal_value->copy_to_utf16_string_with_index = copy_to_utf16_string_with_index;\n\n\tinternal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;\n\tinternal_value->get_utf32_string_size = get_utf32_string_size;\n\tinternal_value->copy_to_utf32_string_with_index = copy_to_utf32_string_with_index;\n\n\tinternal_value->flags |= flags;\n\n\t*value = (libfvalue_value_t *) internal_value;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_value != NULL )\n\t{\n\t\tif( internal_value->value_instances != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_value->value_instances ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_value );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_value->copy_from_byte_stream = copy_from_byte_stream;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "libfvalue_data_handle_t", "value": "21718765"}}, "error": {"value": null}, "flags": {"value": "0 '\\000'"}, "type_description": {"value": "0x7ffff7caad24 \"A\\211\\301\\351\\202\\376\\377\\377\\017\\037@\""}, "type_string": {"value": null}, "value": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffda50", "value": {"type_category": "unknown", "concrete_type": "libfvalue_value_t", "value": "66570244592322645"}}}}, "Variable Values Before Statement": {"copy_from_byte_stream": "{int (intptr_t *, const uint8_t *, size_t, int, libcerror_error_t **)} 0x682500 "}, "Value After Statement Execution": "{int (intptr_t *, const uint8_t *, size_t, int, libcerror_error_t **)} 0x682500 ", "Block_Size": 220, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvalue_value_initialize(\n libfvalue_value_t **value,\n const char *type_string,\n const char *type_description,\n libfvalue_data_handle_t *data_handle,\n int (*initialize_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*free_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*clone_instance)(\n intptr_t **destination_instance,\n intptr_t *source_instance,\n libcerror_error_t **error ),\n int (*copy_from_byte_stream)(\n intptr_t *instance,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_to_byte_stream)(\n intptr_t *instance,\n uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_from_integer)(\n intptr_t *instance,\n uint64_t integer_value,\n size_t integer_value_size,\n libcerror_error_t **error ),\n int (*copy_to_integer)(\n intptr_t *instance,\n uint64_t *integer_value,\n size_t *integer_value_size,\n libcerror_error_t **error ),\n int (*copy_from_floating_point)(\n intptr_t *instance,\n double floating_point_value,\n size_t floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_to_floating_point)(\n intptr_t *instance,\n double *floating_point_value,\n size_t *floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_from_utf8_string_with_index)(\n intptr_t *instance,\n const uint8_t *utf8_string,\n size_t utf8_string_length,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf8_string_size)(\n intptr_t *instance,\n size_t *utf8_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf8_string_with_index)(\n intptr_t *instance,\n uint8_t *utf8_string,\n size_t utf8_string_size,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf16_string_with_index)(\n intptr_t *instance,\n const uint16_t *utf16_string,\n size_t utf16_string_length,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf16_string_size)(\n intptr_t *instance,\n size_t *utf16_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf16_string_with_index)(\n intptr_t *instance,\n uint16_t *utf16_string,\n size_t utf16_string_size,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf32_string_with_index)(\n intptr_t *instance,\n const uint32_t *utf32_string,\n size_t utf32_string_length,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf32_string_size)(\n intptr_t *instance,\n size_t *utf32_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf32_string_with_index)(\n intptr_t *instance,\n uint32_t *utf32_string,\n size_t utf32_string_size,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfvalue_internal_value_t *internal_value = NULL;\n\tstatic char *function = \"libfvalue_value_initialize\";\n\n\tif( value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *value != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid value value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( type_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid type string\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_value = memory_allocate_structure(\n\t libfvalue_internal_value_t );\n\n\tif( internal_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create value.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_value,\n\t 0,\n\t sizeof( libfvalue_internal_value_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear value.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_value );\n\n\t\treturn( -1 );\n\t}\n\tif( free_instance != NULL )\n\t{\n\t\tif( libcdata_array_initialize(\n\t\t &( internal_value->value_instances ),\n\t\t 1,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create value instances array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( data_handle == NULL )\n\t{\n\n\t\tif( libfvalue_data_handle_initialize(\n\t\t &( internal_value->data_handle ),\n\t\t NULL,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tinternal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;\n\t}\n\telse\n\t{\n\t\tinternal_value->data_handle = data_handle;\n\t}\n\tinternal_value->type_string = type_string;\n\tinternal_value->type_description = type_description;\n\n\tinternal_value->initialize_instance = initialize_instance;\n\tinternal_value->free_instance = free_instance;\n\tinternal_value->clone_instance = clone_instance;\n\n\tinternal_value->copy_from_byte_stream = copy_from_byte_stream;\n\tinternal_value->copy_to_byte_stream = copy_to_byte_stream;\n\n\tinternal_value->copy_from_integer = copy_from_integer;\n\tinternal_value->copy_to_integer = copy_to_integer;\n\n\tinternal_value->copy_from_floating_point = copy_from_floating_point;\n\tinternal_value->copy_to_floating_point = copy_to_floating_point;\n\n\tinternal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;\n\tinternal_value->get_utf8_string_size = get_utf8_string_size;\n\tinternal_value->copy_to_utf8_string_with_index = copy_to_utf8_string_with_index;\n\n\tinternal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;\n\tinternal_value->get_utf16_string_size = get_utf16_string_size;\n\tinternal_value->copy_to_utf16_string_with_index = copy_to_utf16_string_with_index;\n\n\tinternal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;\n\tinternal_value->get_utf32_string_size = get_utf32_string_size;\n\tinternal_value->copy_to_utf32_string_with_index = copy_to_utf32_string_with_index;\n\n\tinternal_value->flags |= flags;\n\n\t*value = (libfvalue_value_t *) internal_value;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_value != NULL )\n\t{\n\t\tif( internal_value->value_instances != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_value->value_instances ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_value );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_value->copy_from_integer = copy_from_integer;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "libfvalue_data_handle_t", "value": "21718765"}}, "error": {"value": null}, "flags": {"value": "0 '\\000'"}, "type_description": {"value": "0x7ffff7caad24 \"A\\211\\301\\351\\202\\376\\377\\377\\017\\037@\""}, "type_string": {"value": null}, "value": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffda50", "value": {"type_category": "unknown", "concrete_type": "libfvalue_value_t", "value": "66570244592322645"}}}}, "Variable Values Before Statement": {"copy_from_integer": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 223, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvalue_value_initialize(\n libfvalue_value_t **value,\n const char *type_string,\n const char *type_description,\n libfvalue_data_handle_t *data_handle,\n int (*initialize_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*free_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*clone_instance)(\n intptr_t **destination_instance,\n intptr_t *source_instance,\n libcerror_error_t **error ),\n int (*copy_from_byte_stream)(\n intptr_t *instance,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_to_byte_stream)(\n intptr_t *instance,\n uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_from_integer)(\n intptr_t *instance,\n uint64_t integer_value,\n size_t integer_value_size,\n libcerror_error_t **error ),\n int (*copy_to_integer)(\n intptr_t *instance,\n uint64_t *integer_value,\n size_t *integer_value_size,\n libcerror_error_t **error ),\n int (*copy_from_floating_point)(\n intptr_t *instance,\n double floating_point_value,\n size_t floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_to_floating_point)(\n intptr_t *instance,\n double *floating_point_value,\n size_t *floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_from_utf8_string_with_index)(\n intptr_t *instance,\n const uint8_t *utf8_string,\n size_t utf8_string_length,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf8_string_size)(\n intptr_t *instance,\n size_t *utf8_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf8_string_with_index)(\n intptr_t *instance,\n uint8_t *utf8_string,\n size_t utf8_string_size,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf16_string_with_index)(\n intptr_t *instance,\n const uint16_t *utf16_string,\n size_t utf16_string_length,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf16_string_size)(\n intptr_t *instance,\n size_t *utf16_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf16_string_with_index)(\n intptr_t *instance,\n uint16_t *utf16_string,\n size_t utf16_string_size,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf32_string_with_index)(\n intptr_t *instance,\n const uint32_t *utf32_string,\n size_t utf32_string_length,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf32_string_size)(\n intptr_t *instance,\n size_t *utf32_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf32_string_with_index)(\n intptr_t *instance,\n uint32_t *utf32_string,\n size_t utf32_string_size,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfvalue_internal_value_t *internal_value = NULL;\n\tstatic char *function = \"libfvalue_value_initialize\";\n\n\tif( value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *value != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid value value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( type_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid type string\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_value = memory_allocate_structure(\n\t libfvalue_internal_value_t );\n\n\tif( internal_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create value.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_value,\n\t 0,\n\t sizeof( libfvalue_internal_value_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear value.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_value );\n\n\t\treturn( -1 );\n\t}\n\tif( free_instance != NULL )\n\t{\n\t\tif( libcdata_array_initialize(\n\t\t &( internal_value->value_instances ),\n\t\t 1,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create value instances array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( data_handle == NULL )\n\t{\n\n\t\tif( libfvalue_data_handle_initialize(\n\t\t &( internal_value->data_handle ),\n\t\t NULL,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tinternal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;\n\t}\n\telse\n\t{\n\t\tinternal_value->data_handle = data_handle;\n\t}\n\tinternal_value->type_string = type_string;\n\tinternal_value->type_description = type_description;\n\n\tinternal_value->initialize_instance = initialize_instance;\n\tinternal_value->free_instance = free_instance;\n\tinternal_value->clone_instance = clone_instance;\n\n\tinternal_value->copy_from_byte_stream = copy_from_byte_stream;\n\tinternal_value->copy_to_byte_stream = copy_to_byte_stream;\n\n\tinternal_value->copy_from_integer = copy_from_integer;\n\tinternal_value->copy_to_integer = copy_to_integer;\n\n\tinternal_value->copy_from_floating_point = copy_from_floating_point;\n\tinternal_value->copy_to_floating_point = copy_to_floating_point;\n\n\tinternal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;\n\tinternal_value->get_utf8_string_size = get_utf8_string_size;\n\tinternal_value->copy_to_utf8_string_with_index = copy_to_utf8_string_with_index;\n\n\tinternal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;\n\tinternal_value->get_utf16_string_size = get_utf16_string_size;\n\tinternal_value->copy_to_utf16_string_with_index = copy_to_utf16_string_with_index;\n\n\tinternal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;\n\tinternal_value->get_utf32_string_size = get_utf32_string_size;\n\tinternal_value->copy_to_utf32_string_with_index = copy_to_utf32_string_with_index;\n\n\tinternal_value->flags |= flags;\n\n\t*value = (libfvalue_value_t *) internal_value;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_value != NULL )\n\t{\n\t\tif( internal_value->value_instances != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_value->value_instances ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_value );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_value->copy_from_floating_point = copy_from_floating_point;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "libfvalue_data_handle_t", "value": "21718765"}}, "error": {"value": null}, "flags": {"value": "0 '\\000'"}, "type_description": {"value": "0x7ffff7caad24 \"A\\211\\301\\351\\202\\376\\377\\377\\017\\037@\""}, "type_string": {"value": null}, "value": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffda50", "value": {"type_category": "unknown", "concrete_type": "libfvalue_value_t", "value": "66570244592322645"}}}}, "Variable Values Before Statement": {"copy_from_floating_point": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 226, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvalue_value_initialize(\n libfvalue_value_t **value,\n const char *type_string,\n const char *type_description,\n libfvalue_data_handle_t *data_handle,\n int (*initialize_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*free_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*clone_instance)(\n intptr_t **destination_instance,\n intptr_t *source_instance,\n libcerror_error_t **error ),\n int (*copy_from_byte_stream)(\n intptr_t *instance,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_to_byte_stream)(\n intptr_t *instance,\n uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_from_integer)(\n intptr_t *instance,\n uint64_t integer_value,\n size_t integer_value_size,\n libcerror_error_t **error ),\n int (*copy_to_integer)(\n intptr_t *instance,\n uint64_t *integer_value,\n size_t *integer_value_size,\n libcerror_error_t **error ),\n int (*copy_from_floating_point)(\n intptr_t *instance,\n double floating_point_value,\n size_t floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_to_floating_point)(\n intptr_t *instance,\n double *floating_point_value,\n size_t *floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_from_utf8_string_with_index)(\n intptr_t *instance,\n const uint8_t *utf8_string,\n size_t utf8_string_length,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf8_string_size)(\n intptr_t *instance,\n size_t *utf8_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf8_string_with_index)(\n intptr_t *instance,\n uint8_t *utf8_string,\n size_t utf8_string_size,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf16_string_with_index)(\n intptr_t *instance,\n const uint16_t *utf16_string,\n size_t utf16_string_length,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf16_string_size)(\n intptr_t *instance,\n size_t *utf16_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf16_string_with_index)(\n intptr_t *instance,\n uint16_t *utf16_string,\n size_t utf16_string_size,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf32_string_with_index)(\n intptr_t *instance,\n const uint32_t *utf32_string,\n size_t utf32_string_length,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf32_string_size)(\n intptr_t *instance,\n size_t *utf32_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf32_string_with_index)(\n intptr_t *instance,\n uint32_t *utf32_string,\n size_t utf32_string_size,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfvalue_internal_value_t *internal_value = NULL;\n\tstatic char *function = \"libfvalue_value_initialize\";\n\n\tif( value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *value != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid value value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( type_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid type string\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_value = memory_allocate_structure(\n\t libfvalue_internal_value_t );\n\n\tif( internal_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create value.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_value,\n\t 0,\n\t sizeof( libfvalue_internal_value_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear value.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_value );\n\n\t\treturn( -1 );\n\t}\n\tif( free_instance != NULL )\n\t{\n\t\tif( libcdata_array_initialize(\n\t\t &( internal_value->value_instances ),\n\t\t 1,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create value instances array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( data_handle == NULL )\n\t{\n\n\t\tif( libfvalue_data_handle_initialize(\n\t\t &( internal_value->data_handle ),\n\t\t NULL,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tinternal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;\n\t}\n\telse\n\t{\n\t\tinternal_value->data_handle = data_handle;\n\t}\n\tinternal_value->type_string = type_string;\n\tinternal_value->type_description = type_description;\n\n\tinternal_value->initialize_instance = initialize_instance;\n\tinternal_value->free_instance = free_instance;\n\tinternal_value->clone_instance = clone_instance;\n\n\tinternal_value->copy_from_byte_stream = copy_from_byte_stream;\n\tinternal_value->copy_to_byte_stream = copy_to_byte_stream;\n\n\tinternal_value->copy_from_integer = copy_from_integer;\n\tinternal_value->copy_to_integer = copy_to_integer;\n\n\tinternal_value->copy_from_floating_point = copy_from_floating_point;\n\tinternal_value->copy_to_floating_point = copy_to_floating_point;\n\n\tinternal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;\n\tinternal_value->get_utf8_string_size = get_utf8_string_size;\n\tinternal_value->copy_to_utf8_string_with_index = copy_to_utf8_string_with_index;\n\n\tinternal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;\n\tinternal_value->get_utf16_string_size = get_utf16_string_size;\n\tinternal_value->copy_to_utf16_string_with_index = copy_to_utf16_string_with_index;\n\n\tinternal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;\n\tinternal_value->get_utf32_string_size = get_utf32_string_size;\n\tinternal_value->copy_to_utf32_string_with_index = copy_to_utf32_string_with_index;\n\n\tinternal_value->flags |= flags;\n\n\t*value = (libfvalue_value_t *) internal_value;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_value != NULL )\n\t{\n\t\tif( internal_value->value_instances != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_value->value_instances ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_value );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "libfvalue_data_handle_t", "value": "21718765"}}, "error": {"value": null}, "flags": {"value": "0 '\\000'"}, "type_description": {"value": "0x7ffff7caad24 \"A\\211\\301\\351\\202\\376\\377\\377\\017\\037@\""}, "type_string": {"value": null}, "value": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffda50", "value": {"type_category": "unknown", "concrete_type": "libfvalue_value_t", "value": "66570244592322645"}}}}, "Variable Values Before Statement": {"copy_from_utf8_string_with_index": "{int (intptr_t *, const uint8_t *, size_t, size_t *, uint32_t, libcerror_error_t **)} 0x6831b0 "}, "Value After Statement Execution": "{int (intptr_t *, const uint8_t *, size_t, size_t *, uint32_t, libcerror_error_t **)} 0x6831b0 ", "Block_Size": 229, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvalue_value_initialize(\n libfvalue_value_t **value,\n const char *type_string,\n const char *type_description,\n libfvalue_data_handle_t *data_handle,\n int (*initialize_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*free_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*clone_instance)(\n intptr_t **destination_instance,\n intptr_t *source_instance,\n libcerror_error_t **error ),\n int (*copy_from_byte_stream)(\n intptr_t *instance,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_to_byte_stream)(\n intptr_t *instance,\n uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_from_integer)(\n intptr_t *instance,\n uint64_t integer_value,\n size_t integer_value_size,\n libcerror_error_t **error ),\n int (*copy_to_integer)(\n intptr_t *instance,\n uint64_t *integer_value,\n size_t *integer_value_size,\n libcerror_error_t **error ),\n int (*copy_from_floating_point)(\n intptr_t *instance,\n double floating_point_value,\n size_t floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_to_floating_point)(\n intptr_t *instance,\n double *floating_point_value,\n size_t *floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_from_utf8_string_with_index)(\n intptr_t *instance,\n const uint8_t *utf8_string,\n size_t utf8_string_length,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf8_string_size)(\n intptr_t *instance,\n size_t *utf8_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf8_string_with_index)(\n intptr_t *instance,\n uint8_t *utf8_string,\n size_t utf8_string_size,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf16_string_with_index)(\n intptr_t *instance,\n const uint16_t *utf16_string,\n size_t utf16_string_length,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf16_string_size)(\n intptr_t *instance,\n size_t *utf16_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf16_string_with_index)(\n intptr_t *instance,\n uint16_t *utf16_string,\n size_t utf16_string_size,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf32_string_with_index)(\n intptr_t *instance,\n const uint32_t *utf32_string,\n size_t utf32_string_length,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf32_string_size)(\n intptr_t *instance,\n size_t *utf32_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf32_string_with_index)(\n intptr_t *instance,\n uint32_t *utf32_string,\n size_t utf32_string_size,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfvalue_internal_value_t *internal_value = NULL;\n\tstatic char *function = \"libfvalue_value_initialize\";\n\n\tif( value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *value != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid value value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( type_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid type string\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_value = memory_allocate_structure(\n\t libfvalue_internal_value_t );\n\n\tif( internal_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create value.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_value,\n\t 0,\n\t sizeof( libfvalue_internal_value_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear value.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_value );\n\n\t\treturn( -1 );\n\t}\n\tif( free_instance != NULL )\n\t{\n\t\tif( libcdata_array_initialize(\n\t\t &( internal_value->value_instances ),\n\t\t 1,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create value instances array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( data_handle == NULL )\n\t{\n\n\t\tif( libfvalue_data_handle_initialize(\n\t\t &( internal_value->data_handle ),\n\t\t NULL,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tinternal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;\n\t}\n\telse\n\t{\n\t\tinternal_value->data_handle = data_handle;\n\t}\n\tinternal_value->type_string = type_string;\n\tinternal_value->type_description = type_description;\n\n\tinternal_value->initialize_instance = initialize_instance;\n\tinternal_value->free_instance = free_instance;\n\tinternal_value->clone_instance = clone_instance;\n\n\tinternal_value->copy_from_byte_stream = copy_from_byte_stream;\n\tinternal_value->copy_to_byte_stream = copy_to_byte_stream;\n\n\tinternal_value->copy_from_integer = copy_from_integer;\n\tinternal_value->copy_to_integer = copy_to_integer;\n\n\tinternal_value->copy_from_floating_point = copy_from_floating_point;\n\tinternal_value->copy_to_floating_point = copy_to_floating_point;\n\n\tinternal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;\n\tinternal_value->get_utf8_string_size = get_utf8_string_size;\n\tinternal_value->copy_to_utf8_string_with_index = copy_to_utf8_string_with_index;\n\n\tinternal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;\n\tinternal_value->get_utf16_string_size = get_utf16_string_size;\n\tinternal_value->copy_to_utf16_string_with_index = copy_to_utf16_string_with_index;\n\n\tinternal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;\n\tinternal_value->get_utf32_string_size = get_utf32_string_size;\n\tinternal_value->copy_to_utf32_string_with_index = copy_to_utf32_string_with_index;\n\n\tinternal_value->flags |= flags;\n\n\t*value = (libfvalue_value_t *) internal_value;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_value != NULL )\n\t{\n\t\tif( internal_value->value_instances != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_value->value_instances ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_value );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_value->get_utf8_string_size = get_utf8_string_size;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "libfvalue_data_handle_t", "value": "21718765"}}, "error": {"value": null}, "flags": {"value": "0 '\\000'"}, "type_description": {"value": "0x7ffff7caad24 \"A\\211\\301\\351\\202\\376\\377\\377\\017\\037@\""}, "type_string": {"value": null}, "value": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffda50", "value": {"type_category": "unknown", "concrete_type": "libfvalue_value_t", "value": "66570244592322645"}}}}, "Variable Values Before Statement": {"get_utf8_string_size": "{int (intptr_t *, size_t *, uint32_t, libcerror_error_t **)} 0x683f40 "}, "Value After Statement Execution": "{int (intptr_t *, size_t *, uint32_t, libcerror_error_t **)} 0x683f40 ", "Block_Size": 230, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvalue_value_initialize(\n libfvalue_value_t **value,\n const char *type_string,\n const char *type_description,\n libfvalue_data_handle_t *data_handle,\n int (*initialize_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*free_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*clone_instance)(\n intptr_t **destination_instance,\n intptr_t *source_instance,\n libcerror_error_t **error ),\n int (*copy_from_byte_stream)(\n intptr_t *instance,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_to_byte_stream)(\n intptr_t *instance,\n uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_from_integer)(\n intptr_t *instance,\n uint64_t integer_value,\n size_t integer_value_size,\n libcerror_error_t **error ),\n int (*copy_to_integer)(\n intptr_t *instance,\n uint64_t *integer_value,\n size_t *integer_value_size,\n libcerror_error_t **error ),\n int (*copy_from_floating_point)(\n intptr_t *instance,\n double floating_point_value,\n size_t floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_to_floating_point)(\n intptr_t *instance,\n double *floating_point_value,\n size_t *floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_from_utf8_string_with_index)(\n intptr_t *instance,\n const uint8_t *utf8_string,\n size_t utf8_string_length,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf8_string_size)(\n intptr_t *instance,\n size_t *utf8_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf8_string_with_index)(\n intptr_t *instance,\n uint8_t *utf8_string,\n size_t utf8_string_size,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf16_string_with_index)(\n intptr_t *instance,\n const uint16_t *utf16_string,\n size_t utf16_string_length,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf16_string_size)(\n intptr_t *instance,\n size_t *utf16_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf16_string_with_index)(\n intptr_t *instance,\n uint16_t *utf16_string,\n size_t utf16_string_size,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf32_string_with_index)(\n intptr_t *instance,\n const uint32_t *utf32_string,\n size_t utf32_string_length,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf32_string_size)(\n intptr_t *instance,\n size_t *utf32_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf32_string_with_index)(\n intptr_t *instance,\n uint32_t *utf32_string,\n size_t utf32_string_size,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfvalue_internal_value_t *internal_value = NULL;\n\tstatic char *function = \"libfvalue_value_initialize\";\n\n\tif( value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *value != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid value value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( type_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid type string\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_value = memory_allocate_structure(\n\t libfvalue_internal_value_t );\n\n\tif( internal_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create value.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_value,\n\t 0,\n\t sizeof( libfvalue_internal_value_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear value.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_value );\n\n\t\treturn( -1 );\n\t}\n\tif( free_instance != NULL )\n\t{\n\t\tif( libcdata_array_initialize(\n\t\t &( internal_value->value_instances ),\n\t\t 1,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create value instances array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( data_handle == NULL )\n\t{\n\n\t\tif( libfvalue_data_handle_initialize(\n\t\t &( internal_value->data_handle ),\n\t\t NULL,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tinternal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;\n\t}\n\telse\n\t{\n\t\tinternal_value->data_handle = data_handle;\n\t}\n\tinternal_value->type_string = type_string;\n\tinternal_value->type_description = type_description;\n\n\tinternal_value->initialize_instance = initialize_instance;\n\tinternal_value->free_instance = free_instance;\n\tinternal_value->clone_instance = clone_instance;\n\n\tinternal_value->copy_from_byte_stream = copy_from_byte_stream;\n\tinternal_value->copy_to_byte_stream = copy_to_byte_stream;\n\n\tinternal_value->copy_from_integer = copy_from_integer;\n\tinternal_value->copy_to_integer = copy_to_integer;\n\n\tinternal_value->copy_from_floating_point = copy_from_floating_point;\n\tinternal_value->copy_to_floating_point = copy_to_floating_point;\n\n\tinternal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;\n\tinternal_value->get_utf8_string_size = get_utf8_string_size;\n\tinternal_value->copy_to_utf8_string_with_index = copy_to_utf8_string_with_index;\n\n\tinternal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;\n\tinternal_value->get_utf16_string_size = get_utf16_string_size;\n\tinternal_value->copy_to_utf16_string_with_index = copy_to_utf16_string_with_index;\n\n\tinternal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;\n\tinternal_value->get_utf32_string_size = get_utf32_string_size;\n\tinternal_value->copy_to_utf32_string_with_index = copy_to_utf32_string_with_index;\n\n\tinternal_value->flags |= flags;\n\n\t*value = (libfvalue_value_t *) internal_value;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_value != NULL )\n\t{\n\t\tif( internal_value->value_instances != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_value->value_instances ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_value );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "libfvalue_data_handle_t", "value": "21718765"}}, "error": {"value": null}, "flags": {"value": "0 '\\000'"}, "type_description": {"value": "0x7ffff7caad24 \"A\\211\\301\\351\\202\\376\\377\\377\\017\\037@\""}, "type_string": {"value": null}, "value": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffda50", "value": {"type_category": "unknown", "concrete_type": "libfvalue_value_t", "value": "66570244592322645"}}}}, "Variable Values Before Statement": {"copy_from_utf16_string_with_index": "{int (intptr_t *, const uint16_t *, size_t, size_t *, uint32_t, libcerror_error_t **)} 0x685330 "}, "Value After Statement Execution": "{int (intptr_t *, const uint16_t *, size_t, size_t *, uint32_t, libcerror_error_t **)} 0x685330 ", "Block_Size": 233, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvalue_value_initialize(\n libfvalue_value_t **value,\n const char *type_string,\n const char *type_description,\n libfvalue_data_handle_t *data_handle,\n int (*initialize_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*free_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*clone_instance)(\n intptr_t **destination_instance,\n intptr_t *source_instance,\n libcerror_error_t **error ),\n int (*copy_from_byte_stream)(\n intptr_t *instance,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_to_byte_stream)(\n intptr_t *instance,\n uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_from_integer)(\n intptr_t *instance,\n uint64_t integer_value,\n size_t integer_value_size,\n libcerror_error_t **error ),\n int (*copy_to_integer)(\n intptr_t *instance,\n uint64_t *integer_value,\n size_t *integer_value_size,\n libcerror_error_t **error ),\n int (*copy_from_floating_point)(\n intptr_t *instance,\n double floating_point_value,\n size_t floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_to_floating_point)(\n intptr_t *instance,\n double *floating_point_value,\n size_t *floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_from_utf8_string_with_index)(\n intptr_t *instance,\n const uint8_t *utf8_string,\n size_t utf8_string_length,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf8_string_size)(\n intptr_t *instance,\n size_t *utf8_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf8_string_with_index)(\n intptr_t *instance,\n uint8_t *utf8_string,\n size_t utf8_string_size,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf16_string_with_index)(\n intptr_t *instance,\n const uint16_t *utf16_string,\n size_t utf16_string_length,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf16_string_size)(\n intptr_t *instance,\n size_t *utf16_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf16_string_with_index)(\n intptr_t *instance,\n uint16_t *utf16_string,\n size_t utf16_string_size,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf32_string_with_index)(\n intptr_t *instance,\n const uint32_t *utf32_string,\n size_t utf32_string_length,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf32_string_size)(\n intptr_t *instance,\n size_t *utf32_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf32_string_with_index)(\n intptr_t *instance,\n uint32_t *utf32_string,\n size_t utf32_string_size,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfvalue_internal_value_t *internal_value = NULL;\n\tstatic char *function = \"libfvalue_value_initialize\";\n\n\tif( value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *value != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid value value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( type_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid type string\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_value = memory_allocate_structure(\n\t libfvalue_internal_value_t );\n\n\tif( internal_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create value.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_value,\n\t 0,\n\t sizeof( libfvalue_internal_value_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear value.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_value );\n\n\t\treturn( -1 );\n\t}\n\tif( free_instance != NULL )\n\t{\n\t\tif( libcdata_array_initialize(\n\t\t &( internal_value->value_instances ),\n\t\t 1,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create value instances array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( data_handle == NULL )\n\t{\n\n\t\tif( libfvalue_data_handle_initialize(\n\t\t &( internal_value->data_handle ),\n\t\t NULL,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tinternal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;\n\t}\n\telse\n\t{\n\t\tinternal_value->data_handle = data_handle;\n\t}\n\tinternal_value->type_string = type_string;\n\tinternal_value->type_description = type_description;\n\n\tinternal_value->initialize_instance = initialize_instance;\n\tinternal_value->free_instance = free_instance;\n\tinternal_value->clone_instance = clone_instance;\n\n\tinternal_value->copy_from_byte_stream = copy_from_byte_stream;\n\tinternal_value->copy_to_byte_stream = copy_to_byte_stream;\n\n\tinternal_value->copy_from_integer = copy_from_integer;\n\tinternal_value->copy_to_integer = copy_to_integer;\n\n\tinternal_value->copy_from_floating_point = copy_from_floating_point;\n\tinternal_value->copy_to_floating_point = copy_to_floating_point;\n\n\tinternal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;\n\tinternal_value->get_utf8_string_size = get_utf8_string_size;\n\tinternal_value->copy_to_utf8_string_with_index = copy_to_utf8_string_with_index;\n\n\tinternal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;\n\tinternal_value->get_utf16_string_size = get_utf16_string_size;\n\tinternal_value->copy_to_utf16_string_with_index = copy_to_utf16_string_with_index;\n\n\tinternal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;\n\tinternal_value->get_utf32_string_size = get_utf32_string_size;\n\tinternal_value->copy_to_utf32_string_with_index = copy_to_utf32_string_with_index;\n\n\tinternal_value->flags |= flags;\n\n\t*value = (libfvalue_value_t *) internal_value;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_value != NULL )\n\t{\n\t\tif( internal_value->value_instances != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_value->value_instances ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_value );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_value->get_utf16_string_size = get_utf16_string_size;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "libfvalue_data_handle_t", "value": "21718765"}}, "error": {"value": null}, "flags": {"value": "0 '\\000'"}, "type_description": {"value": "0x7ffff7caad24 \"A\\211\\301\\351\\202\\376\\377\\377\\017\\037@\""}, "type_string": {"value": null}, "value": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffda50", "value": {"type_category": "unknown", "concrete_type": "libfvalue_value_t", "value": "66570244592322645"}}}}, "Variable Values Before Statement": {"get_utf16_string_size": "{int (intptr_t *, size_t *, uint32_t, libcerror_error_t **)} 0x686100 "}, "Value After Statement Execution": "{int (intptr_t *, size_t *, uint32_t, libcerror_error_t **)} 0x686100 ", "Block_Size": 234, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvalue_value_initialize(\n libfvalue_value_t **value,\n const char *type_string,\n const char *type_description,\n libfvalue_data_handle_t *data_handle,\n int (*initialize_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*free_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*clone_instance)(\n intptr_t **destination_instance,\n intptr_t *source_instance,\n libcerror_error_t **error ),\n int (*copy_from_byte_stream)(\n intptr_t *instance,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_to_byte_stream)(\n intptr_t *instance,\n uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_from_integer)(\n intptr_t *instance,\n uint64_t integer_value,\n size_t integer_value_size,\n libcerror_error_t **error ),\n int (*copy_to_integer)(\n intptr_t *instance,\n uint64_t *integer_value,\n size_t *integer_value_size,\n libcerror_error_t **error ),\n int (*copy_from_floating_point)(\n intptr_t *instance,\n double floating_point_value,\n size_t floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_to_floating_point)(\n intptr_t *instance,\n double *floating_point_value,\n size_t *floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_from_utf8_string_with_index)(\n intptr_t *instance,\n const uint8_t *utf8_string,\n size_t utf8_string_length,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf8_string_size)(\n intptr_t *instance,\n size_t *utf8_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf8_string_with_index)(\n intptr_t *instance,\n uint8_t *utf8_string,\n size_t utf8_string_size,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf16_string_with_index)(\n intptr_t *instance,\n const uint16_t *utf16_string,\n size_t utf16_string_length,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf16_string_size)(\n intptr_t *instance,\n size_t *utf16_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf16_string_with_index)(\n intptr_t *instance,\n uint16_t *utf16_string,\n size_t utf16_string_size,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf32_string_with_index)(\n intptr_t *instance,\n const uint32_t *utf32_string,\n size_t utf32_string_length,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf32_string_size)(\n intptr_t *instance,\n size_t *utf32_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf32_string_with_index)(\n intptr_t *instance,\n uint32_t *utf32_string,\n size_t utf32_string_size,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfvalue_internal_value_t *internal_value = NULL;\n\tstatic char *function = \"libfvalue_value_initialize\";\n\n\tif( value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *value != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid value value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( type_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid type string\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_value = memory_allocate_structure(\n\t libfvalue_internal_value_t );\n\n\tif( internal_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create value.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_value,\n\t 0,\n\t sizeof( libfvalue_internal_value_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear value.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_value );\n\n\t\treturn( -1 );\n\t}\n\tif( free_instance != NULL )\n\t{\n\t\tif( libcdata_array_initialize(\n\t\t &( internal_value->value_instances ),\n\t\t 1,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create value instances array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( data_handle == NULL )\n\t{\n\n\t\tif( libfvalue_data_handle_initialize(\n\t\t &( internal_value->data_handle ),\n\t\t NULL,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tinternal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;\n\t}\n\telse\n\t{\n\t\tinternal_value->data_handle = data_handle;\n\t}\n\tinternal_value->type_string = type_string;\n\tinternal_value->type_description = type_description;\n\n\tinternal_value->initialize_instance = initialize_instance;\n\tinternal_value->free_instance = free_instance;\n\tinternal_value->clone_instance = clone_instance;\n\n\tinternal_value->copy_from_byte_stream = copy_from_byte_stream;\n\tinternal_value->copy_to_byte_stream = copy_to_byte_stream;\n\n\tinternal_value->copy_from_integer = copy_from_integer;\n\tinternal_value->copy_to_integer = copy_to_integer;\n\n\tinternal_value->copy_from_floating_point = copy_from_floating_point;\n\tinternal_value->copy_to_floating_point = copy_to_floating_point;\n\n\tinternal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;\n\tinternal_value->get_utf8_string_size = get_utf8_string_size;\n\tinternal_value->copy_to_utf8_string_with_index = copy_to_utf8_string_with_index;\n\n\tinternal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;\n\tinternal_value->get_utf16_string_size = get_utf16_string_size;\n\tinternal_value->copy_to_utf16_string_with_index = copy_to_utf16_string_with_index;\n\n\tinternal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;\n\tinternal_value->get_utf32_string_size = get_utf32_string_size;\n\tinternal_value->copy_to_utf32_string_with_index = copy_to_utf32_string_with_index;\n\n\tinternal_value->flags |= flags;\n\n\t*value = (libfvalue_value_t *) internal_value;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_value != NULL )\n\t{\n\t\tif( internal_value->value_instances != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_value->value_instances ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_value );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "libfvalue_data_handle_t", "value": "21718765"}}, "error": {"value": null}, "flags": {"value": "0 '\\000'"}, "type_description": {"value": "0x7ffff7caad24 \"A\\211\\301\\351\\202\\376\\377\\377\\017\\037@\""}, "type_string": {"value": null}, "value": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffda50", "value": {"type_category": "unknown", "concrete_type": "libfvalue_value_t", "value": "66570244592322645"}}}}, "Variable Values Before Statement": {"copy_from_utf32_string_with_index": "{int (intptr_t *, const uint32_t *, size_t, size_t *, uint32_t, libcerror_error_t **)} 0x6874f0 "}, "Value After Statement Execution": "{int (intptr_t *, const uint32_t *, size_t, size_t *, uint32_t, libcerror_error_t **)} 0x6874f0 ", "Block_Size": 237, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfvalue_value_initialize(\n libfvalue_value_t **value,\n const char *type_string,\n const char *type_description,\n libfvalue_data_handle_t *data_handle,\n int (*initialize_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*free_instance)(\n intptr_t **instance,\n libcerror_error_t **error ),\n int (*clone_instance)(\n intptr_t **destination_instance,\n intptr_t *source_instance,\n libcerror_error_t **error ),\n int (*copy_from_byte_stream)(\n intptr_t *instance,\n const uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_to_byte_stream)(\n intptr_t *instance,\n uint8_t *byte_stream,\n size_t byte_stream_size,\n int encoding,\n libcerror_error_t **error ),\n int (*copy_from_integer)(\n intptr_t *instance,\n uint64_t integer_value,\n size_t integer_value_size,\n libcerror_error_t **error ),\n int (*copy_to_integer)(\n intptr_t *instance,\n uint64_t *integer_value,\n size_t *integer_value_size,\n libcerror_error_t **error ),\n int (*copy_from_floating_point)(\n intptr_t *instance,\n double floating_point_value,\n size_t floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_to_floating_point)(\n intptr_t *instance,\n double *floating_point_value,\n size_t *floating_point_value_size,\n libcerror_error_t **error ),\n int (*copy_from_utf8_string_with_index)(\n intptr_t *instance,\n const uint8_t *utf8_string,\n size_t utf8_string_length,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf8_string_size)(\n intptr_t *instance,\n size_t *utf8_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf8_string_with_index)(\n intptr_t *instance,\n uint8_t *utf8_string,\n size_t utf8_string_size,\n size_t *utf8_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf16_string_with_index)(\n intptr_t *instance,\n const uint16_t *utf16_string,\n size_t utf16_string_length,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf16_string_size)(\n intptr_t *instance,\n size_t *utf16_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf16_string_with_index)(\n intptr_t *instance,\n uint16_t *utf16_string,\n size_t utf16_string_size,\n size_t *utf16_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_from_utf32_string_with_index)(\n intptr_t *instance,\n const uint32_t *utf32_string,\n size_t utf32_string_length,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*get_utf32_string_size)(\n intptr_t *instance,\n size_t *utf32_string_size,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n int (*copy_to_utf32_string_with_index)(\n intptr_t *instance,\n uint32_t *utf32_string,\n size_t utf32_string_size,\n size_t *utf32_string_index,\n uint32_t string_format_flags,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfvalue_internal_value_t *internal_value = NULL;\n\tstatic char *function = \"libfvalue_value_initialize\";\n\n\tif( value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *value != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid value value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( type_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid type string\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_value = memory_allocate_structure(\n\t libfvalue_internal_value_t );\n\n\tif( internal_value == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create value.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_value,\n\t 0,\n\t sizeof( libfvalue_internal_value_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear value.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_value );\n\n\t\treturn( -1 );\n\t}\n\tif( free_instance != NULL )\n\t{\n\t\tif( libcdata_array_initialize(\n\t\t &( internal_value->value_instances ),\n\t\t 1,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create value instances array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( data_handle == NULL )\n\t{\n\n\t\tif( libfvalue_data_handle_initialize(\n\t\t &( internal_value->data_handle ),\n\t\t NULL,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tinternal_value->flags |= LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED;\n\t}\n\telse\n\t{\n\t\tinternal_value->data_handle = data_handle;\n\t}\n\tinternal_value->type_string = type_string;\n\tinternal_value->type_description = type_description;\n\n\tinternal_value->initialize_instance = initialize_instance;\n\tinternal_value->free_instance = free_instance;\n\tinternal_value->clone_instance = clone_instance;\n\n\tinternal_value->copy_from_byte_stream = copy_from_byte_stream;\n\tinternal_value->copy_to_byte_stream = copy_to_byte_stream;\n\n\tinternal_value->copy_from_integer = copy_from_integer;\n\tinternal_value->copy_to_integer = copy_to_integer;\n\n\tinternal_value->copy_from_floating_point = copy_from_floating_point;\n\tinternal_value->copy_to_floating_point = copy_to_floating_point;\n\n\tinternal_value->copy_from_utf8_string_with_index = copy_from_utf8_string_with_index;\n\tinternal_value->get_utf8_string_size = get_utf8_string_size;\n\tinternal_value->copy_to_utf8_string_with_index = copy_to_utf8_string_with_index;\n\n\tinternal_value->copy_from_utf16_string_with_index = copy_from_utf16_string_with_index;\n\tinternal_value->get_utf16_string_size = get_utf16_string_size;\n\tinternal_value->copy_to_utf16_string_with_index = copy_to_utf16_string_with_index;\n\n\tinternal_value->copy_from_utf32_string_with_index = copy_from_utf32_string_with_index;\n\tinternal_value->get_utf32_string_size = get_utf32_string_size;\n\tinternal_value->copy_to_utf32_string_with_index = copy_to_utf32_string_with_index;\n\n\tinternal_value->flags |= flags;\n\n\t*value = (libfvalue_value_t *) internal_value;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_value != NULL )\n\t{\n\t\tif( internal_value->value_instances != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_value->value_instances ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_value );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_value->get_utf32_string_size = get_utf32_string_size;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "libfvalue_data_handle_t", "value": "21718765"}}, "error": {"value": null}, "flags": {"value": "0 '\\000'"}, "type_description": {"value": "0x7ffff7caad24 \"A\\211\\301\\351\\202\\376\\377\\377\\017\\037@\""}, "type_string": {"value": null}, "value": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffda50", "value": {"type_category": "unknown", "concrete_type": "libfvalue_value_t", "value": "66570244592322645"}}}}, "Variable Values Before Statement": {"get_utf32_string_size": "{int (intptr_t *, size_t *, uint32_t, libcerror_error_t **)} 0x6882c0 "}, "Value After Statement Execution": "{int (intptr_t *, size_t *, uint32_t, libcerror_error_t **)} 0x6882c0 ", "Block_Size": 238, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_segment_file_initialize(\n libewf_segment_file_t **segment_file,\n libewf_io_handle_t *io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_segment_file_initialize\";\n\n\tif( segment_file == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid segment file.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *segment_file != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid segment file value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*segment_file = memory_allocate_structure(\n\t libewf_segment_file_t );\n\n\tif( *segment_file == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create segment file.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *segment_file,\n\t 0,\n\t sizeof( libewf_segment_file_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear segment file.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *segment_file );\n\n\t\t*segment_file = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libfdata_list_initialize(\n\t &( ( *segment_file )->sections_list ),\n\t (intptr_t *) *segment_file,\n\t NULL,\n\t NULL,\n\t (int (*)(intptr_t *, intptr_t *, libfdata_list_element_t *, libfdata_cache_t *, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)) &libewf_segment_file_read_section_element_data,\n\t NULL,\n\t LIBFDATA_DATA_HANDLE_FLAG_NON_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create sections list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfdata_list_initialize(\n\t &( ( *segment_file )->chunk_groups_list ),\n\t (intptr_t *) *segment_file,\n\t NULL,\n\t NULL,\n\t (int (*)(intptr_t *, intptr_t *, libfdata_list_element_t *, libfdata_cache_t *, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)) &libewf_segment_file_read_chunk_group_element_data,\n\t NULL,\n\t LIBFDATA_DATA_HANDLE_FLAG_NON_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create chunk groups list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfcache_cache_initialize(\n\t &( ( *segment_file )->chunk_groups_cache ),\n\t LIBEWF_MAXIMUM_CACHE_ENTRIES_CHUNK_GROUPS,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create chunk groups cache.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *segment_file )->io_handle = io_handle;\n\t( *segment_file )->device_information_section_index = -1;\n\t( *segment_file )->previous_last_chunk_filled = -1;\n\t( *segment_file )->last_chunk_filled = -1;\n\t( *segment_file )->last_chunk_compared = -1;\n\n\treturn( 1 );\n\non_error:\n\tif( *segment_file != NULL )\n\t{\n\t\tif( ( *segment_file )->chunk_groups_list != NULL )\n\t\t{\n\t\t\tlibfdata_list_free(\n\t\t\t &( ( *segment_file )->chunk_groups_list ),\n\t\t\t NULL );\n\t\t}\n\t\tif( ( *segment_file )->sections_list != NULL )\n\t\t{\n\t\t\tlibfdata_list_free(\n\t\t\t &( ( *segment_file )->sections_list ),\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t *segment_file );\n\n\t\t*segment_file = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *segment_file )->io_handle = io_handle;", "Function Input": {"error": {"value": null}, "io_handle": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"access_flags": {"type_category": "int", "concrete_type": "int", "value": "1"}, "segment_file_type": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "format": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "major_version": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "minor_version": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "compression_method": {"type_category": "unknown", "concrete_type": "uint16_t", "value": "0"}, "compression_level": {"type_category": "unknown", "concrete_type": "int8_t", "value": "0 '\\000'"}, "compression_flags": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "is_encrypted": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "chunk_size": {"type_category": "unknown", "concrete_type": "size32_t", "value": "0"}, "zero_on_error": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "header_codepage": {"type_category": "int", "concrete_type": "int", "value": "0"}, "abort": {"type_category": "int", "concrete_type": "int", "value": "0"}}}}, "segment_file": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x124a0b0", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1\n", "message": "Cannot access memory at address 0x1"}}}}, "Variable Values Before Statement": {"io_handle": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 124, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_segment_file_initialize(\n libewf_segment_file_t **segment_file,\n libewf_io_handle_t *io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_segment_file_initialize\";\n\n\tif( segment_file == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid segment file.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *segment_file != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid segment file value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*segment_file = memory_allocate_structure(\n\t libewf_segment_file_t );\n\n\tif( *segment_file == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create segment file.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *segment_file,\n\t 0,\n\t sizeof( libewf_segment_file_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear segment file.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *segment_file );\n\n\t\t*segment_file = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libfdata_list_initialize(\n\t &( ( *segment_file )->sections_list ),\n\t (intptr_t *) *segment_file,\n\t NULL,\n\t NULL,\n\t (int (*)(intptr_t *, intptr_t *, libfdata_list_element_t *, libfdata_cache_t *, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)) &libewf_segment_file_read_section_element_data,\n\t NULL,\n\t LIBFDATA_DATA_HANDLE_FLAG_NON_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create sections list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfdata_list_initialize(\n\t &( ( *segment_file )->chunk_groups_list ),\n\t (intptr_t *) *segment_file,\n\t NULL,\n\t NULL,\n\t (int (*)(intptr_t *, intptr_t *, libfdata_list_element_t *, libfdata_cache_t *, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)) &libewf_segment_file_read_chunk_group_element_data,\n\t NULL,\n\t LIBFDATA_DATA_HANDLE_FLAG_NON_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create chunk groups list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfcache_cache_initialize(\n\t &( ( *segment_file )->chunk_groups_cache ),\n\t LIBEWF_MAXIMUM_CACHE_ENTRIES_CHUNK_GROUPS,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create chunk groups cache.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *segment_file )->io_handle = io_handle;\n\t( *segment_file )->device_information_section_index = -1;\n\t( *segment_file )->previous_last_chunk_filled = -1;\n\t( *segment_file )->last_chunk_filled = -1;\n\t( *segment_file )->last_chunk_compared = -1;\n\n\treturn( 1 );\n\non_error:\n\tif( *segment_file != NULL )\n\t{\n\t\tif( ( *segment_file )->chunk_groups_list != NULL )\n\t\t{\n\t\t\tlibfdata_list_free(\n\t\t\t &( ( *segment_file )->chunk_groups_list ),\n\t\t\t NULL );\n\t\t}\n\t\tif( ( *segment_file )->sections_list != NULL )\n\t\t{\n\t\t\tlibfdata_list_free(\n\t\t\t &( ( *segment_file )->sections_list ),\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t *segment_file );\n\n\t\t*segment_file = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *segment_file )->device_information_section_index = -1;", "Function Input": {"error": {"value": null}, "io_handle": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"access_flags": {"type_category": "int", "concrete_type": "int", "value": "1"}, "segment_file_type": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "format": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "major_version": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "minor_version": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "compression_method": {"type_category": "unknown", "concrete_type": "uint16_t", "value": "0"}, "compression_level": {"type_category": "unknown", "concrete_type": "int8_t", "value": "0 '\\000'"}, "compression_flags": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "is_encrypted": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "chunk_size": {"type_category": "unknown", "concrete_type": "size32_t", "value": "0"}, "zero_on_error": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "header_codepage": {"type_category": "int", "concrete_type": "int", "value": "0"}, "abort": {"type_category": "int", "concrete_type": "int", "value": "0"}}}}, "segment_file": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x124a0b0", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1\n", "message": "Cannot access memory at address 0x1"}}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 125, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_segment_file_initialize(\n libewf_segment_file_t **segment_file,\n libewf_io_handle_t *io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_segment_file_initialize\";\n\n\tif( segment_file == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid segment file.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *segment_file != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid segment file value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*segment_file = memory_allocate_structure(\n\t libewf_segment_file_t );\n\n\tif( *segment_file == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create segment file.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *segment_file,\n\t 0,\n\t sizeof( libewf_segment_file_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear segment file.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *segment_file );\n\n\t\t*segment_file = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libfdata_list_initialize(\n\t &( ( *segment_file )->sections_list ),\n\t (intptr_t *) *segment_file,\n\t NULL,\n\t NULL,\n\t (int (*)(intptr_t *, intptr_t *, libfdata_list_element_t *, libfdata_cache_t *, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)) &libewf_segment_file_read_section_element_data,\n\t NULL,\n\t LIBFDATA_DATA_HANDLE_FLAG_NON_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create sections list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfdata_list_initialize(\n\t &( ( *segment_file )->chunk_groups_list ),\n\t (intptr_t *) *segment_file,\n\t NULL,\n\t NULL,\n\t (int (*)(intptr_t *, intptr_t *, libfdata_list_element_t *, libfdata_cache_t *, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)) &libewf_segment_file_read_chunk_group_element_data,\n\t NULL,\n\t LIBFDATA_DATA_HANDLE_FLAG_NON_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create chunk groups list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfcache_cache_initialize(\n\t &( ( *segment_file )->chunk_groups_cache ),\n\t LIBEWF_MAXIMUM_CACHE_ENTRIES_CHUNK_GROUPS,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create chunk groups cache.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *segment_file )->io_handle = io_handle;\n\t( *segment_file )->device_information_section_index = -1;\n\t( *segment_file )->previous_last_chunk_filled = -1;\n\t( *segment_file )->last_chunk_filled = -1;\n\t( *segment_file )->last_chunk_compared = -1;\n\n\treturn( 1 );\n\non_error:\n\tif( *segment_file != NULL )\n\t{\n\t\tif( ( *segment_file )->chunk_groups_list != NULL )\n\t\t{\n\t\t\tlibfdata_list_free(\n\t\t\t &( ( *segment_file )->chunk_groups_list ),\n\t\t\t NULL );\n\t\t}\n\t\tif( ( *segment_file )->sections_list != NULL )\n\t\t{\n\t\t\tlibfdata_list_free(\n\t\t\t &( ( *segment_file )->sections_list ),\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t *segment_file );\n\n\t\t*segment_file = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *segment_file )->previous_last_chunk_filled = -1;", "Function Input": {"error": {"value": null}, "io_handle": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"access_flags": {"type_category": "int", "concrete_type": "int", "value": "1"}, "segment_file_type": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "format": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "major_version": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "minor_version": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "compression_method": {"type_category": "unknown", "concrete_type": "uint16_t", "value": "0"}, "compression_level": {"type_category": "unknown", "concrete_type": "int8_t", "value": "0 '\\000'"}, "compression_flags": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "is_encrypted": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "chunk_size": {"type_category": "unknown", "concrete_type": "size32_t", "value": "0"}, "zero_on_error": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "header_codepage": {"type_category": "int", "concrete_type": "int", "value": "0"}, "abort": {"type_category": "int", "concrete_type": "int", "value": "0"}}}}, "segment_file": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x124a0b0", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1\n", "message": "Cannot access memory at address 0x1"}}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 126, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libewf_segment_file_initialize(\n libewf_segment_file_t **segment_file,\n libewf_io_handle_t *io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libewf_segment_file_initialize\";\n\n\tif( segment_file == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid segment file.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *segment_file != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid segment file value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*segment_file = memory_allocate_structure(\n\t libewf_segment_file_t );\n\n\tif( *segment_file == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create segment file.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *segment_file,\n\t 0,\n\t sizeof( libewf_segment_file_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear segment file.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *segment_file );\n\n\t\t*segment_file = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libfdata_list_initialize(\n\t &( ( *segment_file )->sections_list ),\n\t (intptr_t *) *segment_file,\n\t NULL,\n\t NULL,\n\t (int (*)(intptr_t *, intptr_t *, libfdata_list_element_t *, libfdata_cache_t *, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)) &libewf_segment_file_read_section_element_data,\n\t NULL,\n\t LIBFDATA_DATA_HANDLE_FLAG_NON_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create sections list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfdata_list_initialize(\n\t &( ( *segment_file )->chunk_groups_list ),\n\t (intptr_t *) *segment_file,\n\t NULL,\n\t NULL,\n\t (int (*)(intptr_t *, intptr_t *, libfdata_list_element_t *, libfdata_cache_t *, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)) &libewf_segment_file_read_chunk_group_element_data,\n\t NULL,\n\t LIBFDATA_DATA_HANDLE_FLAG_NON_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create chunk groups list.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfcache_cache_initialize(\n\t &( ( *segment_file )->chunk_groups_cache ),\n\t LIBEWF_MAXIMUM_CACHE_ENTRIES_CHUNK_GROUPS,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create chunk groups cache.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *segment_file )->io_handle = io_handle;\n\t( *segment_file )->device_information_section_index = -1;\n\t( *segment_file )->previous_last_chunk_filled = -1;\n\t( *segment_file )->last_chunk_filled = -1;\n\t( *segment_file )->last_chunk_compared = -1;\n\n\treturn( 1 );\n\non_error:\n\tif( *segment_file != NULL )\n\t{\n\t\tif( ( *segment_file )->chunk_groups_list != NULL )\n\t\t{\n\t\t\tlibfdata_list_free(\n\t\t\t &( ( *segment_file )->chunk_groups_list ),\n\t\t\t NULL );\n\t\t}\n\t\tif( ( *segment_file )->sections_list != NULL )\n\t\t{\n\t\t\tlibfdata_list_free(\n\t\t\t &( ( *segment_file )->sections_list ),\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t *segment_file );\n\n\t\t*segment_file = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *segment_file )->last_chunk_filled = -1;", "Function Input": {"error": {"value": null}, "io_handle": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"access_flags": {"type_category": "int", "concrete_type": "int", "value": "1"}, "segment_file_type": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "format": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "major_version": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "minor_version": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "compression_method": {"type_category": "unknown", "concrete_type": "uint16_t", "value": "0"}, "compression_level": {"type_category": "unknown", "concrete_type": "int8_t", "value": "0 '\\000'"}, "compression_flags": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "is_encrypted": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "chunk_size": {"type_category": "unknown", "concrete_type": "size32_t", "value": "0"}, "zero_on_error": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "0 '\\000'"}, "header_codepage": {"type_category": "int", "concrete_type": "int", "value": "0"}, "abort": {"type_category": "int", "concrete_type": "int", "value": "0"}}}}, "segment_file": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x124a0b0", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1\n", "message": "Cannot access memory at address 0x1"}}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 127, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfmapi_checksum_calculate_weak_crc32(\n uint32_t *checksum,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfmapi_checksum_calculate_weak_crc32\";\n\tsize_t buffer_offset = 0;\n\tuint32_t safe_checksum = 0;\n\tuint32_t table_index = 0;\n\n\tif( checksum == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n if( libfmapi_checksum_crc32_table_computed == 0 )\n\t{\n\t\tlibfmapi_checksum_initialize_crc32_table(\n\t\t 0xedb88320UL );\n\t}\n\tsafe_checksum = initial_value;\n\n for( buffer_offset = 0;\n\t buffer_offset < size;\n\t buffer_offset++ )\n\t{\n\t\ttable_index = ( safe_checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL;\n\n\t\tsafe_checksum = libfmapi_checksum_crc32_table[ table_index ] ^ ( safe_checksum >> 8 );\n }\n\t*checksum = safe_checksum;\n\n return( 1 );\n}", "Selected Statement": "static char *function = \"libfmapi_checksum_calculate_weak_crc32\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"libfmapi_checksum_calculate_weak_crc32\""}, "Value After Statement Execution": "\"libfmapi_checksum_calculate_weak_crc32\"", "Block_Size": 6, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfmapi_checksum_calculate_weak_crc32(\n uint32_t *checksum,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfmapi_checksum_calculate_weak_crc32\";\n\tsize_t buffer_offset = 0;\n\tuint32_t safe_checksum = 0;\n\tuint32_t table_index = 0;\n\n\tif( checksum == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n if( libfmapi_checksum_crc32_table_computed == 0 )\n\t{\n\t\tlibfmapi_checksum_initialize_crc32_table(\n\t\t 0xedb88320UL );\n\t}\n\tsafe_checksum = initial_value;\n\n for( buffer_offset = 0;\n\t buffer_offset < size;\n\t buffer_offset++ )\n\t{\n\t\ttable_index = ( safe_checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL;\n\n\t\tsafe_checksum = libfmapi_checksum_crc32_table[ table_index ] ^ ( safe_checksum >> 8 );\n }\n\t*checksum = safe_checksum;\n\n return( 1 );\n}", "Selected Statement": "size_t buffer_offset = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 7, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfmapi_checksum_calculate_weak_crc32(\n uint32_t *checksum,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfmapi_checksum_calculate_weak_crc32\";\n\tsize_t buffer_offset = 0;\n\tuint32_t safe_checksum = 0;\n\tuint32_t table_index = 0;\n\n\tif( checksum == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n if( libfmapi_checksum_crc32_table_computed == 0 )\n\t{\n\t\tlibfmapi_checksum_initialize_crc32_table(\n\t\t 0xedb88320UL );\n\t}\n\tsafe_checksum = initial_value;\n\n for( buffer_offset = 0;\n\t buffer_offset < size;\n\t buffer_offset++ )\n\t{\n\t\ttable_index = ( safe_checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL;\n\n\t\tsafe_checksum = libfmapi_checksum_crc32_table[ table_index ] ^ ( safe_checksum >> 8 );\n }\n\t*checksum = safe_checksum;\n\n return( 1 );\n}", "Selected Statement": "uint32_t safe_checksum = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 8, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfmapi_checksum_calculate_weak_crc32(\n uint32_t *checksum,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfmapi_checksum_calculate_weak_crc32\";\n\tsize_t buffer_offset = 0;\n\tuint32_t safe_checksum = 0;\n\tuint32_t table_index = 0;\n\n\tif( checksum == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n if( libfmapi_checksum_crc32_table_computed == 0 )\n\t{\n\t\tlibfmapi_checksum_initialize_crc32_table(\n\t\t 0xedb88320UL );\n\t}\n\tsafe_checksum = initial_value;\n\n for( buffer_offset = 0;\n\t buffer_offset < size;\n\t buffer_offset++ )\n\t{\n\t\ttable_index = ( safe_checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL;\n\n\t\tsafe_checksum = libfmapi_checksum_crc32_table[ table_index ] ^ ( safe_checksum >> 8 );\n }\n\t*checksum = safe_checksum;\n\n return( 1 );\n}", "Selected Statement": "for( buffer_offset = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 51, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsfat_allocation_table_initialize(\n libfsfat_allocation_table_t **allocation_table,\n uint32_t total_number_of_clusters,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsfat_allocation_table_initialize\";\n\tsize_t cluster_numbers_data_size = 0;\n\n\tif( allocation_table == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid allocation table.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *allocation_table != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid allocation table value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( total_number_of_clusters == 0 )\n\t || ( total_number_of_clusters > (uint32_t) LIBFSFAT_MAXIMUM_NUMBER_OF_CLUSTERS_IN_FAT ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid total number of clusters value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*allocation_table = memory_allocate_structure(\n\t libfsfat_allocation_table_t );\n\n\tif( *allocation_table == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create allocation table.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *allocation_table,\n\t 0,\n\t sizeof( libfsfat_allocation_table_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear allocation table.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *allocation_table );\n\n\t\t*allocation_table = NULL;\n\n\t\treturn( -1 );\n\t}\n\tcluster_numbers_data_size = sizeof( uint32_t ) * total_number_of_clusters;\n\n\t( *allocation_table )->cluster_numbers = (uint32_t *) memory_allocate(\n\t cluster_numbers_data_size );\n\n\tif( ( *allocation_table )->cluster_numbers == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create cluster numbers.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *allocation_table )->number_of_cluster_numbers = total_number_of_clusters;\n\n\tif( memory_set(\n\t ( *allocation_table )->cluster_numbers,\n\t 0,\n\t cluster_numbers_data_size ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear cluster numbers.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *allocation_table != NULL )\n\t{\n\t\tif( ( *allocation_table )->cluster_numbers != NULL )\n\t\t{\n\t\t\tmemory_free(\n\t\t\t ( *allocation_table )->cluster_numbers );\n\t\t}\n\t\tmemory_free(\n\t\t *allocation_table );\n\n\t\t*allocation_table = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "static char *function = \"libfsfat_allocation_table_initialize\";", "Function Input": {"allocation_table": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffdc10", "value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"number_of_cluster_numbers": {"type_category": "int", "concrete_type": "int", "value": "-8960"}, "cluster_numbers": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffdc88", "value": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "1971963529"}}}}}}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x10960a0", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "0"}}}, "total_number_of_clusters": {"value": "0"}}, "Variable Values Before Statement": {"constant": "\"libfsfat_allocation_table_initialize\""}, "Value After Statement Execution": "\"libfsfat_allocation_table_initialize\"", "Block_Size": 4, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsfat_block_tree_node_initialize(\n libfsfat_block_tree_node_t **block_tree_node,\n off64_t offset,\n size64_t size,\n size64_t leaf_value_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsfat_block_tree_node_initialize\";\n\tsize64_t sub_node_size = 0;\n\n\tif( block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *block_tree_node != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid block tree node value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( offset < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( size == 0 )\n\t || ( size > (size64_t) ( INT64_MAX - offset ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( leaf_value_size == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid leaf value size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*block_tree_node = memory_allocate_structure(\n\t libfsfat_block_tree_node_t );\n\n\tif( *block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create block tree node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *block_tree_node,\n\t 0,\n\t sizeof( libfsfat_block_tree_node_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear block tree node.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *block_tree_node );\n\n\t\t*block_tree_node = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *block_tree_node )->sub_nodes_array ),\n\t LIBFSFAT_BLOCK_TREE_NUMBER_OF_SUB_NODES,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create sub nodes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tsub_node_size = leaf_value_size;\n\n\twhile( ( size / sub_node_size ) > LIBFSFAT_BLOCK_TREE_NUMBER_OF_SUB_NODES )\n\t{\n\t\tsub_node_size *= LIBFSFAT_BLOCK_TREE_NUMBER_OF_SUB_NODES;\n\t}\n\t( *block_tree_node )->start_offset = offset;\n\t( *block_tree_node )->end_offset = offset + size;\n\t( *block_tree_node )->size = size;\n\t( *block_tree_node )->sub_node_size = sub_node_size;\n\n\tif( sub_node_size == leaf_value_size )\n\t{\n\t\t( *block_tree_node )->is_leaf_node = 1;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *block_tree_node != NULL )\n\t{\n\t\tmemory_free(\n\t\t *block_tree_node );\n\n\t\t*block_tree_node = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "static char *function = \"libfsfat_block_tree_node_initialize\";", "Function Input": {"block_tree_node": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x204\n", "message": "Cannot access memory at address 0x204"}}, "error": {"value": null}, "leaf_value_size": {"value": "140737488345584"}, "offset": {"value": "2199023255553"}, "size": {"value": "262144"}}, "Variable Values Before Statement": {"constant": "\"libfsfat_block_tree_node_initialize\""}, "Value After Statement Execution": "\"libfsfat_block_tree_node_initialize\"", "Block_Size": 6, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsfat_block_tree_node_initialize(\n libfsfat_block_tree_node_t **block_tree_node,\n off64_t offset,\n size64_t size,\n size64_t leaf_value_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsfat_block_tree_node_initialize\";\n\tsize64_t sub_node_size = 0;\n\n\tif( block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *block_tree_node != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid block tree node value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( offset < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( size == 0 )\n\t || ( size > (size64_t) ( INT64_MAX - offset ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( leaf_value_size == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid leaf value size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*block_tree_node = memory_allocate_structure(\n\t libfsfat_block_tree_node_t );\n\n\tif( *block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create block tree node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *block_tree_node,\n\t 0,\n\t sizeof( libfsfat_block_tree_node_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear block tree node.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *block_tree_node );\n\n\t\t*block_tree_node = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *block_tree_node )->sub_nodes_array ),\n\t LIBFSFAT_BLOCK_TREE_NUMBER_OF_SUB_NODES,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create sub nodes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tsub_node_size = leaf_value_size;\n\n\twhile( ( size / sub_node_size ) > LIBFSFAT_BLOCK_TREE_NUMBER_OF_SUB_NODES )\n\t{\n\t\tsub_node_size *= LIBFSFAT_BLOCK_TREE_NUMBER_OF_SUB_NODES;\n\t}\n\t( *block_tree_node )->start_offset = offset;\n\t( *block_tree_node )->end_offset = offset + size;\n\t( *block_tree_node )->size = size;\n\t( *block_tree_node )->sub_node_size = sub_node_size;\n\n\tif( sub_node_size == leaf_value_size )\n\t{\n\t\t( *block_tree_node )->is_leaf_node = 1;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *block_tree_node != NULL )\n\t{\n\t\tmemory_free(\n\t\t *block_tree_node );\n\n\t\t*block_tree_node = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *block_tree_node )->start_offset = offset;", "Function Input": {"block_tree_node": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x204\n", "message": "Cannot access memory at address 0x204"}}, "error": {"value": null}, "leaf_value_size": {"value": "140737488345584"}, "offset": {"value": "2199023255553"}, "size": {"value": "262144"}}, "Variable Values Before Statement": {"offset": "off64_t"}, "Value After Statement Execution": "off64_t", "Block_Size": 118, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsfat_block_tree_node_initialize(\n libfsfat_block_tree_node_t **block_tree_node,\n off64_t offset,\n size64_t size,\n size64_t leaf_value_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsfat_block_tree_node_initialize\";\n\tsize64_t sub_node_size = 0;\n\n\tif( block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *block_tree_node != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid block tree node value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( offset < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( size == 0 )\n\t || ( size > (size64_t) ( INT64_MAX - offset ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( leaf_value_size == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid leaf value size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*block_tree_node = memory_allocate_structure(\n\t libfsfat_block_tree_node_t );\n\n\tif( *block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create block tree node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *block_tree_node,\n\t 0,\n\t sizeof( libfsfat_block_tree_node_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear block tree node.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *block_tree_node );\n\n\t\t*block_tree_node = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *block_tree_node )->sub_nodes_array ),\n\t LIBFSFAT_BLOCK_TREE_NUMBER_OF_SUB_NODES,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create sub nodes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tsub_node_size = leaf_value_size;\n\n\twhile( ( size / sub_node_size ) > LIBFSFAT_BLOCK_TREE_NUMBER_OF_SUB_NODES )\n\t{\n\t\tsub_node_size *= LIBFSFAT_BLOCK_TREE_NUMBER_OF_SUB_NODES;\n\t}\n\t( *block_tree_node )->start_offset = offset;\n\t( *block_tree_node )->end_offset = offset + size;\n\t( *block_tree_node )->size = size;\n\t( *block_tree_node )->sub_node_size = sub_node_size;\n\n\tif( sub_node_size == leaf_value_size )\n\t{\n\t\t( *block_tree_node )->is_leaf_node = 1;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *block_tree_node != NULL )\n\t{\n\t\tmemory_free(\n\t\t *block_tree_node );\n\n\t\t*block_tree_node = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *block_tree_node )->end_offset = offset + size;", "Function Input": {"block_tree_node": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x204\n", "message": "Cannot access memory at address 0x204"}}, "error": {"value": null}, "leaf_value_size": {"value": "140737488345584"}, "offset": {"value": "2199023255553"}, "size": {"value": "262144"}}, "Variable Values Before Statement": {"offset": "off64_t", "size": "size64_t"}, "Value After Statement Execution": "NULL", "Block_Size": 119, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsfat_block_tree_node_initialize(\n libfsfat_block_tree_node_t **block_tree_node,\n off64_t offset,\n size64_t size,\n size64_t leaf_value_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsfat_block_tree_node_initialize\";\n\tsize64_t sub_node_size = 0;\n\n\tif( block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *block_tree_node != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid block tree node value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( offset < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( size == 0 )\n\t || ( size > (size64_t) ( INT64_MAX - offset ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( leaf_value_size == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid leaf value size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*block_tree_node = memory_allocate_structure(\n\t libfsfat_block_tree_node_t );\n\n\tif( *block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create block tree node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *block_tree_node,\n\t 0,\n\t sizeof( libfsfat_block_tree_node_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear block tree node.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *block_tree_node );\n\n\t\t*block_tree_node = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *block_tree_node )->sub_nodes_array ),\n\t LIBFSFAT_BLOCK_TREE_NUMBER_OF_SUB_NODES,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create sub nodes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tsub_node_size = leaf_value_size;\n\n\twhile( ( size / sub_node_size ) > LIBFSFAT_BLOCK_TREE_NUMBER_OF_SUB_NODES )\n\t{\n\t\tsub_node_size *= LIBFSFAT_BLOCK_TREE_NUMBER_OF_SUB_NODES;\n\t}\n\t( *block_tree_node )->start_offset = offset;\n\t( *block_tree_node )->end_offset = offset + size;\n\t( *block_tree_node )->size = size;\n\t( *block_tree_node )->sub_node_size = sub_node_size;\n\n\tif( sub_node_size == leaf_value_size )\n\t{\n\t\t( *block_tree_node )->is_leaf_node = 1;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *block_tree_node != NULL )\n\t{\n\t\tmemory_free(\n\t\t *block_tree_node );\n\n\t\t*block_tree_node = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *block_tree_node )->size = size;", "Function Input": {"block_tree_node": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x204\n", "message": "Cannot access memory at address 0x204"}}, "error": {"value": null}, "leaf_value_size": {"value": "140737488345584"}, "offset": {"value": "2199023255553"}, "size": {"value": "262144"}}, "Variable Values Before Statement": {"size": "size64_t"}, "Value After Statement Execution": "size64_t", "Block_Size": 120, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsext_checksum_calculate_crc32(\n uint32_t *checksum,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsext_checksum_calculate_crc32\";\n\tsize_t buffer_offset = 0;\n\tuint32_t safe_checksum = 0;\n\tuint32_t table_index = 0;\n\n\tif( checksum == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n if( libfsext_checksum_crc32_table_computed == 0 )\n\t{\n\t\tlibfsext_checksum_initialize_crc32_table(\n\t\t 0x82f63b78UL );\n\t}\n\tsafe_checksum = initial_value ^ (uint32_t) 0xffffffffUL;\n\n for( buffer_offset = 0;\n\t buffer_offset < size;\n\t buffer_offset++ )\n\t{\n\t\ttable_index = ( safe_checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL;\n\n\t\tsafe_checksum = libfsext_checksum_crc32_table[ table_index ] ^ ( safe_checksum >> 8 );\n }\n *checksum = safe_checksum ^ 0xffffffffUL;\n\n\treturn( 1 );\n}", "Selected Statement": "static char *function = \"libfsext_checksum_calculate_crc32\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"libfsext_checksum_calculate_crc32\""}, "Value After Statement Execution": "\"libfsext_checksum_calculate_crc32\"", "Block_Size": 6, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsext_checksum_calculate_crc32(\n uint32_t *checksum,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsext_checksum_calculate_crc32\";\n\tsize_t buffer_offset = 0;\n\tuint32_t safe_checksum = 0;\n\tuint32_t table_index = 0;\n\n\tif( checksum == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n if( libfsext_checksum_crc32_table_computed == 0 )\n\t{\n\t\tlibfsext_checksum_initialize_crc32_table(\n\t\t 0x82f63b78UL );\n\t}\n\tsafe_checksum = initial_value ^ (uint32_t) 0xffffffffUL;\n\n for( buffer_offset = 0;\n\t buffer_offset < size;\n\t buffer_offset++ )\n\t{\n\t\ttable_index = ( safe_checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL;\n\n\t\tsafe_checksum = libfsext_checksum_crc32_table[ table_index ] ^ ( safe_checksum >> 8 );\n }\n *checksum = safe_checksum ^ 0xffffffffUL;\n\n\treturn( 1 );\n}", "Selected Statement": "size_t buffer_offset = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 7, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsext_checksum_calculate_crc32(\n uint32_t *checksum,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsext_checksum_calculate_crc32\";\n\tsize_t buffer_offset = 0;\n\tuint32_t safe_checksum = 0;\n\tuint32_t table_index = 0;\n\n\tif( checksum == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n if( libfsext_checksum_crc32_table_computed == 0 )\n\t{\n\t\tlibfsext_checksum_initialize_crc32_table(\n\t\t 0x82f63b78UL );\n\t}\n\tsafe_checksum = initial_value ^ (uint32_t) 0xffffffffUL;\n\n for( buffer_offset = 0;\n\t buffer_offset < size;\n\t buffer_offset++ )\n\t{\n\t\ttable_index = ( safe_checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL;\n\n\t\tsafe_checksum = libfsext_checksum_crc32_table[ table_index ] ^ ( safe_checksum >> 8 );\n }\n *checksum = safe_checksum ^ 0xffffffffUL;\n\n\treturn( 1 );\n}", "Selected Statement": "uint32_t safe_checksum = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 8, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsext_checksum_calculate_crc32(\n uint32_t *checksum,\n const uint8_t *buffer,\n size_t size,\n uint32_t initial_value,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsext_checksum_calculate_crc32\";\n\tsize_t buffer_offset = 0;\n\tuint32_t safe_checksum = 0;\n\tuint32_t table_index = 0;\n\n\tif( checksum == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checksum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( buffer == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid buffer.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n if( libfsext_checksum_crc32_table_computed == 0 )\n\t{\n\t\tlibfsext_checksum_initialize_crc32_table(\n\t\t 0x82f63b78UL );\n\t}\n\tsafe_checksum = initial_value ^ (uint32_t) 0xffffffffUL;\n\n for( buffer_offset = 0;\n\t buffer_offset < size;\n\t buffer_offset++ )\n\t{\n\t\ttable_index = ( safe_checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL;\n\n\t\tsafe_checksum = libfsext_checksum_crc32_table[ table_index ] ^ ( safe_checksum >> 8 );\n }\n *checksum = safe_checksum ^ 0xffffffffUL;\n\n\treturn( 1 );\n}", "Selected Statement": "for( buffer_offset = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 51, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libuna_utf8_string_size_from_utf8_stream(\n const uint8_t *utf8_stream,\n size_t utf8_stream_size,\n size_t *utf8_string_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libuna_utf8_string_size_from_utf8_stream\";\n\tsize_t utf8_stream_index = 0;\n\tlibuna_unicode_character_t unicode_character = 0;\n\n\tif( utf8_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid UTF-8 stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( utf8_stream_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid UTF-8 stream size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( utf8_string_size == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid UTF-8 string size.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*utf8_string_size = 0;\n\n\tif( utf8_stream_size == 0 )\n\t{\n\t\treturn( 1 );\n\t}\n\t\n\tif( utf8_stream_size >= 3 )\n\t{\n\t\tif( ( utf8_stream[ 0 ] == 0x0ef )\n\t\t && ( utf8_stream[ 1 ] == 0x0bb )\n\t\t && ( utf8_stream[ 2 ] == 0x0bf ) )\n\t\t{\n\t\t\tutf8_stream_index += 3;\n\t\t}\n\t}\n\twhile( utf8_stream_index < utf8_stream_size )\n\t{\n\t\t\n\t\tif( libuna_unicode_character_copy_from_utf8(\n\t\t &unicode_character,\n\t\t utf8_stream,\n\t\t utf8_stream_size,\n\t\t &utf8_stream_index,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t\t LIBCERROR_CONVERSION_ERROR_INPUT_FAILED,\n\t\t\t \"%s: unable to copy Unicode character from UTF-8 stream.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\t\n\t\tif( libuna_unicode_character_size_to_utf8(\n\t\t unicode_character,\n\t\t utf8_string_size,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t\t LIBCERROR_CONVERSION_ERROR_INPUT_FAILED,\n\t\t\t \"%s: unable to unable to determine size of Unicode character in UTF-8.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( unicode_character == 0 )\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\tif( unicode_character != 0 )\n\t{\n\t\t*utf8_string_size += 1;\n\t}\n\treturn( 1 );\n}", "Selected Statement": "static char *function = \"libuna_utf8_string_size_from_utf8_stream\";", "Function Input": {"error": {"value": null}, "utf8_string_size": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x200\n", "message": "Cannot access memory at address 0x200"}}}, "Variable Values Before Statement": {"constant": "\"libuna_utf8_string_size_from_utf8_stream\""}, "Value After Statement Execution": "\"libuna_utf8_string_size_from_utf8_stream\"", "Block_Size": 5, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libuna_utf8_string_size_from_utf8_stream(\n const uint8_t *utf8_stream,\n size_t utf8_stream_size,\n size_t *utf8_string_size,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libuna_utf8_string_size_from_utf8_stream\";\n\tsize_t utf8_stream_index = 0;\n\tlibuna_unicode_character_t unicode_character = 0;\n\n\tif( utf8_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid UTF-8 stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( utf8_stream_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid UTF-8 stream size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( utf8_string_size == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid UTF-8 string size.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*utf8_string_size = 0;\n\n\tif( utf8_stream_size == 0 )\n\t{\n\t\treturn( 1 );\n\t}\n\t\n\tif( utf8_stream_size >= 3 )\n\t{\n\t\tif( ( utf8_stream[ 0 ] == 0x0ef )\n\t\t && ( utf8_stream[ 1 ] == 0x0bb )\n\t\t && ( utf8_stream[ 2 ] == 0x0bf ) )\n\t\t{\n\t\t\tutf8_stream_index += 3;\n\t\t}\n\t}\n\twhile( utf8_stream_index < utf8_stream_size )\n\t{\n\t\t\n\t\tif( libuna_unicode_character_copy_from_utf8(\n\t\t &unicode_character,\n\t\t utf8_stream,\n\t\t utf8_stream_size,\n\t\t &utf8_stream_index,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t\t LIBCERROR_CONVERSION_ERROR_INPUT_FAILED,\n\t\t\t \"%s: unable to copy Unicode character from UTF-8 stream.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\t\n\t\tif( libuna_unicode_character_size_to_utf8(\n\t\t unicode_character,\n\t\t utf8_string_size,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t\t LIBCERROR_CONVERSION_ERROR_INPUT_FAILED,\n\t\t\t \"%s: unable to unable to determine size of Unicode character in UTF-8.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( unicode_character == 0 )\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\tif( unicode_character != 0 )\n\t{\n\t\t*utf8_string_size += 1;\n\t}\n\treturn( 1 );\n}", "Selected Statement": "size_t utf8_stream_index = 0;", "Function Input": {"error": {"value": null}, "utf8_string_size": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x200\n", "message": "Cannot access memory at address 0x200"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 6, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsntfs_mft_entry_initialize(\n libfsntfs_mft_entry_t **mft_entry,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsntfs_mft_entry_initialize\";\n\n\tif( mft_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid MFT entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *mft_entry != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid MFT entry value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*mft_entry = memory_allocate_structure(\n\t libfsntfs_mft_entry_t );\n\n\tif( *mft_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create MFT entry.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *mft_entry,\n\t 0,\n\t sizeof( libfsntfs_mft_entry_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear MFT entry.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *mft_entry );\n\n\t\t*mft_entry = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *mft_entry )->attributes_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create attributes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *mft_entry )->alternate_data_attributes_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create alternate data attributes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *mft_entry )->file_name_attribute_index = -1;\n\t( *mft_entry )->reparse_point_attribute_index = -1;\n\t( *mft_entry )->security_descriptor_attribute_index = -1;\n\t( *mft_entry )->standard_information_attribute_index = -1;\n\t( *mft_entry )->volume_information_attribute_index = -1;\n\t( *mft_entry )->volume_name_attribute_index = -1;\n\n\treturn( 1 );\n\non_error:\n\tif( *mft_entry != NULL )\n\t{\n\t\tif( ( *mft_entry )->alternate_data_attributes_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( ( *mft_entry )->alternate_data_attributes_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tif( ( *mft_entry )->attributes_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( ( *mft_entry )->attributes_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t *mft_entry );\n\n\t\t*mft_entry = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *mft_entry )->file_name_attribute_index = -1;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffffffffffff\n", "message": "Cannot access memory at address 0xffffffffffffffff"}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 88, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsntfs_mft_entry_initialize(\n libfsntfs_mft_entry_t **mft_entry,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsntfs_mft_entry_initialize\";\n\n\tif( mft_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid MFT entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *mft_entry != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid MFT entry value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*mft_entry = memory_allocate_structure(\n\t libfsntfs_mft_entry_t );\n\n\tif( *mft_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create MFT entry.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *mft_entry,\n\t 0,\n\t sizeof( libfsntfs_mft_entry_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear MFT entry.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *mft_entry );\n\n\t\t*mft_entry = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *mft_entry )->attributes_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create attributes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *mft_entry )->alternate_data_attributes_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create alternate data attributes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *mft_entry )->file_name_attribute_index = -1;\n\t( *mft_entry )->reparse_point_attribute_index = -1;\n\t( *mft_entry )->security_descriptor_attribute_index = -1;\n\t( *mft_entry )->standard_information_attribute_index = -1;\n\t( *mft_entry )->volume_information_attribute_index = -1;\n\t( *mft_entry )->volume_name_attribute_index = -1;\n\n\treturn( 1 );\n\non_error:\n\tif( *mft_entry != NULL )\n\t{\n\t\tif( ( *mft_entry )->alternate_data_attributes_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( ( *mft_entry )->alternate_data_attributes_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tif( ( *mft_entry )->attributes_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( ( *mft_entry )->attributes_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t *mft_entry );\n\n\t\t*mft_entry = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *mft_entry )->reparse_point_attribute_index = -1;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffffffffffff\n", "message": "Cannot access memory at address 0xffffffffffffffff"}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 89, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsntfs_mft_entry_initialize(\n libfsntfs_mft_entry_t **mft_entry,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsntfs_mft_entry_initialize\";\n\n\tif( mft_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid MFT entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *mft_entry != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid MFT entry value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*mft_entry = memory_allocate_structure(\n\t libfsntfs_mft_entry_t );\n\n\tif( *mft_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create MFT entry.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *mft_entry,\n\t 0,\n\t sizeof( libfsntfs_mft_entry_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear MFT entry.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *mft_entry );\n\n\t\t*mft_entry = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *mft_entry )->attributes_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create attributes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *mft_entry )->alternate_data_attributes_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create alternate data attributes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *mft_entry )->file_name_attribute_index = -1;\n\t( *mft_entry )->reparse_point_attribute_index = -1;\n\t( *mft_entry )->security_descriptor_attribute_index = -1;\n\t( *mft_entry )->standard_information_attribute_index = -1;\n\t( *mft_entry )->volume_information_attribute_index = -1;\n\t( *mft_entry )->volume_name_attribute_index = -1;\n\n\treturn( 1 );\n\non_error:\n\tif( *mft_entry != NULL )\n\t{\n\t\tif( ( *mft_entry )->alternate_data_attributes_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( ( *mft_entry )->alternate_data_attributes_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tif( ( *mft_entry )->attributes_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( ( *mft_entry )->attributes_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t *mft_entry );\n\n\t\t*mft_entry = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *mft_entry )->security_descriptor_attribute_index = -1;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffffffffffff\n", "message": "Cannot access memory at address 0xffffffffffffffff"}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 90, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsntfs_mft_entry_initialize(\n libfsntfs_mft_entry_t **mft_entry,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsntfs_mft_entry_initialize\";\n\n\tif( mft_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid MFT entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *mft_entry != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid MFT entry value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*mft_entry = memory_allocate_structure(\n\t libfsntfs_mft_entry_t );\n\n\tif( *mft_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create MFT entry.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *mft_entry,\n\t 0,\n\t sizeof( libfsntfs_mft_entry_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear MFT entry.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *mft_entry );\n\n\t\t*mft_entry = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *mft_entry )->attributes_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create attributes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *mft_entry )->alternate_data_attributes_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create alternate data attributes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *mft_entry )->file_name_attribute_index = -1;\n\t( *mft_entry )->reparse_point_attribute_index = -1;\n\t( *mft_entry )->security_descriptor_attribute_index = -1;\n\t( *mft_entry )->standard_information_attribute_index = -1;\n\t( *mft_entry )->volume_information_attribute_index = -1;\n\t( *mft_entry )->volume_name_attribute_index = -1;\n\n\treturn( 1 );\n\non_error:\n\tif( *mft_entry != NULL )\n\t{\n\t\tif( ( *mft_entry )->alternate_data_attributes_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( ( *mft_entry )->alternate_data_attributes_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tif( ( *mft_entry )->attributes_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( ( *mft_entry )->attributes_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t *mft_entry );\n\n\t\t*mft_entry = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *mft_entry )->standard_information_attribute_index = -1;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffffffffffff\n", "message": "Cannot access memory at address 0xffffffffffffffff"}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 91, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfsntfs_mft_entry_initialize(\n libfsntfs_mft_entry_t **mft_entry,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsntfs_mft_entry_initialize\";\n\n\tif( mft_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid MFT entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *mft_entry != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid MFT entry value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*mft_entry = memory_allocate_structure(\n\t libfsntfs_mft_entry_t );\n\n\tif( *mft_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create MFT entry.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *mft_entry,\n\t 0,\n\t sizeof( libfsntfs_mft_entry_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear MFT entry.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *mft_entry );\n\n\t\t*mft_entry = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *mft_entry )->attributes_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create attributes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( ( *mft_entry )->alternate_data_attributes_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create alternate data attributes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *mft_entry )->file_name_attribute_index = -1;\n\t( *mft_entry )->reparse_point_attribute_index = -1;\n\t( *mft_entry )->security_descriptor_attribute_index = -1;\n\t( *mft_entry )->standard_information_attribute_index = -1;\n\t( *mft_entry )->volume_information_attribute_index = -1;\n\t( *mft_entry )->volume_name_attribute_index = -1;\n\n\treturn( 1 );\n\non_error:\n\tif( *mft_entry != NULL )\n\t{\n\t\tif( ( *mft_entry )->alternate_data_attributes_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( ( *mft_entry )->alternate_data_attributes_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tif( ( *mft_entry )->attributes_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( ( *mft_entry )->attributes_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t *mft_entry );\n\n\t\t*mft_entry = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *mft_entry )->volume_information_attribute_index = -1;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffffffffffff\n", "message": "Cannot access memory at address 0xffffffffffffffff"}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 92, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libevtx_io_handle_initialize(\n libevtx_io_handle_t **io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libevtx_io_handle_initialize\";\n\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *io_handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid IO handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*io_handle = memory_allocate_structure(\n\t libevtx_io_handle_t );\n\n\tif( *io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *io_handle,\n\t 0,\n\t sizeof( libevtx_io_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *io_handle )->chunk_size = 0x00010000UL;\n\t( *io_handle )->ascii_codepage = LIBEVTX_CODEPAGE_WINDOWS_1252;\n\n\treturn( 1 );\n\non_error:\n\tif( *io_handle != NULL )\n\t{\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *io_handle )->chunk_size = 0x00010000UL;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1004c6f20\n", "message": "Cannot access memory at address 0x1004c6f20"}}, "io_handle": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x18\n", "message": "Cannot access memory at address 0x18"}}}, "Variable Values Before Statement": {"constant": "0x00010000UL"}, "Value After Statement Execution": "0x00010000UL", "Block_Size": 55, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libexe_io_handle_initialize(\n libexe_io_handle_t **io_handle,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libexe_io_handle_initialize\";\n\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *io_handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid IO handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*io_handle = memory_allocate_structure(\n\t libexe_io_handle_t );\n\n\tif( *io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *io_handle,\n\t 0,\n\t sizeof( libexe_io_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear file.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\n\t\treturn( -1 );\n\t}\n\t( *io_handle )->executable_type = LIBEXE_EXECUTABLE_TYPE_MZ;\n\t( *io_handle )->ascii_codepage = LIBEXE_CODEPAGE_WINDOWS_1252;\n\n\treturn( 1 );\n\non_error:\n\tif( *io_handle != NULL )\n\t{\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *io_handle )->executable_type = LIBEXE_EXECUTABLE_TYPE_MZ;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x4c6f00 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x40ec8348e5894855\n", "message": "Cannot access memory at address 0x40ec8348e5894855"}}}, "io_handle": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x10735d8", "value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"executable_type": {"type_category": "unknown", "concrete_type": "uint8_t", "value": "16 '\\020'"}, "coff_header": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x1069808", "value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"number_of_sections": {"type_category": "unknown", "concrete_type": "uint16_t", "value": "0"}, "creation_time": {"type_category": "unknown", "concrete_type": "uint32_t", "value": "0"}, "optional_header_size": {"type_category": "unknown", "concrete_type": "uint16_t", "value": "0"}}}}, "coff_optional_header": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x1069810", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x230\n", "message": "Cannot access memory at address 0x230"}}, "ascii_codepage": {"type_category": "int", "concrete_type": "int", "value": "33"}, "abort": {"type_category": "int", "concrete_type": "int", "value": "0"}}}}}}, "Variable Values Before Statement": {"LIBEXE_EXECUTABLE_TYPE_MZ": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 60, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_stream_initialize(\n libfdata_stream_t **stream,\n intptr_t *data_handle,\n int (*free_data_handle)(\n intptr_t **data_handle,\n libcerror_error_t **error ),\n int (*clone_data_handle)(\n intptr_t **destination_data_handle,\n intptr_t *source_data_handle,\n libcerror_error_t **error ),\n int (*create_segment)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int *segment_file_index,\n off64_t *segment_offset,\n size64_t *segment_size,\n uint32_t *segment_flags,\n libcerror_error_t **error ),\n ssize_t (*read_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t read_flags,\n libcerror_error_t **error ),\n ssize_t (*write_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n const uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t write_flags,\n libcerror_error_t **error ),\n off64_t (*seek_segment_offset)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n off64_t segment_offset,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfdata_internal_stream_t *internal_stream = NULL;\n\tstatic char *function = \"libfdata_stream_initialize\";\n\n\tif( stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *stream != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid stream value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( flags & 0xfe ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported flags: 0x%02\" PRIx8 \".\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_stream = memory_allocate_structure(\n\t libfdata_internal_stream_t );\n\n\tif( internal_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_stream,\n\t 0,\n\t sizeof( libfdata_internal_stream_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear stream.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_stream );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->segments_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create segments array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->mapped_ranges_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create mapped ranges array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_stream->segment_offset = -1;\n\tinternal_stream->flags |= flags;\n\tinternal_stream->data_handle = data_handle;\n\tinternal_stream->free_data_handle = free_data_handle;\n\tinternal_stream->clone_data_handle = clone_data_handle;\n\tinternal_stream->create_segment = create_segment;\n\tinternal_stream->read_segment_data = read_segment_data;\n\tinternal_stream->write_segment_data = write_segment_data;\n\tinternal_stream->seek_segment_offset = seek_segment_offset;\n\n\t*stream = (libfdata_stream_t *) internal_stream;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_stream != NULL )\n\t{\n\t\tif( internal_stream->segments_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_stream->segments_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_stream );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_stream->segment_offset = -1;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "intptr_t", "value": "17218720"}}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x5b0000006e\n", "message": "Cannot access memory at address 0x5b0000006e"}}, "flags": {"value": "0 '\\000'"}, "stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 143, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_stream_initialize(\n libfdata_stream_t **stream,\n intptr_t *data_handle,\n int (*free_data_handle)(\n intptr_t **data_handle,\n libcerror_error_t **error ),\n int (*clone_data_handle)(\n intptr_t **destination_data_handle,\n intptr_t *source_data_handle,\n libcerror_error_t **error ),\n int (*create_segment)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int *segment_file_index,\n off64_t *segment_offset,\n size64_t *segment_size,\n uint32_t *segment_flags,\n libcerror_error_t **error ),\n ssize_t (*read_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t read_flags,\n libcerror_error_t **error ),\n ssize_t (*write_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n const uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t write_flags,\n libcerror_error_t **error ),\n off64_t (*seek_segment_offset)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n off64_t segment_offset,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfdata_internal_stream_t *internal_stream = NULL;\n\tstatic char *function = \"libfdata_stream_initialize\";\n\n\tif( stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *stream != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid stream value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( flags & 0xfe ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported flags: 0x%02\" PRIx8 \".\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_stream = memory_allocate_structure(\n\t libfdata_internal_stream_t );\n\n\tif( internal_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_stream,\n\t 0,\n\t sizeof( libfdata_internal_stream_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear stream.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_stream );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->segments_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create segments array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->mapped_ranges_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create mapped ranges array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_stream->segment_offset = -1;\n\tinternal_stream->flags |= flags;\n\tinternal_stream->data_handle = data_handle;\n\tinternal_stream->free_data_handle = free_data_handle;\n\tinternal_stream->clone_data_handle = clone_data_handle;\n\tinternal_stream->create_segment = create_segment;\n\tinternal_stream->read_segment_data = read_segment_data;\n\tinternal_stream->write_segment_data = write_segment_data;\n\tinternal_stream->seek_segment_offset = seek_segment_offset;\n\n\t*stream = (libfdata_stream_t *) internal_stream;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_stream != NULL )\n\t{\n\t\tif( internal_stream->segments_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_stream->segments_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_stream );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_stream->flags |= flags;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "intptr_t", "value": "17218720"}}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x5b0000006e\n", "message": "Cannot access memory at address 0x5b0000006e"}}, "flags": {"value": "0 '\\000'"}, "stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}}, "Variable Values Before Statement": {"flags": "0 '\\000'"}, "Value After Statement Execution": "0 '\\000'", "Block_Size": 144, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_stream_initialize(\n libfdata_stream_t **stream,\n intptr_t *data_handle,\n int (*free_data_handle)(\n intptr_t **data_handle,\n libcerror_error_t **error ),\n int (*clone_data_handle)(\n intptr_t **destination_data_handle,\n intptr_t *source_data_handle,\n libcerror_error_t **error ),\n int (*create_segment)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int *segment_file_index,\n off64_t *segment_offset,\n size64_t *segment_size,\n uint32_t *segment_flags,\n libcerror_error_t **error ),\n ssize_t (*read_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t read_flags,\n libcerror_error_t **error ),\n ssize_t (*write_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n const uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t write_flags,\n libcerror_error_t **error ),\n off64_t (*seek_segment_offset)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n off64_t segment_offset,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfdata_internal_stream_t *internal_stream = NULL;\n\tstatic char *function = \"libfdata_stream_initialize\";\n\n\tif( stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *stream != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid stream value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( flags & 0xfe ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported flags: 0x%02\" PRIx8 \".\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_stream = memory_allocate_structure(\n\t libfdata_internal_stream_t );\n\n\tif( internal_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_stream,\n\t 0,\n\t sizeof( libfdata_internal_stream_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear stream.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_stream );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->segments_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create segments array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->mapped_ranges_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create mapped ranges array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_stream->segment_offset = -1;\n\tinternal_stream->flags |= flags;\n\tinternal_stream->data_handle = data_handle;\n\tinternal_stream->free_data_handle = free_data_handle;\n\tinternal_stream->clone_data_handle = clone_data_handle;\n\tinternal_stream->create_segment = create_segment;\n\tinternal_stream->read_segment_data = read_segment_data;\n\tinternal_stream->write_segment_data = write_segment_data;\n\tinternal_stream->seek_segment_offset = seek_segment_offset;\n\n\t*stream = (libfdata_stream_t *) internal_stream;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_stream != NULL )\n\t{\n\t\tif( internal_stream->segments_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_stream->segments_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_stream );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_stream->data_handle = data_handle;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "intptr_t", "value": "17218720"}}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x5b0000006e\n", "message": "Cannot access memory at address 0x5b0000006e"}}, "flags": {"value": "0 '\\000'"}, "stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}}, "Variable Values Before Statement": {"data_handle": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 145, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_stream_initialize(\n libfdata_stream_t **stream,\n intptr_t *data_handle,\n int (*free_data_handle)(\n intptr_t **data_handle,\n libcerror_error_t **error ),\n int (*clone_data_handle)(\n intptr_t **destination_data_handle,\n intptr_t *source_data_handle,\n libcerror_error_t **error ),\n int (*create_segment)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int *segment_file_index,\n off64_t *segment_offset,\n size64_t *segment_size,\n uint32_t *segment_flags,\n libcerror_error_t **error ),\n ssize_t (*read_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t read_flags,\n libcerror_error_t **error ),\n ssize_t (*write_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n const uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t write_flags,\n libcerror_error_t **error ),\n off64_t (*seek_segment_offset)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n off64_t segment_offset,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfdata_internal_stream_t *internal_stream = NULL;\n\tstatic char *function = \"libfdata_stream_initialize\";\n\n\tif( stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *stream != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid stream value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( flags & 0xfe ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported flags: 0x%02\" PRIx8 \".\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_stream = memory_allocate_structure(\n\t libfdata_internal_stream_t );\n\n\tif( internal_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_stream,\n\t 0,\n\t sizeof( libfdata_internal_stream_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear stream.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_stream );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->segments_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create segments array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->mapped_ranges_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create mapped ranges array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_stream->segment_offset = -1;\n\tinternal_stream->flags |= flags;\n\tinternal_stream->data_handle = data_handle;\n\tinternal_stream->free_data_handle = free_data_handle;\n\tinternal_stream->clone_data_handle = clone_data_handle;\n\tinternal_stream->create_segment = create_segment;\n\tinternal_stream->read_segment_data = read_segment_data;\n\tinternal_stream->write_segment_data = write_segment_data;\n\tinternal_stream->seek_segment_offset = seek_segment_offset;\n\n\t*stream = (libfdata_stream_t *) internal_stream;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_stream != NULL )\n\t{\n\t\tif( internal_stream->segments_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_stream->segments_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_stream );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_stream->free_data_handle = free_data_handle;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "intptr_t", "value": "17218720"}}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x5b0000006e\n", "message": "Cannot access memory at address 0x5b0000006e"}}, "flags": {"value": "0 '\\000'"}, "stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}}, "Variable Values Before Statement": {"free_data_handle": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 146, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_stream_initialize(\n libfdata_stream_t **stream,\n intptr_t *data_handle,\n int (*free_data_handle)(\n intptr_t **data_handle,\n libcerror_error_t **error ),\n int (*clone_data_handle)(\n intptr_t **destination_data_handle,\n intptr_t *source_data_handle,\n libcerror_error_t **error ),\n int (*create_segment)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int *segment_file_index,\n off64_t *segment_offset,\n size64_t *segment_size,\n uint32_t *segment_flags,\n libcerror_error_t **error ),\n ssize_t (*read_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t read_flags,\n libcerror_error_t **error ),\n ssize_t (*write_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n const uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t write_flags,\n libcerror_error_t **error ),\n off64_t (*seek_segment_offset)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n off64_t segment_offset,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfdata_internal_stream_t *internal_stream = NULL;\n\tstatic char *function = \"libfdata_stream_initialize\";\n\n\tif( stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *stream != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid stream value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( flags & 0xfe ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported flags: 0x%02\" PRIx8 \".\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_stream = memory_allocate_structure(\n\t libfdata_internal_stream_t );\n\n\tif( internal_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_stream,\n\t 0,\n\t sizeof( libfdata_internal_stream_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear stream.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_stream );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->segments_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create segments array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->mapped_ranges_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create mapped ranges array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_stream->segment_offset = -1;\n\tinternal_stream->flags |= flags;\n\tinternal_stream->data_handle = data_handle;\n\tinternal_stream->free_data_handle = free_data_handle;\n\tinternal_stream->clone_data_handle = clone_data_handle;\n\tinternal_stream->create_segment = create_segment;\n\tinternal_stream->read_segment_data = read_segment_data;\n\tinternal_stream->write_segment_data = write_segment_data;\n\tinternal_stream->seek_segment_offset = seek_segment_offset;\n\n\t*stream = (libfdata_stream_t *) internal_stream;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_stream != NULL )\n\t{\n\t\tif( internal_stream->segments_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_stream->segments_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_stream );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_stream->clone_data_handle = clone_data_handle;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "intptr_t", "value": "17218720"}}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x5b0000006e\n", "message": "Cannot access memory at address 0x5b0000006e"}}, "flags": {"value": "0 '\\000'"}, "stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}}, "Variable Values Before Statement": {"clone_data_handle": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 147, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_stream_initialize(\n libfdata_stream_t **stream,\n intptr_t *data_handle,\n int (*free_data_handle)(\n intptr_t **data_handle,\n libcerror_error_t **error ),\n int (*clone_data_handle)(\n intptr_t **destination_data_handle,\n intptr_t *source_data_handle,\n libcerror_error_t **error ),\n int (*create_segment)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int *segment_file_index,\n off64_t *segment_offset,\n size64_t *segment_size,\n uint32_t *segment_flags,\n libcerror_error_t **error ),\n ssize_t (*read_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t read_flags,\n libcerror_error_t **error ),\n ssize_t (*write_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n const uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t write_flags,\n libcerror_error_t **error ),\n off64_t (*seek_segment_offset)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n off64_t segment_offset,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfdata_internal_stream_t *internal_stream = NULL;\n\tstatic char *function = \"libfdata_stream_initialize\";\n\n\tif( stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *stream != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid stream value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( flags & 0xfe ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported flags: 0x%02\" PRIx8 \".\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_stream = memory_allocate_structure(\n\t libfdata_internal_stream_t );\n\n\tif( internal_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_stream,\n\t 0,\n\t sizeof( libfdata_internal_stream_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear stream.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_stream );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->segments_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create segments array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->mapped_ranges_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create mapped ranges array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_stream->segment_offset = -1;\n\tinternal_stream->flags |= flags;\n\tinternal_stream->data_handle = data_handle;\n\tinternal_stream->free_data_handle = free_data_handle;\n\tinternal_stream->clone_data_handle = clone_data_handle;\n\tinternal_stream->create_segment = create_segment;\n\tinternal_stream->read_segment_data = read_segment_data;\n\tinternal_stream->write_segment_data = write_segment_data;\n\tinternal_stream->seek_segment_offset = seek_segment_offset;\n\n\t*stream = (libfdata_stream_t *) internal_stream;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_stream != NULL )\n\t{\n\t\tif( internal_stream->segments_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_stream->segments_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_stream );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_stream->create_segment = create_segment;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "intptr_t", "value": "17218720"}}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x5b0000006e\n", "message": "Cannot access memory at address 0x5b0000006e"}}, "flags": {"value": "0 '\\000'"}, "stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}}, "Variable Values Before Statement": {"create_segment": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 148, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_stream_initialize(\n libfdata_stream_t **stream,\n intptr_t *data_handle,\n int (*free_data_handle)(\n intptr_t **data_handle,\n libcerror_error_t **error ),\n int (*clone_data_handle)(\n intptr_t **destination_data_handle,\n intptr_t *source_data_handle,\n libcerror_error_t **error ),\n int (*create_segment)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int *segment_file_index,\n off64_t *segment_offset,\n size64_t *segment_size,\n uint32_t *segment_flags,\n libcerror_error_t **error ),\n ssize_t (*read_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t read_flags,\n libcerror_error_t **error ),\n ssize_t (*write_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n const uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t write_flags,\n libcerror_error_t **error ),\n off64_t (*seek_segment_offset)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n off64_t segment_offset,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfdata_internal_stream_t *internal_stream = NULL;\n\tstatic char *function = \"libfdata_stream_initialize\";\n\n\tif( stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *stream != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid stream value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( flags & 0xfe ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported flags: 0x%02\" PRIx8 \".\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_stream = memory_allocate_structure(\n\t libfdata_internal_stream_t );\n\n\tif( internal_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_stream,\n\t 0,\n\t sizeof( libfdata_internal_stream_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear stream.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_stream );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->segments_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create segments array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->mapped_ranges_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create mapped ranges array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_stream->segment_offset = -1;\n\tinternal_stream->flags |= flags;\n\tinternal_stream->data_handle = data_handle;\n\tinternal_stream->free_data_handle = free_data_handle;\n\tinternal_stream->clone_data_handle = clone_data_handle;\n\tinternal_stream->create_segment = create_segment;\n\tinternal_stream->read_segment_data = read_segment_data;\n\tinternal_stream->write_segment_data = write_segment_data;\n\tinternal_stream->seek_segment_offset = seek_segment_offset;\n\n\t*stream = (libfdata_stream_t *) internal_stream;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_stream != NULL )\n\t{\n\t\tif( internal_stream->segments_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_stream->segments_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_stream );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_stream->read_segment_data = read_segment_data;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "intptr_t", "value": "17218720"}}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x5b0000006e\n", "message": "Cannot access memory at address 0x5b0000006e"}}, "flags": {"value": "0 '\\000'"}, "stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}}, "Variable Values Before Statement": {"read_segment_data": "{ssize_t (intptr_t *, intptr_t *, int, int, uint8_t *, size_t, uint32_t, uint8_t, libcerror_error_t **)} 0x4d81a0 "}, "Value After Statement Execution": "{ssize_t (intptr_t *, intptr_t *, int, int, uint8_t *, size_t, uint32_t, uint8_t, libcerror_error_t **)} 0x4d81a0 ", "Block_Size": 149, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_stream_initialize(\n libfdata_stream_t **stream,\n intptr_t *data_handle,\n int (*free_data_handle)(\n intptr_t **data_handle,\n libcerror_error_t **error ),\n int (*clone_data_handle)(\n intptr_t **destination_data_handle,\n intptr_t *source_data_handle,\n libcerror_error_t **error ),\n int (*create_segment)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int *segment_file_index,\n off64_t *segment_offset,\n size64_t *segment_size,\n uint32_t *segment_flags,\n libcerror_error_t **error ),\n ssize_t (*read_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t read_flags,\n libcerror_error_t **error ),\n ssize_t (*write_segment_data)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n const uint8_t *segment_data,\n size_t segment_data_size,\n uint32_t segment_flags,\n uint8_t write_flags,\n libcerror_error_t **error ),\n off64_t (*seek_segment_offset)(\n intptr_t *data_handle,\n intptr_t *file_io_handle,\n int segment_index,\n int segment_file_index,\n off64_t segment_offset,\n libcerror_error_t **error ),\n uint8_t flags,\n libcerror_error_t **error )\n{\n\tlibfdata_internal_stream_t *internal_stream = NULL;\n\tstatic char *function = \"libfdata_stream_initialize\";\n\n\tif( stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *stream != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid stream value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( flags & 0xfe ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported flags: 0x%02\" PRIx8 \".\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_stream = memory_allocate_structure(\n\t libfdata_internal_stream_t );\n\n\tif( internal_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t internal_stream,\n\t 0,\n\t sizeof( libfdata_internal_stream_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear stream.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_stream );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->segments_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create segments array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t &( internal_stream->mapped_ranges_array ),\n\t 0,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create mapped ranges array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_stream->segment_offset = -1;\n\tinternal_stream->flags |= flags;\n\tinternal_stream->data_handle = data_handle;\n\tinternal_stream->free_data_handle = free_data_handle;\n\tinternal_stream->clone_data_handle = clone_data_handle;\n\tinternal_stream->create_segment = create_segment;\n\tinternal_stream->read_segment_data = read_segment_data;\n\tinternal_stream->write_segment_data = write_segment_data;\n\tinternal_stream->seek_segment_offset = seek_segment_offset;\n\n\t*stream = (libfdata_stream_t *) internal_stream;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_stream != NULL )\n\t{\n\t\tif( internal_stream->segments_array != NULL )\n\t\t{\n\t\t\tlibcdata_array_free(\n\t\t\t &( internal_stream->segments_array ),\n\t\t\t NULL,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_stream );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "internal_stream->write_segment_data = write_segment_data;", "Function Input": {"data_handle": {"value": {"type_category": "unknown", "concrete_type": "intptr_t", "value": "17218720"}}, "error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x5b0000006e\n", "message": "Cannot access memory at address 0x5b0000006e"}}, "flags": {"value": "0 '\\000'"}, "stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cce299 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x840fc08548c08949\n", "message": "Cannot access memory at address 0x840fc08548c08949"}}}}, "Variable Values Before Statement": {"write_segment_data": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 150, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_segments_array_set_segment_by_index(\n libcdata_array_t *segments_array,\n libcdata_array_t *mapped_ranges_array,\n size64_t *data_size,\n int segment_index,\n int segment_file_index,\n off64_t segment_offset,\n size64_t segment_size,\n uint32_t segment_flags,\n libcerror_error_t **error )\n{\n\tlibfdata_mapped_range_t *mapped_range = NULL;\n\tlibfdata_range_t *segment_data_range = NULL;\n\tstatic char *function = \"libfdata_segments_array_set_segment_by_index\";\n\toff64_t previous_segment_offset = 0;\n\tsize64_t previous_segment_size = 0;\n\tuint32_t previous_segment_flags = 0;\n\tint previous_segment_file_index = 0;\n\n\tif( data_size == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid data size.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( segment_file_index < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid segment file index value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( segment_offset < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid segment offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_get_entry_by_index(\n\t segments_array,\n\t segment_index,\n\t (intptr_t **) &segment_data_range,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve entry: %d from segments array.\",\n\t\t function,\n\t\t segment_index );\n\n\t\treturn( -1 );\n\t}\n\tif( segment_data_range == NULL )\n\t{\n\t\tif( libfdata_range_initialize(\n\t\t &segment_data_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create segment data range.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( libcdata_array_set_entry_by_index(\n\t\t segments_array,\n\t\t segment_index,\n\t\t (intptr_t *) segment_data_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t\t \"%s: unable to set entry: %d to segments array.\",\n\t\t\t function,\n\t\t\t segment_index );\n\n\t\t\tlibfdata_range_free(\n\t\t\t &segment_data_range,\n\t\t\t NULL );\n\n\t\t\treturn( -1 );\n\t\t}\n\t}\n\telse\n\t{\n\t\tif( libfdata_range_get(\n\t\t segment_data_range,\n\t\t &previous_segment_file_index,\n\t\t &previous_segment_offset,\n\t\t &previous_segment_size,\n\t\t &previous_segment_flags,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve segment: %d data range values.\",\n\t\t\t function,\n\t\t\t segment_index );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\t*data_size -= previous_segment_size;\n\t}\n\tif( libfdata_range_set(\n\t segment_data_range,\n\t segment_file_index,\n\t segment_offset,\n\t segment_size,\n\t segment_flags,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set segment data range values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t\n\tif( libcdata_array_get_entry_by_index(\n\t mapped_ranges_array,\n\t segment_index,\n\t (intptr_t **) &mapped_range,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve entry: %d from mapped ranges array.\",\n\t\t function,\n\t\t segment_index );\n\n\t\treturn( -1 );\n\t}\n\tif( mapped_range == NULL )\n\t{\n\t\tif( libfdata_mapped_range_initialize(\n\t\t &mapped_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create mapped range.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( libcdata_array_set_entry_by_index(\n\t\t mapped_ranges_array,\n\t\t segment_index,\n\t\t (intptr_t *) mapped_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t\t \"%s: unable to set entry: %d in mapped ranges array.\",\n\t\t\t function,\n\t\t\t segment_index );\n\n\t\t\tlibfdata_mapped_range_free(\n\t\t\t &mapped_range,\n\t\t\t NULL );\n\n\t\t\treturn( -1 );\n\t\t}\n\t}\n\t*data_size += segment_size;\n\n\treturn( 1 );\n}", "Selected Statement": "static char *function = \"libfdata_segments_array_set_segment_by_index\";", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1004fb7c6\n", "message": "Cannot access memory at address 0x1004fb7c6"}}, "segment_file_index": {"value": "48"}, "segment_flags": {"value": "32767"}, "segment_index": {"value": "1"}, "segment_offset": {"value": "17174704"}, "segment_size": {"value": "5113557"}, "segments_array": {"value": {"type_category": "unknown", "concrete_type": "libcdata_array_t", "value": "3525336957436119125"}}}, "Variable Values Before Statement": {"constant": "\"libfdata_segments_array_set_segment_by_index\""}, "Value After Statement Execution": "\"libfdata_segments_array_set_segment_by_index\"", "Block_Size": 12, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_segments_array_set_segment_by_index(\n libcdata_array_t *segments_array,\n libcdata_array_t *mapped_ranges_array,\n size64_t *data_size,\n int segment_index,\n int segment_file_index,\n off64_t segment_offset,\n size64_t segment_size,\n uint32_t segment_flags,\n libcerror_error_t **error )\n{\n\tlibfdata_mapped_range_t *mapped_range = NULL;\n\tlibfdata_range_t *segment_data_range = NULL;\n\tstatic char *function = \"libfdata_segments_array_set_segment_by_index\";\n\toff64_t previous_segment_offset = 0;\n\tsize64_t previous_segment_size = 0;\n\tuint32_t previous_segment_flags = 0;\n\tint previous_segment_file_index = 0;\n\n\tif( data_size == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid data size.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( segment_file_index < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid segment file index value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( segment_offset < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid segment offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_get_entry_by_index(\n\t segments_array,\n\t segment_index,\n\t (intptr_t **) &segment_data_range,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve entry: %d from segments array.\",\n\t\t function,\n\t\t segment_index );\n\n\t\treturn( -1 );\n\t}\n\tif( segment_data_range == NULL )\n\t{\n\t\tif( libfdata_range_initialize(\n\t\t &segment_data_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create segment data range.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( libcdata_array_set_entry_by_index(\n\t\t segments_array,\n\t\t segment_index,\n\t\t (intptr_t *) segment_data_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t\t \"%s: unable to set entry: %d to segments array.\",\n\t\t\t function,\n\t\t\t segment_index );\n\n\t\t\tlibfdata_range_free(\n\t\t\t &segment_data_range,\n\t\t\t NULL );\n\n\t\t\treturn( -1 );\n\t\t}\n\t}\n\telse\n\t{\n\t\tif( libfdata_range_get(\n\t\t segment_data_range,\n\t\t &previous_segment_file_index,\n\t\t &previous_segment_offset,\n\t\t &previous_segment_size,\n\t\t &previous_segment_flags,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve segment: %d data range values.\",\n\t\t\t function,\n\t\t\t segment_index );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\t*data_size -= previous_segment_size;\n\t}\n\tif( libfdata_range_set(\n\t segment_data_range,\n\t segment_file_index,\n\t segment_offset,\n\t segment_size,\n\t segment_flags,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set segment data range values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t\n\tif( libcdata_array_get_entry_by_index(\n\t mapped_ranges_array,\n\t segment_index,\n\t (intptr_t **) &mapped_range,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve entry: %d from mapped ranges array.\",\n\t\t function,\n\t\t segment_index );\n\n\t\treturn( -1 );\n\t}\n\tif( mapped_range == NULL )\n\t{\n\t\tif( libfdata_mapped_range_initialize(\n\t\t &mapped_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create mapped range.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( libcdata_array_set_entry_by_index(\n\t\t mapped_ranges_array,\n\t\t segment_index,\n\t\t (intptr_t *) mapped_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t\t \"%s: unable to set entry: %d in mapped ranges array.\",\n\t\t\t function,\n\t\t\t segment_index );\n\n\t\t\tlibfdata_mapped_range_free(\n\t\t\t &mapped_range,\n\t\t\t NULL );\n\n\t\t\treturn( -1 );\n\t\t}\n\t}\n\t*data_size += segment_size;\n\n\treturn( 1 );\n}", "Selected Statement": "off64_t previous_segment_offset = 0;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1004fb7c6\n", "message": "Cannot access memory at address 0x1004fb7c6"}}, "segment_file_index": {"value": "48"}, "segment_flags": {"value": "32767"}, "segment_index": {"value": "1"}, "segment_offset": {"value": "17174704"}, "segment_size": {"value": "5113557"}, "segments_array": {"value": {"type_category": "unknown", "concrete_type": "libcdata_array_t", "value": "3525336957436119125"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 13, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_segments_array_set_segment_by_index(\n libcdata_array_t *segments_array,\n libcdata_array_t *mapped_ranges_array,\n size64_t *data_size,\n int segment_index,\n int segment_file_index,\n off64_t segment_offset,\n size64_t segment_size,\n uint32_t segment_flags,\n libcerror_error_t **error )\n{\n\tlibfdata_mapped_range_t *mapped_range = NULL;\n\tlibfdata_range_t *segment_data_range = NULL;\n\tstatic char *function = \"libfdata_segments_array_set_segment_by_index\";\n\toff64_t previous_segment_offset = 0;\n\tsize64_t previous_segment_size = 0;\n\tuint32_t previous_segment_flags = 0;\n\tint previous_segment_file_index = 0;\n\n\tif( data_size == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid data size.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( segment_file_index < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid segment file index value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( segment_offset < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid segment offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_get_entry_by_index(\n\t segments_array,\n\t segment_index,\n\t (intptr_t **) &segment_data_range,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve entry: %d from segments array.\",\n\t\t function,\n\t\t segment_index );\n\n\t\treturn( -1 );\n\t}\n\tif( segment_data_range == NULL )\n\t{\n\t\tif( libfdata_range_initialize(\n\t\t &segment_data_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create segment data range.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( libcdata_array_set_entry_by_index(\n\t\t segments_array,\n\t\t segment_index,\n\t\t (intptr_t *) segment_data_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t\t \"%s: unable to set entry: %d to segments array.\",\n\t\t\t function,\n\t\t\t segment_index );\n\n\t\t\tlibfdata_range_free(\n\t\t\t &segment_data_range,\n\t\t\t NULL );\n\n\t\t\treturn( -1 );\n\t\t}\n\t}\n\telse\n\t{\n\t\tif( libfdata_range_get(\n\t\t segment_data_range,\n\t\t &previous_segment_file_index,\n\t\t &previous_segment_offset,\n\t\t &previous_segment_size,\n\t\t &previous_segment_flags,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve segment: %d data range values.\",\n\t\t\t function,\n\t\t\t segment_index );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\t*data_size -= previous_segment_size;\n\t}\n\tif( libfdata_range_set(\n\t segment_data_range,\n\t segment_file_index,\n\t segment_offset,\n\t segment_size,\n\t segment_flags,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set segment data range values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t\n\tif( libcdata_array_get_entry_by_index(\n\t mapped_ranges_array,\n\t segment_index,\n\t (intptr_t **) &mapped_range,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve entry: %d from mapped ranges array.\",\n\t\t function,\n\t\t segment_index );\n\n\t\treturn( -1 );\n\t}\n\tif( mapped_range == NULL )\n\t{\n\t\tif( libfdata_mapped_range_initialize(\n\t\t &mapped_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create mapped range.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( libcdata_array_set_entry_by_index(\n\t\t mapped_ranges_array,\n\t\t segment_index,\n\t\t (intptr_t *) mapped_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t\t \"%s: unable to set entry: %d in mapped ranges array.\",\n\t\t\t function,\n\t\t\t segment_index );\n\n\t\t\tlibfdata_mapped_range_free(\n\t\t\t &mapped_range,\n\t\t\t NULL );\n\n\t\t\treturn( -1 );\n\t\t}\n\t}\n\t*data_size += segment_size;\n\n\treturn( 1 );\n}", "Selected Statement": "size64_t previous_segment_size = 0;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1004fb7c6\n", "message": "Cannot access memory at address 0x1004fb7c6"}}, "segment_file_index": {"value": "48"}, "segment_flags": {"value": "32767"}, "segment_index": {"value": "1"}, "segment_offset": {"value": "17174704"}, "segment_size": {"value": "5113557"}, "segments_array": {"value": {"type_category": "unknown", "concrete_type": "libcdata_array_t", "value": "3525336957436119125"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 14, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_segments_array_set_segment_by_index(\n libcdata_array_t *segments_array,\n libcdata_array_t *mapped_ranges_array,\n size64_t *data_size,\n int segment_index,\n int segment_file_index,\n off64_t segment_offset,\n size64_t segment_size,\n uint32_t segment_flags,\n libcerror_error_t **error )\n{\n\tlibfdata_mapped_range_t *mapped_range = NULL;\n\tlibfdata_range_t *segment_data_range = NULL;\n\tstatic char *function = \"libfdata_segments_array_set_segment_by_index\";\n\toff64_t previous_segment_offset = 0;\n\tsize64_t previous_segment_size = 0;\n\tuint32_t previous_segment_flags = 0;\n\tint previous_segment_file_index = 0;\n\n\tif( data_size == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid data size.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( segment_file_index < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid segment file index value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( segment_offset < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid segment offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_get_entry_by_index(\n\t segments_array,\n\t segment_index,\n\t (intptr_t **) &segment_data_range,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve entry: %d from segments array.\",\n\t\t function,\n\t\t segment_index );\n\n\t\treturn( -1 );\n\t}\n\tif( segment_data_range == NULL )\n\t{\n\t\tif( libfdata_range_initialize(\n\t\t &segment_data_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create segment data range.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( libcdata_array_set_entry_by_index(\n\t\t segments_array,\n\t\t segment_index,\n\t\t (intptr_t *) segment_data_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t\t \"%s: unable to set entry: %d to segments array.\",\n\t\t\t function,\n\t\t\t segment_index );\n\n\t\t\tlibfdata_range_free(\n\t\t\t &segment_data_range,\n\t\t\t NULL );\n\n\t\t\treturn( -1 );\n\t\t}\n\t}\n\telse\n\t{\n\t\tif( libfdata_range_get(\n\t\t segment_data_range,\n\t\t &previous_segment_file_index,\n\t\t &previous_segment_offset,\n\t\t &previous_segment_size,\n\t\t &previous_segment_flags,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve segment: %d data range values.\",\n\t\t\t function,\n\t\t\t segment_index );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\t*data_size -= previous_segment_size;\n\t}\n\tif( libfdata_range_set(\n\t segment_data_range,\n\t segment_file_index,\n\t segment_offset,\n\t segment_size,\n\t segment_flags,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set segment data range values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t\n\tif( libcdata_array_get_entry_by_index(\n\t mapped_ranges_array,\n\t segment_index,\n\t (intptr_t **) &mapped_range,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve entry: %d from mapped ranges array.\",\n\t\t function,\n\t\t segment_index );\n\n\t\treturn( -1 );\n\t}\n\tif( mapped_range == NULL )\n\t{\n\t\tif( libfdata_mapped_range_initialize(\n\t\t &mapped_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create mapped range.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( libcdata_array_set_entry_by_index(\n\t\t mapped_ranges_array,\n\t\t segment_index,\n\t\t (intptr_t *) mapped_range,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t\t \"%s: unable to set entry: %d in mapped ranges array.\",\n\t\t\t function,\n\t\t\t segment_index );\n\n\t\t\tlibfdata_mapped_range_free(\n\t\t\t &mapped_range,\n\t\t\t NULL );\n\n\t\t\treturn( -1 );\n\t\t}\n\t}\n\t*data_size += segment_size;\n\n\treturn( 1 );\n}", "Selected Statement": "uint32_t previous_segment_flags = 0;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1004fb7c6\n", "message": "Cannot access memory at address 0x1004fb7c6"}}, "segment_file_index": {"value": "48"}, "segment_flags": {"value": "32767"}, "segment_index": {"value": "1"}, "segment_offset": {"value": "17174704"}, "segment_size": {"value": "5113557"}, "segments_array": {"value": {"type_category": "unknown", "concrete_type": "libcdata_array_t", "value": "3525336957436119125"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 15, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libfdata_range_initialize(\n libfdata_range_t **range,\n libcerror_error_t **error )\n{\n\tstatic char *function = \"libfdata_range_initialize\";\n\n\tif( range == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid range.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *range != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid range value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*range = memory_allocate_structure(\n\t libfdata_range_t );\n\n\tif( *range == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create range.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t *range,\n\t 0,\n\t sizeof( libfdata_range_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear range.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *range )->file_index = -1;\n\t( *range )->offset = (off64_t) -1;\n\n\treturn( 1 );\n\non_error:\n\tif( *range != NULL )\n\t{\n\t\tmemory_free(\n\t\t *range );\n\n\t\t*range = NULL;\n\t}\n\treturn( -1 );\n}", "Selected Statement": "( *range )->file_index = -1;", "Function Input": {"error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x4e039f ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x858bffffff608d8b\n", "message": "Cannot access memory at address 0x858bffffff608d8b"}}}, "range": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x1073810", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x100000010\n", "message": "Cannot access memory at address 0x100000010"}}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 55, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libagdb_compressed_blocks_stream_initialize(\n libfdata_stream_t **compressed_blocks_stream,\n libfdata_list_t *compressed_blocks_list,\n libfcache_cache_t *compressed_blocks_cache,\n libcerror_error_t **error )\n{\n\tlibagdb_compressed_blocks_stream_data_handle_t *data_handle = NULL;\n\tstatic char *function = \"libagdb_compressed_blocks_stream_initialize\";\n\toff64_t segment_offset = 0;\n\tsize64_t segment_size = 0;\n\tint element_index = 0;\n\tint number_of_elements = 0;\n\tint segment_index = 0;\n\n\tif( compressed_blocks_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed block stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( compressed_blocks_list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed blocks list.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libagdb_compressed_blocks_stream_data_handle_initialize(\n\t &data_handle,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( data_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: missing data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tdata_handle->compressed_blocks_list = compressed_blocks_list;\n\tdata_handle->compressed_blocks_cache = compressed_blocks_cache;\n\n\tif( libfdata_stream_initialize(\n\t compressed_blocks_stream,\n\t (intptr_t *) data_handle,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_free,\n\t NULL,\n\t NULL,\n\t (ssize_t (*)(intptr_t *, intptr_t *, int, int, uint8_t *, size_t, uint32_t, uint8_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_read_segment_data,\n\t NULL,\n\t (off64_t (*)(intptr_t *, intptr_t *, int, int, off64_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_seek_segment_offset,\n\t LIBFDATA_DATA_HANDLE_FLAG_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfdata_list_get_number_of_elements(\n\t compressed_blocks_list,\n\t &number_of_elements,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of compressed blocks list elements.\",\n\t\t function );\n\n\t\tdata_handle = NULL;\n\n\t\tgoto on_error;\n\t}\n\tfor( element_index = 0;\n\t element_index < number_of_elements;\n\t element_index++ )\n\t{\n\t\tif( libfdata_list_get_mapped_size_by_index(\n\t\t compressed_blocks_list,\n\t\t element_index,\n\t\t &segment_size,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve compressed blocks list element: %d mapped size.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfdata_stream_append_segment(\n\t\t *compressed_blocks_stream,\n\t\t &segment_index,\n\t\t 0,\n\t\t segment_offset,\n\t\t segment_size,\n\t\t 0,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_APPEND_FAILED,\n\t\t\t \"%s: unable to append compressed blocks stream segment: %d.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tsegment_offset += segment_size;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *compressed_blocks_stream != NULL )\n\t{\n\t\tlibfdata_stream_free(\n\t\t compressed_blocks_stream,\n\t\t NULL );\n\t}\n\tif( data_handle != NULL )\n\t{\n\t\tlibagdb_compressed_blocks_stream_data_handle_free(\n\t\t &data_handle,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "static char *function = \"libagdb_compressed_blocks_stream_initialize\";", "Function Input": {"compressed_blocks_cache": {"value": null}, "compressed_blocks_list": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x801087060\n", "message": "Cannot access memory at address 0x801087060"}}, "compressed_blocks_stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x11e6400", "value": {"type_category": "unknown", "concrete_type": "libfdata_stream_t", "value": "17303920"}}}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x108a300", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "34359738384"}}}}, "Variable Values Before Statement": {"constant": "\"libagdb_compressed_blocks_stream_initialize\""}, "Value After Statement Execution": "\"libagdb_compressed_blocks_stream_initialize\"", "Block_Size": 6, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libagdb_compressed_blocks_stream_initialize(\n libfdata_stream_t **compressed_blocks_stream,\n libfdata_list_t *compressed_blocks_list,\n libfcache_cache_t *compressed_blocks_cache,\n libcerror_error_t **error )\n{\n\tlibagdb_compressed_blocks_stream_data_handle_t *data_handle = NULL;\n\tstatic char *function = \"libagdb_compressed_blocks_stream_initialize\";\n\toff64_t segment_offset = 0;\n\tsize64_t segment_size = 0;\n\tint element_index = 0;\n\tint number_of_elements = 0;\n\tint segment_index = 0;\n\n\tif( compressed_blocks_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed block stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( compressed_blocks_list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed blocks list.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libagdb_compressed_blocks_stream_data_handle_initialize(\n\t &data_handle,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( data_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: missing data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tdata_handle->compressed_blocks_list = compressed_blocks_list;\n\tdata_handle->compressed_blocks_cache = compressed_blocks_cache;\n\n\tif( libfdata_stream_initialize(\n\t compressed_blocks_stream,\n\t (intptr_t *) data_handle,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_free,\n\t NULL,\n\t NULL,\n\t (ssize_t (*)(intptr_t *, intptr_t *, int, int, uint8_t *, size_t, uint32_t, uint8_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_read_segment_data,\n\t NULL,\n\t (off64_t (*)(intptr_t *, intptr_t *, int, int, off64_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_seek_segment_offset,\n\t LIBFDATA_DATA_HANDLE_FLAG_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfdata_list_get_number_of_elements(\n\t compressed_blocks_list,\n\t &number_of_elements,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of compressed blocks list elements.\",\n\t\t function );\n\n\t\tdata_handle = NULL;\n\n\t\tgoto on_error;\n\t}\n\tfor( element_index = 0;\n\t element_index < number_of_elements;\n\t element_index++ )\n\t{\n\t\tif( libfdata_list_get_mapped_size_by_index(\n\t\t compressed_blocks_list,\n\t\t element_index,\n\t\t &segment_size,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve compressed blocks list element: %d mapped size.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfdata_stream_append_segment(\n\t\t *compressed_blocks_stream,\n\t\t &segment_index,\n\t\t 0,\n\t\t segment_offset,\n\t\t segment_size,\n\t\t 0,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_APPEND_FAILED,\n\t\t\t \"%s: unable to append compressed blocks stream segment: %d.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tsegment_offset += segment_size;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *compressed_blocks_stream != NULL )\n\t{\n\t\tlibfdata_stream_free(\n\t\t compressed_blocks_stream,\n\t\t NULL );\n\t}\n\tif( data_handle != NULL )\n\t{\n\t\tlibagdb_compressed_blocks_stream_data_handle_free(\n\t\t &data_handle,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "off64_t segment_offset = 0;", "Function Input": {"compressed_blocks_cache": {"value": null}, "compressed_blocks_list": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x801087060\n", "message": "Cannot access memory at address 0x801087060"}}, "compressed_blocks_stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x11e6400", "value": {"type_category": "unknown", "concrete_type": "libfdata_stream_t", "value": "17303920"}}}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x108a300", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "34359738384"}}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 7, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libagdb_compressed_blocks_stream_initialize(\n libfdata_stream_t **compressed_blocks_stream,\n libfdata_list_t *compressed_blocks_list,\n libfcache_cache_t *compressed_blocks_cache,\n libcerror_error_t **error )\n{\n\tlibagdb_compressed_blocks_stream_data_handle_t *data_handle = NULL;\n\tstatic char *function = \"libagdb_compressed_blocks_stream_initialize\";\n\toff64_t segment_offset = 0;\n\tsize64_t segment_size = 0;\n\tint element_index = 0;\n\tint number_of_elements = 0;\n\tint segment_index = 0;\n\n\tif( compressed_blocks_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed block stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( compressed_blocks_list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed blocks list.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libagdb_compressed_blocks_stream_data_handle_initialize(\n\t &data_handle,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( data_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: missing data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tdata_handle->compressed_blocks_list = compressed_blocks_list;\n\tdata_handle->compressed_blocks_cache = compressed_blocks_cache;\n\n\tif( libfdata_stream_initialize(\n\t compressed_blocks_stream,\n\t (intptr_t *) data_handle,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_free,\n\t NULL,\n\t NULL,\n\t (ssize_t (*)(intptr_t *, intptr_t *, int, int, uint8_t *, size_t, uint32_t, uint8_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_read_segment_data,\n\t NULL,\n\t (off64_t (*)(intptr_t *, intptr_t *, int, int, off64_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_seek_segment_offset,\n\t LIBFDATA_DATA_HANDLE_FLAG_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfdata_list_get_number_of_elements(\n\t compressed_blocks_list,\n\t &number_of_elements,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of compressed blocks list elements.\",\n\t\t function );\n\n\t\tdata_handle = NULL;\n\n\t\tgoto on_error;\n\t}\n\tfor( element_index = 0;\n\t element_index < number_of_elements;\n\t element_index++ )\n\t{\n\t\tif( libfdata_list_get_mapped_size_by_index(\n\t\t compressed_blocks_list,\n\t\t element_index,\n\t\t &segment_size,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve compressed blocks list element: %d mapped size.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfdata_stream_append_segment(\n\t\t *compressed_blocks_stream,\n\t\t &segment_index,\n\t\t 0,\n\t\t segment_offset,\n\t\t segment_size,\n\t\t 0,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_APPEND_FAILED,\n\t\t\t \"%s: unable to append compressed blocks stream segment: %d.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tsegment_offset += segment_size;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *compressed_blocks_stream != NULL )\n\t{\n\t\tlibfdata_stream_free(\n\t\t compressed_blocks_stream,\n\t\t NULL );\n\t}\n\tif( data_handle != NULL )\n\t{\n\t\tlibagdb_compressed_blocks_stream_data_handle_free(\n\t\t &data_handle,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "size64_t segment_size = 0;", "Function Input": {"compressed_blocks_cache": {"value": null}, "compressed_blocks_list": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x801087060\n", "message": "Cannot access memory at address 0x801087060"}}, "compressed_blocks_stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x11e6400", "value": {"type_category": "unknown", "concrete_type": "libfdata_stream_t", "value": "17303920"}}}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x108a300", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "34359738384"}}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 8, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libagdb_compressed_blocks_stream_initialize(\n libfdata_stream_t **compressed_blocks_stream,\n libfdata_list_t *compressed_blocks_list,\n libfcache_cache_t *compressed_blocks_cache,\n libcerror_error_t **error )\n{\n\tlibagdb_compressed_blocks_stream_data_handle_t *data_handle = NULL;\n\tstatic char *function = \"libagdb_compressed_blocks_stream_initialize\";\n\toff64_t segment_offset = 0;\n\tsize64_t segment_size = 0;\n\tint element_index = 0;\n\tint number_of_elements = 0;\n\tint segment_index = 0;\n\n\tif( compressed_blocks_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed block stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( compressed_blocks_list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed blocks list.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libagdb_compressed_blocks_stream_data_handle_initialize(\n\t &data_handle,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( data_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: missing data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tdata_handle->compressed_blocks_list = compressed_blocks_list;\n\tdata_handle->compressed_blocks_cache = compressed_blocks_cache;\n\n\tif( libfdata_stream_initialize(\n\t compressed_blocks_stream,\n\t (intptr_t *) data_handle,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_free,\n\t NULL,\n\t NULL,\n\t (ssize_t (*)(intptr_t *, intptr_t *, int, int, uint8_t *, size_t, uint32_t, uint8_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_read_segment_data,\n\t NULL,\n\t (off64_t (*)(intptr_t *, intptr_t *, int, int, off64_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_seek_segment_offset,\n\t LIBFDATA_DATA_HANDLE_FLAG_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfdata_list_get_number_of_elements(\n\t compressed_blocks_list,\n\t &number_of_elements,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of compressed blocks list elements.\",\n\t\t function );\n\n\t\tdata_handle = NULL;\n\n\t\tgoto on_error;\n\t}\n\tfor( element_index = 0;\n\t element_index < number_of_elements;\n\t element_index++ )\n\t{\n\t\tif( libfdata_list_get_mapped_size_by_index(\n\t\t compressed_blocks_list,\n\t\t element_index,\n\t\t &segment_size,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve compressed blocks list element: %d mapped size.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfdata_stream_append_segment(\n\t\t *compressed_blocks_stream,\n\t\t &segment_index,\n\t\t 0,\n\t\t segment_offset,\n\t\t segment_size,\n\t\t 0,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_APPEND_FAILED,\n\t\t\t \"%s: unable to append compressed blocks stream segment: %d.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tsegment_offset += segment_size;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *compressed_blocks_stream != NULL )\n\t{\n\t\tlibfdata_stream_free(\n\t\t compressed_blocks_stream,\n\t\t NULL );\n\t}\n\tif( data_handle != NULL )\n\t{\n\t\tlibagdb_compressed_blocks_stream_data_handle_free(\n\t\t &data_handle,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "int element_index = 0;", "Function Input": {"compressed_blocks_cache": {"value": null}, "compressed_blocks_list": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x801087060\n", "message": "Cannot access memory at address 0x801087060"}}, "compressed_blocks_stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x11e6400", "value": {"type_category": "unknown", "concrete_type": "libfdata_stream_t", "value": "17303920"}}}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x108a300", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "34359738384"}}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 9, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libagdb_compressed_blocks_stream_initialize(\n libfdata_stream_t **compressed_blocks_stream,\n libfdata_list_t *compressed_blocks_list,\n libfcache_cache_t *compressed_blocks_cache,\n libcerror_error_t **error )\n{\n\tlibagdb_compressed_blocks_stream_data_handle_t *data_handle = NULL;\n\tstatic char *function = \"libagdb_compressed_blocks_stream_initialize\";\n\toff64_t segment_offset = 0;\n\tsize64_t segment_size = 0;\n\tint element_index = 0;\n\tint number_of_elements = 0;\n\tint segment_index = 0;\n\n\tif( compressed_blocks_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed block stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( compressed_blocks_list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed blocks list.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libagdb_compressed_blocks_stream_data_handle_initialize(\n\t &data_handle,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( data_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: missing data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tdata_handle->compressed_blocks_list = compressed_blocks_list;\n\tdata_handle->compressed_blocks_cache = compressed_blocks_cache;\n\n\tif( libfdata_stream_initialize(\n\t compressed_blocks_stream,\n\t (intptr_t *) data_handle,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_free,\n\t NULL,\n\t NULL,\n\t (ssize_t (*)(intptr_t *, intptr_t *, int, int, uint8_t *, size_t, uint32_t, uint8_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_read_segment_data,\n\t NULL,\n\t (off64_t (*)(intptr_t *, intptr_t *, int, int, off64_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_seek_segment_offset,\n\t LIBFDATA_DATA_HANDLE_FLAG_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfdata_list_get_number_of_elements(\n\t compressed_blocks_list,\n\t &number_of_elements,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of compressed blocks list elements.\",\n\t\t function );\n\n\t\tdata_handle = NULL;\n\n\t\tgoto on_error;\n\t}\n\tfor( element_index = 0;\n\t element_index < number_of_elements;\n\t element_index++ )\n\t{\n\t\tif( libfdata_list_get_mapped_size_by_index(\n\t\t compressed_blocks_list,\n\t\t element_index,\n\t\t &segment_size,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve compressed blocks list element: %d mapped size.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfdata_stream_append_segment(\n\t\t *compressed_blocks_stream,\n\t\t &segment_index,\n\t\t 0,\n\t\t segment_offset,\n\t\t segment_size,\n\t\t 0,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_APPEND_FAILED,\n\t\t\t \"%s: unable to append compressed blocks stream segment: %d.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tsegment_offset += segment_size;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *compressed_blocks_stream != NULL )\n\t{\n\t\tlibfdata_stream_free(\n\t\t compressed_blocks_stream,\n\t\t NULL );\n\t}\n\tif( data_handle != NULL )\n\t{\n\t\tlibagdb_compressed_blocks_stream_data_handle_free(\n\t\t &data_handle,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "int number_of_elements = 0;", "Function Input": {"compressed_blocks_cache": {"value": null}, "compressed_blocks_list": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x801087060\n", "message": "Cannot access memory at address 0x801087060"}}, "compressed_blocks_stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x11e6400", "value": {"type_category": "unknown", "concrete_type": "libfdata_stream_t", "value": "17303920"}}}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x108a300", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "34359738384"}}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 10, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libagdb_compressed_blocks_stream_initialize(\n libfdata_stream_t **compressed_blocks_stream,\n libfdata_list_t *compressed_blocks_list,\n libfcache_cache_t *compressed_blocks_cache,\n libcerror_error_t **error )\n{\n\tlibagdb_compressed_blocks_stream_data_handle_t *data_handle = NULL;\n\tstatic char *function = \"libagdb_compressed_blocks_stream_initialize\";\n\toff64_t segment_offset = 0;\n\tsize64_t segment_size = 0;\n\tint element_index = 0;\n\tint number_of_elements = 0;\n\tint segment_index = 0;\n\n\tif( compressed_blocks_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed block stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( compressed_blocks_list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed blocks list.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libagdb_compressed_blocks_stream_data_handle_initialize(\n\t &data_handle,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( data_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: missing data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tdata_handle->compressed_blocks_list = compressed_blocks_list;\n\tdata_handle->compressed_blocks_cache = compressed_blocks_cache;\n\n\tif( libfdata_stream_initialize(\n\t compressed_blocks_stream,\n\t (intptr_t *) data_handle,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_free,\n\t NULL,\n\t NULL,\n\t (ssize_t (*)(intptr_t *, intptr_t *, int, int, uint8_t *, size_t, uint32_t, uint8_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_read_segment_data,\n\t NULL,\n\t (off64_t (*)(intptr_t *, intptr_t *, int, int, off64_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_seek_segment_offset,\n\t LIBFDATA_DATA_HANDLE_FLAG_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfdata_list_get_number_of_elements(\n\t compressed_blocks_list,\n\t &number_of_elements,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of compressed blocks list elements.\",\n\t\t function );\n\n\t\tdata_handle = NULL;\n\n\t\tgoto on_error;\n\t}\n\tfor( element_index = 0;\n\t element_index < number_of_elements;\n\t element_index++ )\n\t{\n\t\tif( libfdata_list_get_mapped_size_by_index(\n\t\t compressed_blocks_list,\n\t\t element_index,\n\t\t &segment_size,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve compressed blocks list element: %d mapped size.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfdata_stream_append_segment(\n\t\t *compressed_blocks_stream,\n\t\t &segment_index,\n\t\t 0,\n\t\t segment_offset,\n\t\t segment_size,\n\t\t 0,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_APPEND_FAILED,\n\t\t\t \"%s: unable to append compressed blocks stream segment: %d.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tsegment_offset += segment_size;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *compressed_blocks_stream != NULL )\n\t{\n\t\tlibfdata_stream_free(\n\t\t compressed_blocks_stream,\n\t\t NULL );\n\t}\n\tif( data_handle != NULL )\n\t{\n\t\tlibagdb_compressed_blocks_stream_data_handle_free(\n\t\t &data_handle,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "data_handle->compressed_blocks_list = compressed_blocks_list;", "Function Input": {"compressed_blocks_cache": {"value": null}, "compressed_blocks_list": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x801087060\n", "message": "Cannot access memory at address 0x801087060"}}, "compressed_blocks_stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x11e6400", "value": {"type_category": "unknown", "concrete_type": "libfdata_stream_t", "value": "17303920"}}}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x108a300", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "34359738384"}}}}, "Variable Values Before Statement": {"compressed_blocks_list": "0"}, "Value After Statement Execution": "0", "Block_Size": 59, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "int libagdb_compressed_blocks_stream_initialize(\n libfdata_stream_t **compressed_blocks_stream,\n libfdata_list_t *compressed_blocks_list,\n libfcache_cache_t *compressed_blocks_cache,\n libcerror_error_t **error )\n{\n\tlibagdb_compressed_blocks_stream_data_handle_t *data_handle = NULL;\n\tstatic char *function = \"libagdb_compressed_blocks_stream_initialize\";\n\toff64_t segment_offset = 0;\n\tsize64_t segment_size = 0;\n\tint element_index = 0;\n\tint number_of_elements = 0;\n\tint segment_index = 0;\n\n\tif( compressed_blocks_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed block stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( compressed_blocks_list == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid compressed blocks list.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libagdb_compressed_blocks_stream_data_handle_initialize(\n\t &data_handle,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( data_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: missing data handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tdata_handle->compressed_blocks_list = compressed_blocks_list;\n\tdata_handle->compressed_blocks_cache = compressed_blocks_cache;\n\n\tif( libfdata_stream_initialize(\n\t compressed_blocks_stream,\n\t (intptr_t *) data_handle,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_free,\n\t NULL,\n\t NULL,\n\t (ssize_t (*)(intptr_t *, intptr_t *, int, int, uint8_t *, size_t, uint32_t, uint8_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_read_segment_data,\n\t NULL,\n\t (off64_t (*)(intptr_t *, intptr_t *, int, int, off64_t, libcerror_error_t **)) &libagdb_compressed_blocks_stream_data_handle_seek_segment_offset,\n\t LIBFDATA_DATA_HANDLE_FLAG_MANAGED,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create stream.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfdata_list_get_number_of_elements(\n\t compressed_blocks_list,\n\t &number_of_elements,\n\t error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of compressed blocks list elements.\",\n\t\t function );\n\n\t\tdata_handle = NULL;\n\n\t\tgoto on_error;\n\t}\n\tfor( element_index = 0;\n\t element_index < number_of_elements;\n\t element_index++ )\n\t{\n\t\tif( libfdata_list_get_mapped_size_by_index(\n\t\t compressed_blocks_list,\n\t\t element_index,\n\t\t &segment_size,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve compressed blocks list element: %d mapped size.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfdata_stream_append_segment(\n\t\t *compressed_blocks_stream,\n\t\t &segment_index,\n\t\t 0,\n\t\t segment_offset,\n\t\t segment_size,\n\t\t 0,\n\t\t error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_APPEND_FAILED,\n\t\t\t \"%s: unable to append compressed blocks stream segment: %d.\",\n\t\t\t function,\n\t\t\t element_index );\n\n\t\t\tdata_handle = NULL;\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tsegment_offset += segment_size;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *compressed_blocks_stream != NULL )\n\t{\n\t\tlibfdata_stream_free(\n\t\t compressed_blocks_stream,\n\t\t NULL );\n\t}\n\tif( data_handle != NULL )\n\t{\n\t\tlibagdb_compressed_blocks_stream_data_handle_free(\n\t\t &data_handle,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}", "Selected Statement": "for( element_index = 0;", "Function Input": {"compressed_blocks_cache": {"value": null}, "compressed_blocks_list": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x801087060\n", "message": "Cannot access memory at address 0x801087060"}}, "compressed_blocks_stream": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x11e6400", "value": {"type_category": "unknown", "concrete_type": "libfdata_stream_t", "value": "17303920"}}}, "error": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x108a300", "value": {"type_category": "unknown", "concrete_type": "libcerror_error_t", "value": "34359738384"}}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 99, "Project Information": "libyal"} +{"Programming Language": "C", "Source Code": "void\ninit_parse_tree(struct sudoers_parse_tree *parse_tree, char *lhost, char *shost,\n struct sudoers_context *ctx, struct sudo_nss *nss)\n{\n TAILQ_INIT(&parse_tree->userspecs);\n TAILQ_INIT(&parse_tree->defaults);\n parse_tree->aliases = NULL;\n parse_tree->shost = shost;\n parse_tree->lhost = lhost;\n parse_tree->ctx = ctx;\n parse_tree->nss = nss;\n}", "Selected Statement": "parse_tree->shost = shost;", "Function Input": {}, "Variable Values Before Statement": {"shost": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 5, "Project Information": "sudoers"} +{"Programming Language": "C", "Source Code": "void\ninit_parse_tree(struct sudoers_parse_tree *parse_tree, char *lhost, char *shost,\n struct sudoers_context *ctx, struct sudo_nss *nss)\n{\n TAILQ_INIT(&parse_tree->userspecs);\n TAILQ_INIT(&parse_tree->defaults);\n parse_tree->aliases = NULL;\n parse_tree->shost = shost;\n parse_tree->lhost = lhost;\n parse_tree->ctx = ctx;\n parse_tree->nss = nss;\n}", "Selected Statement": "parse_tree->lhost = lhost;", "Function Input": {}, "Variable Values Before Statement": {"lhost": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 6, "Project Information": "sudoers"} +{"Programming Language": "C", "Source Code": "void\ninit_parse_tree(struct sudoers_parse_tree *parse_tree, char *lhost, char *shost,\n struct sudoers_context *ctx, struct sudo_nss *nss)\n{\n TAILQ_INIT(&parse_tree->userspecs);\n TAILQ_INIT(&parse_tree->defaults);\n parse_tree->aliases = NULL;\n parse_tree->shost = shost;\n parse_tree->lhost = lhost;\n parse_tree->ctx = ctx;\n parse_tree->nss = nss;\n}", "Selected Statement": "parse_tree->ctx = ctx;", "Function Input": {}, "Variable Values Before Statement": {"ctx": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 7, "Project Information": "sudoers"} +{"Programming Language": "C", "Source Code": "void\ninit_parse_tree(struct sudoers_parse_tree *parse_tree, char *lhost, char *shost,\n struct sudoers_context *ctx, struct sudo_nss *nss)\n{\n TAILQ_INIT(&parse_tree->userspecs);\n TAILQ_INIT(&parse_tree->defaults);\n parse_tree->aliases = NULL;\n parse_tree->shost = shost;\n parse_tree->lhost = lhost;\n parse_tree->ctx = ctx;\n parse_tree->nss = nss;\n}", "Selected Statement": "parse_tree->nss = nss;", "Function Input": {}, "Variable Values Before Statement": {"nss": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 8, "Project Information": "sudoers"} +{"Programming Language": "C", "Source Code": "size_t\nstrlcpy(char *dst, const char *src, size_t size) {\n\tchar *d = dst;\n\tconst char *s = src;\n\tsize_t n = size;\n\n\t\n\tif (n != 0U && --n != 0U) {\n\t\tdo {\n\t\t\tif ((*d++ = *s++) == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (--n != 0U);\n\t}\n\n\t\n\tif (n == 0U) {\n\t\tif (size != 0U) {\n\t\t\t*d = '\\0'; \n\t\t}\n\t\twhile (*s++) {\n\t\t}\n\t}\n\n\treturn (s - src - 1); \n}", "Selected Statement": "const char *s = src;", "Function Input": {}, "Variable Values Before Statement": {"src": "0x7fffffffde00 \"buffer-0x7fffffffdee8\""}, "Value After Statement Execution": "0x7fffffffde00 \"buffer-0x7fffffffdee8\"", "Block_Size": 1, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "static isc_result_t\nparse_message(isc_buffer_t *input, dns_message_t **messagep) {\n\tisc_result_t result;\n\tdns_message_t *message = NULL;\n\n\tdns_message_create(mctx, NULL, NULL, DNS_MESSAGE_INTENTPARSE, &message);\n\n\tresult = dns_message_parse(message, input, DNS_MESSAGEPARSE_BESTEFFORT);\n\tif (result == DNS_R_RECOVERABLE) {\n\t\tresult = ISC_R_SUCCESS;\n\t}\n\n\tif (result == ISC_R_SUCCESS && messagep != NULL) {\n\t\t*messagep = message;\n\t} else {\n\t\tdns_message_detach(&message);\n\t}\n\n\treturn (result);\n}", "Selected Statement": "result = dns_message_parse(message, input, DNS_MESSAGEPARSE_BESTEFFORT);", "Function Input": {}, "Variable Values Before Statement": {"message": {"magic": "1297303360", "references": "1", "id": "0", "flags": "0", "rcode": "0", "opcode": "0", "rdclass": "0", "counts": [{"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}], "sections": [{"type_category": "struct", "concrete_type": "STRUCT", "value": {"head": {"type_category": "pointer", "concrete_type": "NULL"}, "tail": {"type_category": "pointer", "concrete_type": "NULL"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"head": {"type_category": "pointer", "concrete_type": "NULL"}, "tail": {"type_category": "pointer", "concrete_type": "NULL"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"head": {"type_category": "pointer", "concrete_type": "NULL"}, "tail": {"type_category": "pointer", "concrete_type": "NULL"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"head": {"type_category": "pointer", "concrete_type": "NULL"}, "tail": {"type_category": "pointer", "concrete_type": "NULL"}}}], "cursors": [{"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}, {"type_category": "pointer", "concrete_type": "NULL"}], "opt": null, "sig0": null, "tsig": null, "state": "-1", "from_to_wire": "DNS_MESSAGE_INTENTPARSE", "header_ok": "0", "question_ok": "0", "tcp_continuation": "0", "verified_sig": "0", "verify_attempted": "0", "free_query": "0", "free_saved": "0", "cc_ok": "0", "cc_bad": "0", "cc_echoed": "0", "tkey": "0", "rdclass_set": "0", "fuzzing": "0", "free_pools": "1", "opt_reserved": "0", "sig_reserved": "0", "reserved": "0", "padding": "0", "padding_off": "0", "buffer": null, "cctx": null, "mctx": null, "namepool": "{magic = 1296387440, mctx = 0x1892a50, link = {prev = 0x0, next = 0x18961f0}, items = 0x0, size = 536, allocated = 0, freecount = 0, freemax = 8192, fillcount = 1024, gets = 0, name = \"dns_fixedname_p\"}", "rdspool": "{magic = 1296387440, mctx = 0x1892a50, link = {prev = 0x1897d10, next = 0x0}, items = 0x0, size = 112, allocated = 0, freecount = 0, freemax = 8192, fillcount = 1024, gets = 0, name = \"dns_rdataset_po\"}", "scratchpad": null, "cleanup": null, "rdatas": null, "rdatalists": null, "offsets": null, "freerdata": null, "freerdatalist": null, "tsigstatus": "0", "querytsigstatus": "0", "tsigname": null, "querytsig": null, "tsigkey": null, "tsigctx": null, "sigstart": "-1", "timeadjust": "0", "sig0name": null, "sig0key": null, "sig0status": "0", "query": null, "saved": null, "fuzztime": "0", "order": null, "order_arg": null, "indent": null, "minttl": [{"type_category": "struct", "concrete_type": "STRUCT", "value": {"is_set": {"type_category": "unknown", "concrete_type": "_Bool", "value": "false"}, "ttl": {"type_category": "unknown", "concrete_type": "dns_ttl_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"is_set": {"type_category": "unknown", "concrete_type": "_Bool", "value": "false"}, "ttl": {"type_category": "unknown", "concrete_type": "dns_ttl_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"is_set": {"type_category": "unknown", "concrete_type": "_Bool", "value": "false"}, "ttl": {"type_category": "unknown", "concrete_type": "dns_ttl_t", "value": "0"}}}, {"type_category": "struct", "concrete_type": "STRUCT", "value": {"is_set": {"type_category": "unknown", "concrete_type": "_Bool", "value": "false"}, "ttl": {"type_category": "unknown", "concrete_type": "dns_ttl_t", "value": "0"}}}]}, "input": {"magic": "1114990113", "base": null, "length": "0", "used": "0", "current": "0", "active": "0", "extra": "0", "dynamic": "false", "link": null, "mctx": null}, "DNS_MESSAGEPARSE_BESTEFFORT": "NULL"}, "Value After Statement Execution": "isc_result_t", "Function Name": "dns_message_parse", "Block_Size": 5, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "void\ndns_message_create(isc_mem_t *mctx, isc_mempool_t *namepool,\n\t\t isc_mempool_t *rdspool, dns_message_intent_t intent,\n\t\t dns_message_t **msgp) {\n\tREQUIRE(mctx != NULL);\n\tREQUIRE(msgp != NULL);\n\tREQUIRE(*msgp == NULL);\n\tREQUIRE(intent == DNS_MESSAGE_INTENTPARSE ||\n\t\tintent == DNS_MESSAGE_INTENTRENDER);\n\tREQUIRE((namepool != NULL && rdspool != NULL) ||\n\t\t(namepool == NULL && rdspool == NULL));\n\n\tdns_message_t *msg = isc_mem_get(mctx, sizeof(dns_message_t));\n\t*msg = (dns_message_t){\n\t\t.from_to_wire = intent,\n\t\t.references = ISC_REFCOUNT_INITIALIZER(1),\n\t\t.scratchpad = ISC_LIST_INITIALIZER,\n\t\t.cleanup = ISC_LIST_INITIALIZER,\n\t\t.rdatas = ISC_LIST_INITIALIZER,\n\t\t.rdatalists = ISC_LIST_INITIALIZER,\n\t\t.offsets = ISC_LIST_INITIALIZER,\n\t\t.freerdata = ISC_LIST_INITIALIZER,\n\t\t.freerdatalist = ISC_LIST_INITIALIZER,\n\t\t.magic = DNS_MESSAGE_MAGIC,\n\t\t.namepool = namepool,\n\t\t.rdspool = rdspool,\n\t\t.free_pools = (namepool == NULL && rdspool == NULL),\n\t};\n\n\tisc_mem_attach(mctx, &msg->mctx);\n\n\tif (msg->free_pools) {\n\t\tdns_message_createpools(mctx, &msg->namepool, &msg->rdspool);\n\t}\n\n\tmsginit(msg);\n\n\tfor (size_t i = 0; i < DNS_SECTION_MAX; i++) {\n\t\tISC_LIST_INIT(msg->sections[i]);\n\t}\n\n\tisc_buffer_t *dynbuf = NULL;\n\tisc_buffer_allocate(mctx, &dynbuf, SCRATCHPAD_SIZE);\n\tISC_LIST_APPEND(msg->scratchpad, dynbuf, link);\n\n\t*msgp = msg;\n}", "Selected Statement": "dns_message_t *msg = isc_mem_get(mctx, sizeof(dns_message_t));", "Function Input": {}, "Variable Values Before Statement": {"mctx": {"magic": "1298492739", "flags": "4", "jemalloc_flags": "0", "jemalloc_arena": "4294967295", "debugging": "0", "lock": null, "checkfree": "true", "references": "1", "name": "\"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\"", "inuse": "1568", "hi_called": "false", "is_overmem": "false", "hi_water": "0", "lo_water": "0", "pools": null, "poolcnt": "0", "debuglist": null, "debuglistcnt": "0", "link": null}}, "Value After Statement Execution": "NULL", "Function Name": "isc_mem_get", "Block_Size": 10, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "void\ndns_message_create(isc_mem_t *mctx, isc_mempool_t *namepool,\n\t\t isc_mempool_t *rdspool, dns_message_intent_t intent,\n\t\t dns_message_t **msgp) {\n\tREQUIRE(mctx != NULL);\n\tREQUIRE(msgp != NULL);\n\tREQUIRE(*msgp == NULL);\n\tREQUIRE(intent == DNS_MESSAGE_INTENTPARSE ||\n\t\tintent == DNS_MESSAGE_INTENTRENDER);\n\tREQUIRE((namepool != NULL && rdspool != NULL) ||\n\t\t(namepool == NULL && rdspool == NULL));\n\n\tdns_message_t *msg = isc_mem_get(mctx, sizeof(dns_message_t));\n\t*msg = (dns_message_t){\n\t\t.from_to_wire = intent,\n\t\t.references = ISC_REFCOUNT_INITIALIZER(1),\n\t\t.scratchpad = ISC_LIST_INITIALIZER,\n\t\t.cleanup = ISC_LIST_INITIALIZER,\n\t\t.rdatas = ISC_LIST_INITIALIZER,\n\t\t.rdatalists = ISC_LIST_INITIALIZER,\n\t\t.offsets = ISC_LIST_INITIALIZER,\n\t\t.freerdata = ISC_LIST_INITIALIZER,\n\t\t.freerdatalist = ISC_LIST_INITIALIZER,\n\t\t.magic = DNS_MESSAGE_MAGIC,\n\t\t.namepool = namepool,\n\t\t.rdspool = rdspool,\n\t\t.free_pools = (namepool == NULL && rdspool == NULL),\n\t};\n\n\tisc_mem_attach(mctx, &msg->mctx);\n\n\tif (msg->free_pools) {\n\t\tdns_message_createpools(mctx, &msg->namepool, &msg->rdspool);\n\t}\n\n\tmsginit(msg);\n\n\tfor (size_t i = 0; i < DNS_SECTION_MAX; i++) {\n\t\tISC_LIST_INIT(msg->sections[i]);\n\t}\n\n\tisc_buffer_t *dynbuf = NULL;\n\tisc_buffer_allocate(mctx, &dynbuf, SCRATCHPAD_SIZE);\n\tISC_LIST_APPEND(msg->scratchpad, dynbuf, link);\n\n\t*msgp = msg;\n}", "Selected Statement": ".magic = DNS_MESSAGE_MAGIC,", "Function Input": {}, "Variable Values Before Statement": {"DNS_MESSAGE_MAGIC": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 21, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "void\ndns_message_create(isc_mem_t *mctx, isc_mempool_t *namepool,\n\t\t isc_mempool_t *rdspool, dns_message_intent_t intent,\n\t\t dns_message_t **msgp) {\n\tREQUIRE(mctx != NULL);\n\tREQUIRE(msgp != NULL);\n\tREQUIRE(*msgp == NULL);\n\tREQUIRE(intent == DNS_MESSAGE_INTENTPARSE ||\n\t\tintent == DNS_MESSAGE_INTENTRENDER);\n\tREQUIRE((namepool != NULL && rdspool != NULL) ||\n\t\t(namepool == NULL && rdspool == NULL));\n\n\tdns_message_t *msg = isc_mem_get(mctx, sizeof(dns_message_t));\n\t*msg = (dns_message_t){\n\t\t.from_to_wire = intent,\n\t\t.references = ISC_REFCOUNT_INITIALIZER(1),\n\t\t.scratchpad = ISC_LIST_INITIALIZER,\n\t\t.cleanup = ISC_LIST_INITIALIZER,\n\t\t.rdatas = ISC_LIST_INITIALIZER,\n\t\t.rdatalists = ISC_LIST_INITIALIZER,\n\t\t.offsets = ISC_LIST_INITIALIZER,\n\t\t.freerdata = ISC_LIST_INITIALIZER,\n\t\t.freerdatalist = ISC_LIST_INITIALIZER,\n\t\t.magic = DNS_MESSAGE_MAGIC,\n\t\t.namepool = namepool,\n\t\t.rdspool = rdspool,\n\t\t.free_pools = (namepool == NULL && rdspool == NULL),\n\t};\n\n\tisc_mem_attach(mctx, &msg->mctx);\n\n\tif (msg->free_pools) {\n\t\tdns_message_createpools(mctx, &msg->namepool, &msg->rdspool);\n\t}\n\n\tmsginit(msg);\n\n\tfor (size_t i = 0; i < DNS_SECTION_MAX; i++) {\n\t\tISC_LIST_INIT(msg->sections[i]);\n\t}\n\n\tisc_buffer_t *dynbuf = NULL;\n\tisc_buffer_allocate(mctx, &dynbuf, SCRATCHPAD_SIZE);\n\tISC_LIST_APPEND(msg->scratchpad, dynbuf, link);\n\n\t*msgp = msg;\n}", "Selected Statement": ".namepool = namepool,", "Function Input": {}, "Variable Values Before Statement": {"namepool": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 22, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "void\ndns_message_create(isc_mem_t *mctx, isc_mempool_t *namepool,\n\t\t isc_mempool_t *rdspool, dns_message_intent_t intent,\n\t\t dns_message_t **msgp) {\n\tREQUIRE(mctx != NULL);\n\tREQUIRE(msgp != NULL);\n\tREQUIRE(*msgp == NULL);\n\tREQUIRE(intent == DNS_MESSAGE_INTENTPARSE ||\n\t\tintent == DNS_MESSAGE_INTENTRENDER);\n\tREQUIRE((namepool != NULL && rdspool != NULL) ||\n\t\t(namepool == NULL && rdspool == NULL));\n\n\tdns_message_t *msg = isc_mem_get(mctx, sizeof(dns_message_t));\n\t*msg = (dns_message_t){\n\t\t.from_to_wire = intent,\n\t\t.references = ISC_REFCOUNT_INITIALIZER(1),\n\t\t.scratchpad = ISC_LIST_INITIALIZER,\n\t\t.cleanup = ISC_LIST_INITIALIZER,\n\t\t.rdatas = ISC_LIST_INITIALIZER,\n\t\t.rdatalists = ISC_LIST_INITIALIZER,\n\t\t.offsets = ISC_LIST_INITIALIZER,\n\t\t.freerdata = ISC_LIST_INITIALIZER,\n\t\t.freerdatalist = ISC_LIST_INITIALIZER,\n\t\t.magic = DNS_MESSAGE_MAGIC,\n\t\t.namepool = namepool,\n\t\t.rdspool = rdspool,\n\t\t.free_pools = (namepool == NULL && rdspool == NULL),\n\t};\n\n\tisc_mem_attach(mctx, &msg->mctx);\n\n\tif (msg->free_pools) {\n\t\tdns_message_createpools(mctx, &msg->namepool, &msg->rdspool);\n\t}\n\n\tmsginit(msg);\n\n\tfor (size_t i = 0; i < DNS_SECTION_MAX; i++) {\n\t\tISC_LIST_INIT(msg->sections[i]);\n\t}\n\n\tisc_buffer_t *dynbuf = NULL;\n\tisc_buffer_allocate(mctx, &dynbuf, SCRATCHPAD_SIZE);\n\tISC_LIST_APPEND(msg->scratchpad, dynbuf, link);\n\n\t*msgp = msg;\n}", "Selected Statement": ".rdspool = rdspool,", "Function Input": {}, "Variable Values Before Statement": {"rdspool": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 23, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "void\ndns_message_create(isc_mem_t *mctx, isc_mempool_t *namepool,\n\t\t isc_mempool_t *rdspool, dns_message_intent_t intent,\n\t\t dns_message_t **msgp) {\n\tREQUIRE(mctx != NULL);\n\tREQUIRE(msgp != NULL);\n\tREQUIRE(*msgp == NULL);\n\tREQUIRE(intent == DNS_MESSAGE_INTENTPARSE ||\n\t\tintent == DNS_MESSAGE_INTENTRENDER);\n\tREQUIRE((namepool != NULL && rdspool != NULL) ||\n\t\t(namepool == NULL && rdspool == NULL));\n\n\tdns_message_t *msg = isc_mem_get(mctx, sizeof(dns_message_t));\n\t*msg = (dns_message_t){\n\t\t.from_to_wire = intent,\n\t\t.references = ISC_REFCOUNT_INITIALIZER(1),\n\t\t.scratchpad = ISC_LIST_INITIALIZER,\n\t\t.cleanup = ISC_LIST_INITIALIZER,\n\t\t.rdatas = ISC_LIST_INITIALIZER,\n\t\t.rdatalists = ISC_LIST_INITIALIZER,\n\t\t.offsets = ISC_LIST_INITIALIZER,\n\t\t.freerdata = ISC_LIST_INITIALIZER,\n\t\t.freerdatalist = ISC_LIST_INITIALIZER,\n\t\t.magic = DNS_MESSAGE_MAGIC,\n\t\t.namepool = namepool,\n\t\t.rdspool = rdspool,\n\t\t.free_pools = (namepool == NULL && rdspool == NULL),\n\t};\n\n\tisc_mem_attach(mctx, &msg->mctx);\n\n\tif (msg->free_pools) {\n\t\tdns_message_createpools(mctx, &msg->namepool, &msg->rdspool);\n\t}\n\n\tmsginit(msg);\n\n\tfor (size_t i = 0; i < DNS_SECTION_MAX; i++) {\n\t\tISC_LIST_INIT(msg->sections[i]);\n\t}\n\n\tisc_buffer_t *dynbuf = NULL;\n\tisc_buffer_allocate(mctx, &dynbuf, SCRATCHPAD_SIZE);\n\tISC_LIST_APPEND(msg->scratchpad, dynbuf, link);\n\n\t*msgp = msg;\n}", "Selected Statement": "for (size_t i = 0; i < DNS_SECTION_MAX; i++) {", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 35, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "void\ndns_message_create(isc_mem_t *mctx, isc_mempool_t *namepool,\n\t\t isc_mempool_t *rdspool, dns_message_intent_t intent,\n\t\t dns_message_t **msgp) {\n\tREQUIRE(mctx != NULL);\n\tREQUIRE(msgp != NULL);\n\tREQUIRE(*msgp == NULL);\n\tREQUIRE(intent == DNS_MESSAGE_INTENTPARSE ||\n\t\tintent == DNS_MESSAGE_INTENTRENDER);\n\tREQUIRE((namepool != NULL && rdspool != NULL) ||\n\t\t(namepool == NULL && rdspool == NULL));\n\n\tdns_message_t *msg = isc_mem_get(mctx, sizeof(dns_message_t));\n\t*msg = (dns_message_t){\n\t\t.from_to_wire = intent,\n\t\t.references = ISC_REFCOUNT_INITIALIZER(1),\n\t\t.scratchpad = ISC_LIST_INITIALIZER,\n\t\t.cleanup = ISC_LIST_INITIALIZER,\n\t\t.rdatas = ISC_LIST_INITIALIZER,\n\t\t.rdatalists = ISC_LIST_INITIALIZER,\n\t\t.offsets = ISC_LIST_INITIALIZER,\n\t\t.freerdata = ISC_LIST_INITIALIZER,\n\t\t.freerdatalist = ISC_LIST_INITIALIZER,\n\t\t.magic = DNS_MESSAGE_MAGIC,\n\t\t.namepool = namepool,\n\t\t.rdspool = rdspool,\n\t\t.free_pools = (namepool == NULL && rdspool == NULL),\n\t};\n\n\tisc_mem_attach(mctx, &msg->mctx);\n\n\tif (msg->free_pools) {\n\t\tdns_message_createpools(mctx, &msg->namepool, &msg->rdspool);\n\t}\n\n\tmsginit(msg);\n\n\tfor (size_t i = 0; i < DNS_SECTION_MAX; i++) {\n\t\tISC_LIST_INIT(msg->sections[i]);\n\t}\n\n\tisc_buffer_t *dynbuf = NULL;\n\tisc_buffer_allocate(mctx, &dynbuf, SCRATCHPAD_SIZE);\n\tISC_LIST_APPEND(msg->scratchpad, dynbuf, link);\n\n\t*msgp = msg;\n}", "Selected Statement": "*msgp = msg;", "Function Input": {}, "Variable Values Before Statement": {"msg": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 43, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "size_t\ndns_qpkey_fromname(dns_qpkey_t key, const dns_name_t *name) {\n\tsize_t len, label;\n\tdns_fixedname_t fixed;\n\n\tREQUIRE(ISC_MAGIC_VALID(name, DNS_NAME_MAGIC));\n\n\tif (name->labels == 0) {\n\t\tkey[0] = SHIFT_NOBYTE;\n\t\treturn (0);\n\t}\n\n\tif (name->offsets == NULL) {\n\t\tdns_name_t *clone = dns_fixedname_initname(&fixed);\n\t\tdns_name_clone(name, clone);\n\t\tname = clone;\n\t}\n\n\tlen = 0;\n\tlabel = name->labels;\n\twhile (label-- > 0) {\n\t\tconst uint8_t *ldata = name->ndata + name->offsets[label];\n\t\tsize_t label_len = *ldata++;\n\t\twhile (label_len-- > 0) {\n\t\t\tuint16_t bits = dns_qp_bits_for_byte[*ldata++];\n\t\t\tkey[len++] = bits & 0xFF;\t\n\t\t\tif ((bits >> 8) != 0) {\t\t\n\t\t\t\tkey[len++] = bits >> 8; \n\t\t\t}\n\t\t}\n\t\t\n\t\tkey[len++] = SHIFT_NOBYTE;\n\t}\n\t\n\tkey[len] = SHIFT_NOBYTE;\n\tENSURE(len < sizeof(dns_qpkey_t));\n\treturn (len);\n}", "Selected Statement": "len = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 16, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "size_t\ndns_qpkey_fromname(dns_qpkey_t key, const dns_name_t *name) {\n\tsize_t len, label;\n\tdns_fixedname_t fixed;\n\n\tREQUIRE(ISC_MAGIC_VALID(name, DNS_NAME_MAGIC));\n\n\tif (name->labels == 0) {\n\t\tkey[0] = SHIFT_NOBYTE;\n\t\treturn (0);\n\t}\n\n\tif (name->offsets == NULL) {\n\t\tdns_name_t *clone = dns_fixedname_initname(&fixed);\n\t\tdns_name_clone(name, clone);\n\t\tname = clone;\n\t}\n\n\tlen = 0;\n\tlabel = name->labels;\n\twhile (label-- > 0) {\n\t\tconst uint8_t *ldata = name->ndata + name->offsets[label];\n\t\tsize_t label_len = *ldata++;\n\t\twhile (label_len-- > 0) {\n\t\t\tuint16_t bits = dns_qp_bits_for_byte[*ldata++];\n\t\t\tkey[len++] = bits & 0xFF;\t\n\t\t\tif ((bits >> 8) != 0) {\t\t\n\t\t\t\tkey[len++] = bits >> 8; \n\t\t\t}\n\t\t}\n\t\t\n\t\tkey[len++] = SHIFT_NOBYTE;\n\t}\n\t\n\tkey[len] = SHIFT_NOBYTE;\n\tENSURE(len < sizeof(dns_qpkey_t));\n\treturn (len);\n}", "Selected Statement": "const uint8_t *ldata = name->ndata + name->offsets[label];", "Function Input": {}, "Variable Values Before Statement": {"name": {"magic": "1145983854", "ndata": "0x7fffffffdd38 \"\\001D\"", "length": "3", "labels": "2", "attributes": null, "offsets": "0x7fffffffdc78 \"\"", "buffer": null, "link": null, "list": null, "hashmap": null}, "label": "0"}, "Value After Statement Execution": "NULL", "Block_Size": 19, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "size_t\ndns_qpkey_fromname(dns_qpkey_t key, const dns_name_t *name) {\n\tsize_t len, label;\n\tdns_fixedname_t fixed;\n\n\tREQUIRE(ISC_MAGIC_VALID(name, DNS_NAME_MAGIC));\n\n\tif (name->labels == 0) {\n\t\tkey[0] = SHIFT_NOBYTE;\n\t\treturn (0);\n\t}\n\n\tif (name->offsets == NULL) {\n\t\tdns_name_t *clone = dns_fixedname_initname(&fixed);\n\t\tdns_name_clone(name, clone);\n\t\tname = clone;\n\t}\n\n\tlen = 0;\n\tlabel = name->labels;\n\twhile (label-- > 0) {\n\t\tconst uint8_t *ldata = name->ndata + name->offsets[label];\n\t\tsize_t label_len = *ldata++;\n\t\twhile (label_len-- > 0) {\n\t\t\tuint16_t bits = dns_qp_bits_for_byte[*ldata++];\n\t\t\tkey[len++] = bits & 0xFF;\t\n\t\t\tif ((bits >> 8) != 0) {\t\t\n\t\t\t\tkey[len++] = bits >> 8; \n\t\t\t}\n\t\t}\n\t\t\n\t\tkey[len++] = SHIFT_NOBYTE;\n\t}\n\t\n\tkey[len] = SHIFT_NOBYTE;\n\tENSURE(len < sizeof(dns_qpkey_t));\n\treturn (len);\n}", "Selected Statement": "key[len++] = bits & 0xFF;\t/* bit_one */", "Function Input": {}, "Variable Values Before Statement": {"bits": "23"}, "Value After Statement Execution": "NULL", "Block_Size": 23, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "size_t\ndns_qpkey_fromname(dns_qpkey_t key, const dns_name_t *name) {\n\tsize_t len, label;\n\tdns_fixedname_t fixed;\n\n\tREQUIRE(ISC_MAGIC_VALID(name, DNS_NAME_MAGIC));\n\n\tif (name->labels == 0) {\n\t\tkey[0] = SHIFT_NOBYTE;\n\t\treturn (0);\n\t}\n\n\tif (name->offsets == NULL) {\n\t\tdns_name_t *clone = dns_fixedname_initname(&fixed);\n\t\tdns_name_clone(name, clone);\n\t\tname = clone;\n\t}\n\n\tlen = 0;\n\tlabel = name->labels;\n\twhile (label-- > 0) {\n\t\tconst uint8_t *ldata = name->ndata + name->offsets[label];\n\t\tsize_t label_len = *ldata++;\n\t\twhile (label_len-- > 0) {\n\t\t\tuint16_t bits = dns_qp_bits_for_byte[*ldata++];\n\t\t\tkey[len++] = bits & 0xFF;\t\n\t\t\tif ((bits >> 8) != 0) {\t\t\n\t\t\t\tkey[len++] = bits >> 8; \n\t\t\t}\n\t\t}\n\t\t\n\t\tkey[len++] = SHIFT_NOBYTE;\n\t}\n\t\n\tkey[len] = SHIFT_NOBYTE;\n\tENSURE(len < sizeof(dns_qpkey_t));\n\treturn (len);\n}", "Selected Statement": "key[len] = SHIFT_NOBYTE;", "Function Input": {}, "Variable Values Before Statement": {"SHIFT_NOBYTE": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 32, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "isc_result_t\ndns_db_create(isc_mem_t *mctx, const char *db_type, const dns_name_t *origin,\n\t dns_dbtype_t type, dns_rdataclass_t rdclass, unsigned int argc,\n\t char *argv[], dns_db_t **dbp) {\n\tdns_dbimplementation_t *impinfo = NULL;\n\n\tisc_once_do(&once, initialize);\n\n\t\n\n\tREQUIRE(dbp != NULL && *dbp == NULL);\n\tREQUIRE(dns_name_isabsolute(origin));\n\n\tRWLOCK(&implock, isc_rwlocktype_read);\n\timpinfo = impfind(db_type);\n\tif (impinfo != NULL) {\n\t\tisc_result_t result;\n\t\tresult = ((impinfo->create)(mctx, origin, type, rdclass, argc,\n\t\t\t\t\t argv, impinfo->driverarg, dbp));\n\t\tRWUNLOCK(&implock, isc_rwlocktype_read);\n\n#if DNS_DB_TRACE\n\t\tfprintf(stderr, \"dns_db_create:%s:%s:%d:%p->references = 1\\n\",\n\t\t\t__func__, __FILE__, __LINE__ 1, *dbp);\n#endif\n\t\treturn (result);\n\t}\n\n\tRWUNLOCK(&implock, isc_rwlocktype_read);\n\n\tisc_log_write(dns_lctx, DNS_LOGCATEGORY_DATABASE, DNS_LOGMODULE_DB,\n\t\t ISC_LOG_ERROR, \"unsupported database type '%s'\", db_type);\n\n\treturn (ISC_R_NOTFOUND);\n}", "Selected Statement": "for (imp = ISC_LIST_HEAD(implementations); imp != NULL;", "Function Input": {}, "Variable Values Before Statement": {"implementations": {"head": null, "tail": null}}, "Value After Statement Execution": "NULL", "Function Name": "ISC_LIST_HEAD", "Block_Size": 1, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "isc_result_t\nisc_parse_uint32(uint32_t *uip, const char *string, int base) {\n\tunsigned long n;\n\tuint32_t r;\n\tchar *e;\n\tif (!isalnum((unsigned char)(string[0]))) {\n\t\treturn (ISC_R_BADNUMBER);\n\t}\n\terrno = 0;\n\tn = strtoul(string, &e, base);\n\tif (*e != '\\0') {\n\t\treturn (ISC_R_BADNUMBER);\n\t}\n\t\n\tr = (uint32_t)n;\n\tif ((n == ULONG_MAX && errno == ERANGE) || (n != (unsigned long)r)) {\n\t\treturn (ISC_R_RANGE);\n\t}\n\t*uip = r;\n\treturn (ISC_R_SUCCESS);\n}", "Selected Statement": "errno = 0;", "Function Input": {"base": {"value": "-1"}, "string": {"value": "0x7ffffffed9b0 \"\\260\\334\\376\\377\\377\\177\""}, "uip": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffff00000000\n", "message": "Cannot access memory at address 0xffffffff00000000"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 6, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "isc_result_t\nisc_parse_uint32(uint32_t *uip, const char *string, int base) {\n\tunsigned long n;\n\tuint32_t r;\n\tchar *e;\n\tif (!isalnum((unsigned char)(string[0]))) {\n\t\treturn (ISC_R_BADNUMBER);\n\t}\n\terrno = 0;\n\tn = strtoul(string, &e, base);\n\tif (*e != '\\0') {\n\t\treturn (ISC_R_BADNUMBER);\n\t}\n\t\n\tr = (uint32_t)n;\n\tif ((n == ULONG_MAX && errno == ERANGE) || (n != (unsigned long)r)) {\n\t\treturn (ISC_R_RANGE);\n\t}\n\t*uip = r;\n\treturn (ISC_R_SUCCESS);\n}", "Selected Statement": "n = strtoul(string, &e, base);", "Function Input": {"base": {"value": "-1"}, "string": {"value": "0x7ffffffed9b0 \"\\260\\334\\376\\377\\377\\177\""}, "uip": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffff00000000\n", "message": "Cannot access memory at address 0xffffffff00000000"}}}, "Variable Values Before Statement": {"string": "0x18865d0 \"8\"", "base": "int"}, "Value After Statement Execution": "unsigned long", "Function Name": "strtoul", "Block_Size": 7, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "isc_result_t\nisc_parse_uint32(uint32_t *uip, const char *string, int base) {\n\tunsigned long n;\n\tuint32_t r;\n\tchar *e;\n\tif (!isalnum((unsigned char)(string[0]))) {\n\t\treturn (ISC_R_BADNUMBER);\n\t}\n\terrno = 0;\n\tn = strtoul(string, &e, base);\n\tif (*e != '\\0') {\n\t\treturn (ISC_R_BADNUMBER);\n\t}\n\t\n\tr = (uint32_t)n;\n\tif ((n == ULONG_MAX && errno == ERANGE) || (n != (unsigned long)r)) {\n\t\treturn (ISC_R_RANGE);\n\t}\n\t*uip = r;\n\treturn (ISC_R_SUCCESS);\n}", "Selected Statement": "*uip = r;", "Function Input": {"base": {"value": "-1"}, "string": {"value": "0x7ffffffed9b0 \"\\260\\334\\376\\377\\377\\177\""}, "uip": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xffffffff00000000\n", "message": "Cannot access memory at address 0xffffffff00000000"}}}, "Variable Values Before Statement": {"r": "8"}, "Value After Statement Execution": "8", "Block_Size": 20, "Project Information": "bind9"} +{"Programming Language": "C", "Source Code": "int\ndwarf_init_b(int fd,\n unsigned group_number,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug * ret_dbg,\n Dwarf_Error * error)\n{\n unsigned ftype = 0;\n unsigned endian = 0;\n unsigned offsetsize = 0;\n unsigned universalnumber = 0;\n Dwarf_Unsigned filesize = 0;\n int res = 0;\n int errcode = 0;\n\n if (!ret_dbg) {\n DWARF_DBG_ERROR(NULL,DW_DLE_DWARF_INIT_DBG_NULL,DW_DLV_ERROR);\n }\n \n *ret_dbg = 0;\n res = dwarf_object_detector_fd(fd, &ftype,\n &endian,&offsetsize,&filesize,&errcode);\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n if (res == DW_DLV_ERROR) {\n \n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n }\n switch(ftype) {\n case DW_FTYPE_ELF: {\n int res2 = 0;\n\n res2 = _dwarf_elf_nlsetup(fd,\"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (res2 != DW_DLV_OK) {\n return res2;\n }\n set_global_paths_init(*ret_dbg,error);\n return res2;\n }\n case DW_FTYPE_APPLEUNIVERSAL:\n case DW_FTYPE_MACH_O: {\n int resm = 0;\n\n resm = _dwarf_macho_setup(fd,\"\",\n universalnumber,\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resm != DW_DLV_OK) {\n return resm;\n }\n set_global_paths_init(*ret_dbg,error);\n return resm;\n }\n\n case DW_FTYPE_PE: {\n int resp = 0;\n\n resp = _dwarf_pe_setup(fd,\n \"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resp != DW_DLV_OK) {\n return resp;\n }\n set_global_paths_init(*ret_dbg,error);\n return resp;\n }\n default: break;\n }\n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n \n}", "Selected Statement": "unsigned ftype = 0;", "Function Input": {"error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xfe02dd63e9f26600\n", "message": "Cannot access memory at address 0xfe02dd63e9f26600"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 6, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_init_b(int fd,\n unsigned group_number,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug * ret_dbg,\n Dwarf_Error * error)\n{\n unsigned ftype = 0;\n unsigned endian = 0;\n unsigned offsetsize = 0;\n unsigned universalnumber = 0;\n Dwarf_Unsigned filesize = 0;\n int res = 0;\n int errcode = 0;\n\n if (!ret_dbg) {\n DWARF_DBG_ERROR(NULL,DW_DLE_DWARF_INIT_DBG_NULL,DW_DLV_ERROR);\n }\n \n *ret_dbg = 0;\n res = dwarf_object_detector_fd(fd, &ftype,\n &endian,&offsetsize,&filesize,&errcode);\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n if (res == DW_DLV_ERROR) {\n \n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n }\n switch(ftype) {\n case DW_FTYPE_ELF: {\n int res2 = 0;\n\n res2 = _dwarf_elf_nlsetup(fd,\"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (res2 != DW_DLV_OK) {\n return res2;\n }\n set_global_paths_init(*ret_dbg,error);\n return res2;\n }\n case DW_FTYPE_APPLEUNIVERSAL:\n case DW_FTYPE_MACH_O: {\n int resm = 0;\n\n resm = _dwarf_macho_setup(fd,\"\",\n universalnumber,\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resm != DW_DLV_OK) {\n return resm;\n }\n set_global_paths_init(*ret_dbg,error);\n return resm;\n }\n\n case DW_FTYPE_PE: {\n int resp = 0;\n\n resp = _dwarf_pe_setup(fd,\n \"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resp != DW_DLV_OK) {\n return resp;\n }\n set_global_paths_init(*ret_dbg,error);\n return resp;\n }\n default: break;\n }\n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n \n}", "Selected Statement": "unsigned endian = 0;", "Function Input": {"error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xfe02dd63e9f26600\n", "message": "Cannot access memory at address 0xfe02dd63e9f26600"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 7, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_init_b(int fd,\n unsigned group_number,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug * ret_dbg,\n Dwarf_Error * error)\n{\n unsigned ftype = 0;\n unsigned endian = 0;\n unsigned offsetsize = 0;\n unsigned universalnumber = 0;\n Dwarf_Unsigned filesize = 0;\n int res = 0;\n int errcode = 0;\n\n if (!ret_dbg) {\n DWARF_DBG_ERROR(NULL,DW_DLE_DWARF_INIT_DBG_NULL,DW_DLV_ERROR);\n }\n \n *ret_dbg = 0;\n res = dwarf_object_detector_fd(fd, &ftype,\n &endian,&offsetsize,&filesize,&errcode);\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n if (res == DW_DLV_ERROR) {\n \n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n }\n switch(ftype) {\n case DW_FTYPE_ELF: {\n int res2 = 0;\n\n res2 = _dwarf_elf_nlsetup(fd,\"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (res2 != DW_DLV_OK) {\n return res2;\n }\n set_global_paths_init(*ret_dbg,error);\n return res2;\n }\n case DW_FTYPE_APPLEUNIVERSAL:\n case DW_FTYPE_MACH_O: {\n int resm = 0;\n\n resm = _dwarf_macho_setup(fd,\"\",\n universalnumber,\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resm != DW_DLV_OK) {\n return resm;\n }\n set_global_paths_init(*ret_dbg,error);\n return resm;\n }\n\n case DW_FTYPE_PE: {\n int resp = 0;\n\n resp = _dwarf_pe_setup(fd,\n \"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resp != DW_DLV_OK) {\n return resp;\n }\n set_global_paths_init(*ret_dbg,error);\n return resp;\n }\n default: break;\n }\n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n \n}", "Selected Statement": "unsigned offsetsize = 0;", "Function Input": {"error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xfe02dd63e9f26600\n", "message": "Cannot access memory at address 0xfe02dd63e9f26600"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 8, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_init_b(int fd,\n unsigned group_number,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug * ret_dbg,\n Dwarf_Error * error)\n{\n unsigned ftype = 0;\n unsigned endian = 0;\n unsigned offsetsize = 0;\n unsigned universalnumber = 0;\n Dwarf_Unsigned filesize = 0;\n int res = 0;\n int errcode = 0;\n\n if (!ret_dbg) {\n DWARF_DBG_ERROR(NULL,DW_DLE_DWARF_INIT_DBG_NULL,DW_DLV_ERROR);\n }\n \n *ret_dbg = 0;\n res = dwarf_object_detector_fd(fd, &ftype,\n &endian,&offsetsize,&filesize,&errcode);\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n if (res == DW_DLV_ERROR) {\n \n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n }\n switch(ftype) {\n case DW_FTYPE_ELF: {\n int res2 = 0;\n\n res2 = _dwarf_elf_nlsetup(fd,\"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (res2 != DW_DLV_OK) {\n return res2;\n }\n set_global_paths_init(*ret_dbg,error);\n return res2;\n }\n case DW_FTYPE_APPLEUNIVERSAL:\n case DW_FTYPE_MACH_O: {\n int resm = 0;\n\n resm = _dwarf_macho_setup(fd,\"\",\n universalnumber,\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resm != DW_DLV_OK) {\n return resm;\n }\n set_global_paths_init(*ret_dbg,error);\n return resm;\n }\n\n case DW_FTYPE_PE: {\n int resp = 0;\n\n resp = _dwarf_pe_setup(fd,\n \"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resp != DW_DLV_OK) {\n return resp;\n }\n set_global_paths_init(*ret_dbg,error);\n return resp;\n }\n default: break;\n }\n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n \n}", "Selected Statement": "unsigned universalnumber = 0;", "Function Input": {"error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xfe02dd63e9f26600\n", "message": "Cannot access memory at address 0xfe02dd63e9f26600"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 9, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_init_b(int fd,\n unsigned group_number,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug * ret_dbg,\n Dwarf_Error * error)\n{\n unsigned ftype = 0;\n unsigned endian = 0;\n unsigned offsetsize = 0;\n unsigned universalnumber = 0;\n Dwarf_Unsigned filesize = 0;\n int res = 0;\n int errcode = 0;\n\n if (!ret_dbg) {\n DWARF_DBG_ERROR(NULL,DW_DLE_DWARF_INIT_DBG_NULL,DW_DLV_ERROR);\n }\n \n *ret_dbg = 0;\n res = dwarf_object_detector_fd(fd, &ftype,\n &endian,&offsetsize,&filesize,&errcode);\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n if (res == DW_DLV_ERROR) {\n \n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n }\n switch(ftype) {\n case DW_FTYPE_ELF: {\n int res2 = 0;\n\n res2 = _dwarf_elf_nlsetup(fd,\"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (res2 != DW_DLV_OK) {\n return res2;\n }\n set_global_paths_init(*ret_dbg,error);\n return res2;\n }\n case DW_FTYPE_APPLEUNIVERSAL:\n case DW_FTYPE_MACH_O: {\n int resm = 0;\n\n resm = _dwarf_macho_setup(fd,\"\",\n universalnumber,\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resm != DW_DLV_OK) {\n return resm;\n }\n set_global_paths_init(*ret_dbg,error);\n return resm;\n }\n\n case DW_FTYPE_PE: {\n int resp = 0;\n\n resp = _dwarf_pe_setup(fd,\n \"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resp != DW_DLV_OK) {\n return resp;\n }\n set_global_paths_init(*ret_dbg,error);\n return resp;\n }\n default: break;\n }\n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n \n}", "Selected Statement": "Dwarf_Unsigned filesize = 0;", "Function Input": {"error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xfe02dd63e9f26600\n", "message": "Cannot access memory at address 0xfe02dd63e9f26600"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 10, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_init_b(int fd,\n unsigned group_number,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug * ret_dbg,\n Dwarf_Error * error)\n{\n unsigned ftype = 0;\n unsigned endian = 0;\n unsigned offsetsize = 0;\n unsigned universalnumber = 0;\n Dwarf_Unsigned filesize = 0;\n int res = 0;\n int errcode = 0;\n\n if (!ret_dbg) {\n DWARF_DBG_ERROR(NULL,DW_DLE_DWARF_INIT_DBG_NULL,DW_DLV_ERROR);\n }\n \n *ret_dbg = 0;\n res = dwarf_object_detector_fd(fd, &ftype,\n &endian,&offsetsize,&filesize,&errcode);\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n if (res == DW_DLV_ERROR) {\n \n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n }\n switch(ftype) {\n case DW_FTYPE_ELF: {\n int res2 = 0;\n\n res2 = _dwarf_elf_nlsetup(fd,\"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (res2 != DW_DLV_OK) {\n return res2;\n }\n set_global_paths_init(*ret_dbg,error);\n return res2;\n }\n case DW_FTYPE_APPLEUNIVERSAL:\n case DW_FTYPE_MACH_O: {\n int resm = 0;\n\n resm = _dwarf_macho_setup(fd,\"\",\n universalnumber,\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resm != DW_DLV_OK) {\n return resm;\n }\n set_global_paths_init(*ret_dbg,error);\n return resm;\n }\n\n case DW_FTYPE_PE: {\n int resp = 0;\n\n resp = _dwarf_pe_setup(fd,\n \"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resp != DW_DLV_OK) {\n return resp;\n }\n set_global_paths_init(*ret_dbg,error);\n return resp;\n }\n default: break;\n }\n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n \n}", "Selected Statement": "int res = 0;", "Function Input": {"error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xfe02dd63e9f26600\n", "message": "Cannot access memory at address 0xfe02dd63e9f26600"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 11, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_init_b(int fd,\n unsigned group_number,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug * ret_dbg,\n Dwarf_Error * error)\n{\n unsigned ftype = 0;\n unsigned endian = 0;\n unsigned offsetsize = 0;\n unsigned universalnumber = 0;\n Dwarf_Unsigned filesize = 0;\n int res = 0;\n int errcode = 0;\n\n if (!ret_dbg) {\n DWARF_DBG_ERROR(NULL,DW_DLE_DWARF_INIT_DBG_NULL,DW_DLV_ERROR);\n }\n \n *ret_dbg = 0;\n res = dwarf_object_detector_fd(fd, &ftype,\n &endian,&offsetsize,&filesize,&errcode);\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n if (res == DW_DLV_ERROR) {\n \n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n }\n switch(ftype) {\n case DW_FTYPE_ELF: {\n int res2 = 0;\n\n res2 = _dwarf_elf_nlsetup(fd,\"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (res2 != DW_DLV_OK) {\n return res2;\n }\n set_global_paths_init(*ret_dbg,error);\n return res2;\n }\n case DW_FTYPE_APPLEUNIVERSAL:\n case DW_FTYPE_MACH_O: {\n int resm = 0;\n\n resm = _dwarf_macho_setup(fd,\"\",\n universalnumber,\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resm != DW_DLV_OK) {\n return resm;\n }\n set_global_paths_init(*ret_dbg,error);\n return resm;\n }\n\n case DW_FTYPE_PE: {\n int resp = 0;\n\n resp = _dwarf_pe_setup(fd,\n \"\",\n ftype,endian,offsetsize,filesize,\n group_number,errhand,errarg,ret_dbg,error);\n if (resp != DW_DLV_OK) {\n return resp;\n }\n set_global_paths_init(*ret_dbg,error);\n return resp;\n }\n default: break;\n }\n DWARF_DBG_ERROR(NULL, DW_DLE_FILE_WRONG_TYPE, DW_DLV_ERROR);\n \n}", "Selected Statement": "*ret_dbg = 0;", "Function Input": {"error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xfe02dd63e9f26600\n", "message": "Cannot access memory at address 0xfe02dd63e9f26600"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 19, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_object_detector_fd(int fd,\n unsigned *ftype,\n unsigned *endian,\n unsigned *offsetsize,\n Dwarf_Unsigned *filesize,\n int *errcode)\n{\n Dwarf_Unsigned fileoffsetbase = 0;\n int res = 0;\n\n res = _dwarf_object_detector_fd_a(fd,\n ftype,endian,offsetsize,\n fileoffsetbase,filesize,\n errcode);\n return res;\n}", "Selected Statement": "Dwarf_Unsigned fileoffsetbase = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 6, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\n_dwarf_seekr(int fd,\n Dwarf_Unsigned loc,\n int seektype,\n Dwarf_Unsigned *out_loc)\n{\n Dwarf_Signed fsize = 0;\n Dwarf_Signed sloc = 0;\n\n sloc = (Dwarf_Signed)loc;\n if (sloc < 0) {\n return DW_DLV_ERROR;\n }\n#ifdef _WIN64\n fsize = (Dwarf_Signed)lseek(fd,(__int64)loc,seektype);\n#elif defined(_WIN32)\n fsize = (Dwarf_Signed)lseek(fd,(off_t)loc,seektype);\n#else \n fsize = (Dwarf_Signed)lseek(fd,(off_t)loc,seektype);\n#endif\n if (fsize < 0) {\n return DW_DLV_ERROR;\n }\n if (out_loc) {\n *out_loc = (Dwarf_Unsigned)fsize;\n }\n return DW_DLV_OK;\n}", "Selected Statement": "Dwarf_Signed fsize = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 4, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\n_dwarf_macho_setup(int fd,\n char *true_path,\n unsigned universalnumber,\n unsigned ftype,\n unsigned endian,\n unsigned offsetsize,\n Dwarf_Unsigned filesize,\n unsigned groupnumber,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug *dbg,Dwarf_Error *error)\n{\n Dwarf_Obj_Access_Interface_a *binary_interface = 0;\n dwarf_macho_object_access_internals_t *intfc = 0;\n int res = DW_DLV_OK;\n int localerrnum = 0;\n unsigned universalbinary_count = 0;\n\n res = _dwarf_macho_object_access_init(\n fd,\n universalnumber,\n ftype,endian,offsetsize,\n &universalbinary_count,\n filesize,\n &binary_interface,\n &localerrnum);\n if (res != DW_DLV_OK) {\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n _dwarf_error(NULL, error, localerrnum);\n return DW_DLV_ERROR;\n }\n \n res = dwarf_object_init_b(binary_interface, errhand, errarg,\n groupnumber, dbg, error);\n if (res != DW_DLV_OK){\n _dwarf_destruct_macho_access(binary_interface);\n return res;\n }\n intfc = binary_interface->ai_object;\n intfc->mo_path = strdup(true_path);\n (*dbg)->de_obj_flags = intfc->mo_flags;\n (*dbg)->de_obj_machine = intfc->mo_machine;\n (*dbg)->de_universalbinary_index = universalnumber;\n (*dbg)->de_universalbinary_count = universalbinary_count;\n return res;\n}", "Selected Statement": "Dwarf_Obj_Access_Interface_a *binary_interface = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 11, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\n_dwarf_macho_setup(int fd,\n char *true_path,\n unsigned universalnumber,\n unsigned ftype,\n unsigned endian,\n unsigned offsetsize,\n Dwarf_Unsigned filesize,\n unsigned groupnumber,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug *dbg,Dwarf_Error *error)\n{\n Dwarf_Obj_Access_Interface_a *binary_interface = 0;\n dwarf_macho_object_access_internals_t *intfc = 0;\n int res = DW_DLV_OK;\n int localerrnum = 0;\n unsigned universalbinary_count = 0;\n\n res = _dwarf_macho_object_access_init(\n fd,\n universalnumber,\n ftype,endian,offsetsize,\n &universalbinary_count,\n filesize,\n &binary_interface,\n &localerrnum);\n if (res != DW_DLV_OK) {\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n _dwarf_error(NULL, error, localerrnum);\n return DW_DLV_ERROR;\n }\n \n res = dwarf_object_init_b(binary_interface, errhand, errarg,\n groupnumber, dbg, error);\n if (res != DW_DLV_OK){\n _dwarf_destruct_macho_access(binary_interface);\n return res;\n }\n intfc = binary_interface->ai_object;\n intfc->mo_path = strdup(true_path);\n (*dbg)->de_obj_flags = intfc->mo_flags;\n (*dbg)->de_obj_machine = intfc->mo_machine;\n (*dbg)->de_universalbinary_index = universalnumber;\n (*dbg)->de_universalbinary_count = universalbinary_count;\n return res;\n}", "Selected Statement": "dwarf_macho_object_access_internals_t *intfc = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 12, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\n_dwarf_macho_setup(int fd,\n char *true_path,\n unsigned universalnumber,\n unsigned ftype,\n unsigned endian,\n unsigned offsetsize,\n Dwarf_Unsigned filesize,\n unsigned groupnumber,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug *dbg,Dwarf_Error *error)\n{\n Dwarf_Obj_Access_Interface_a *binary_interface = 0;\n dwarf_macho_object_access_internals_t *intfc = 0;\n int res = DW_DLV_OK;\n int localerrnum = 0;\n unsigned universalbinary_count = 0;\n\n res = _dwarf_macho_object_access_init(\n fd,\n universalnumber,\n ftype,endian,offsetsize,\n &universalbinary_count,\n filesize,\n &binary_interface,\n &localerrnum);\n if (res != DW_DLV_OK) {\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n _dwarf_error(NULL, error, localerrnum);\n return DW_DLV_ERROR;\n }\n \n res = dwarf_object_init_b(binary_interface, errhand, errarg,\n groupnumber, dbg, error);\n if (res != DW_DLV_OK){\n _dwarf_destruct_macho_access(binary_interface);\n return res;\n }\n intfc = binary_interface->ai_object;\n intfc->mo_path = strdup(true_path);\n (*dbg)->de_obj_flags = intfc->mo_flags;\n (*dbg)->de_obj_machine = intfc->mo_machine;\n (*dbg)->de_universalbinary_index = universalnumber;\n (*dbg)->de_universalbinary_count = universalbinary_count;\n return res;\n}", "Selected Statement": "int res = DW_DLV_OK;", "Function Input": {}, "Variable Values Before Statement": {"DW_DLV_OK": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 13, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\n_dwarf_macho_setup(int fd,\n char *true_path,\n unsigned universalnumber,\n unsigned ftype,\n unsigned endian,\n unsigned offsetsize,\n Dwarf_Unsigned filesize,\n unsigned groupnumber,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug *dbg,Dwarf_Error *error)\n{\n Dwarf_Obj_Access_Interface_a *binary_interface = 0;\n dwarf_macho_object_access_internals_t *intfc = 0;\n int res = DW_DLV_OK;\n int localerrnum = 0;\n unsigned universalbinary_count = 0;\n\n res = _dwarf_macho_object_access_init(\n fd,\n universalnumber,\n ftype,endian,offsetsize,\n &universalbinary_count,\n filesize,\n &binary_interface,\n &localerrnum);\n if (res != DW_DLV_OK) {\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n _dwarf_error(NULL, error, localerrnum);\n return DW_DLV_ERROR;\n }\n \n res = dwarf_object_init_b(binary_interface, errhand, errarg,\n groupnumber, dbg, error);\n if (res != DW_DLV_OK){\n _dwarf_destruct_macho_access(binary_interface);\n return res;\n }\n intfc = binary_interface->ai_object;\n intfc->mo_path = strdup(true_path);\n (*dbg)->de_obj_flags = intfc->mo_flags;\n (*dbg)->de_obj_machine = intfc->mo_machine;\n (*dbg)->de_universalbinary_index = universalnumber;\n (*dbg)->de_universalbinary_count = universalbinary_count;\n return res;\n}", "Selected Statement": "int localerrnum = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 14, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\n_dwarf_object_read_random(int fd, char *buf, Dwarf_Unsigned loc,\n Dwarf_Unsigned size, Dwarf_Unsigned filesize, int *errc)\n{\n Dwarf_Unsigned endpoint = 0;\n int res = 0;\n\n if (loc >= filesize) {\n \n *errc = DW_DLE_SEEK_OFF_END;\n return DW_DLV_ERROR;\n }\n endpoint = loc+size;\n if (endpoint < loc) {\n \n *errc = DW_DLE_READ_OFF_END;\n return DW_DLV_ERROR;\n }\n if (endpoint > filesize) {\n \n *errc = DW_DLE_READ_OFF_END;\n return DW_DLV_ERROR;\n }\n res = _dwarf_seekr(fd,loc,SEEK_SET,0);\n if (res != DW_DLV_OK) {\n *errc = DW_DLE_SEEK_ERROR;\n return DW_DLV_ERROR;\n }\n res = _dwarf_readr(fd,buf,size,0);\n if (res != DW_DLV_OK) {\n *errc = DW_DLE_READ_ERROR;\n return DW_DLV_ERROR;\n }\n return DW_DLV_OK;\n}", "Selected Statement": "Dwarf_Unsigned endpoint = 0;", "Function Input": {"buf": {"value": "0x3 "}, "errc": {"value": null}, "fd": {"value": "-10544"}, "filesize": {"value": "6002422"}, "loc": {"value": "140737348690585"}, "size": {"value": "3"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 2, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\n_dwarf_object_read_random(int fd, char *buf, Dwarf_Unsigned loc,\n Dwarf_Unsigned size, Dwarf_Unsigned filesize, int *errc)\n{\n Dwarf_Unsigned endpoint = 0;\n int res = 0;\n\n if (loc >= filesize) {\n \n *errc = DW_DLE_SEEK_OFF_END;\n return DW_DLV_ERROR;\n }\n endpoint = loc+size;\n if (endpoint < loc) {\n \n *errc = DW_DLE_READ_OFF_END;\n return DW_DLV_ERROR;\n }\n if (endpoint > filesize) {\n \n *errc = DW_DLE_READ_OFF_END;\n return DW_DLV_ERROR;\n }\n res = _dwarf_seekr(fd,loc,SEEK_SET,0);\n if (res != DW_DLV_OK) {\n *errc = DW_DLE_SEEK_ERROR;\n return DW_DLV_ERROR;\n }\n res = _dwarf_readr(fd,buf,size,0);\n if (res != DW_DLV_OK) {\n *errc = DW_DLE_READ_ERROR;\n return DW_DLV_ERROR;\n }\n return DW_DLV_OK;\n}", "Selected Statement": "endpoint = loc+size;", "Function Input": {"buf": {"value": "0x3 "}, "errc": {"value": null}, "fd": {"value": "-10544"}, "filesize": {"value": "6002422"}, "loc": {"value": "140737348690585"}, "size": {"value": "3"}}, "Variable Values Before Statement": {"loc": "Dwarf_Unsigned", "size": "Dwarf_Unsigned"}, "Value After Statement Execution": "Dwarf_Unsigned", "Block_Size": 11, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\n_dwarf_object_read_random(int fd, char *buf, Dwarf_Unsigned loc,\n Dwarf_Unsigned size, Dwarf_Unsigned filesize, int *errc)\n{\n Dwarf_Unsigned endpoint = 0;\n int res = 0;\n\n if (loc >= filesize) {\n \n *errc = DW_DLE_SEEK_OFF_END;\n return DW_DLV_ERROR;\n }\n endpoint = loc+size;\n if (endpoint < loc) {\n \n *errc = DW_DLE_READ_OFF_END;\n return DW_DLV_ERROR;\n }\n if (endpoint > filesize) {\n \n *errc = DW_DLE_READ_OFF_END;\n return DW_DLV_ERROR;\n }\n res = _dwarf_seekr(fd,loc,SEEK_SET,0);\n if (res != DW_DLV_OK) {\n *errc = DW_DLE_SEEK_ERROR;\n return DW_DLV_ERROR;\n }\n res = _dwarf_readr(fd,buf,size,0);\n if (res != DW_DLV_OK) {\n *errc = DW_DLE_READ_ERROR;\n return DW_DLV_ERROR;\n }\n return DW_DLV_OK;\n}", "Selected Statement": "res = _dwarf_seekr(fd,loc,SEEK_SET,0);", "Function Input": {"buf": {"value": "0x3 "}, "errc": {"value": null}, "fd": {"value": "-10544"}, "filesize": {"value": "6002422"}, "loc": {"value": "140737348690585"}, "size": {"value": "3"}}, "Variable Values Before Statement": {"fd": "int", "loc": "Dwarf_Unsigned", "SEEK_SET": "NULL", "0": "0"}, "Value After Statement Execution": "int", "Function Name": "_dwarf_seekr", "Block_Size": 23, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\n_dwarf_object_read_random(int fd, char *buf, Dwarf_Unsigned loc,\n Dwarf_Unsigned size, Dwarf_Unsigned filesize, int *errc)\n{\n Dwarf_Unsigned endpoint = 0;\n int res = 0;\n\n if (loc >= filesize) {\n \n *errc = DW_DLE_SEEK_OFF_END;\n return DW_DLV_ERROR;\n }\n endpoint = loc+size;\n if (endpoint < loc) {\n \n *errc = DW_DLE_READ_OFF_END;\n return DW_DLV_ERROR;\n }\n if (endpoint > filesize) {\n \n *errc = DW_DLE_READ_OFF_END;\n return DW_DLV_ERROR;\n }\n res = _dwarf_seekr(fd,loc,SEEK_SET,0);\n if (res != DW_DLV_OK) {\n *errc = DW_DLE_SEEK_ERROR;\n return DW_DLV_ERROR;\n }\n res = _dwarf_readr(fd,buf,size,0);\n if (res != DW_DLV_OK) {\n *errc = DW_DLE_READ_ERROR;\n return DW_DLV_ERROR;\n }\n return DW_DLV_OK;\n}", "Selected Statement": "res = _dwarf_readr(fd,buf,size,0);", "Function Input": {"buf": {"value": "0x3 "}, "errc": {"value": null}, "fd": {"value": "-10544"}, "filesize": {"value": "6002422"}, "loc": {"value": "140737348690585"}, "size": {"value": "3"}}, "Variable Values Before Statement": {"fd": "int", "buf": "0x7fffffffd678 \"\\277\\272\\376\\312\"", "size": "Dwarf_Unsigned", "0": "0"}, "Value After Statement Execution": "int", "Function Name": "_dwarf_readr", "Block_Size": 28, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\n_dwarf_elf_nlsetup(int fd,\n char *true_path,\n unsigned ftype,\n unsigned endian,\n unsigned offsetsize,\n size_t filesize,\n unsigned groupnumber,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug *dbg,Dwarf_Error *error)\n{\n Dwarf_Obj_Access_Interface_a *binary_interface = 0;\n dwarf_elf_object_access_internals_t *intfc = 0;\n int res = DW_DLV_OK;\n int localerrnum = 0;\n\n res = _dwarf_elf_object_access_init(\n fd,\n ftype,endian,offsetsize,filesize,\n &binary_interface,\n &localerrnum);\n if (res != DW_DLV_OK) {\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n _dwarf_error(NULL, error, localerrnum);\n return DW_DLV_ERROR;\n }\n \n res = dwarf_object_init_b(binary_interface, errhand, errarg,\n groupnumber, dbg, error);\n if (res != DW_DLV_OK){\n _dwarf_destruct_elf_nlaccess(binary_interface);\n return res;\n }\n intfc = binary_interface->ai_object;\n intfc->f_path = strdup(true_path);\n (*dbg)->de_obj_machine = intfc->f_machine;\n (*dbg)->de_obj_flags = intfc->f_flags;\n return res;\n}", "Selected Statement": "Dwarf_Obj_Access_Interface_a *binary_interface = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 10, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\n_dwarf_elf_nlsetup(int fd,\n char *true_path,\n unsigned ftype,\n unsigned endian,\n unsigned offsetsize,\n size_t filesize,\n unsigned groupnumber,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug *dbg,Dwarf_Error *error)\n{\n Dwarf_Obj_Access_Interface_a *binary_interface = 0;\n dwarf_elf_object_access_internals_t *intfc = 0;\n int res = DW_DLV_OK;\n int localerrnum = 0;\n\n res = _dwarf_elf_object_access_init(\n fd,\n ftype,endian,offsetsize,filesize,\n &binary_interface,\n &localerrnum);\n if (res != DW_DLV_OK) {\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n _dwarf_error(NULL, error, localerrnum);\n return DW_DLV_ERROR;\n }\n \n res = dwarf_object_init_b(binary_interface, errhand, errarg,\n groupnumber, dbg, error);\n if (res != DW_DLV_OK){\n _dwarf_destruct_elf_nlaccess(binary_interface);\n return res;\n }\n intfc = binary_interface->ai_object;\n intfc->f_path = strdup(true_path);\n (*dbg)->de_obj_machine = intfc->f_machine;\n (*dbg)->de_obj_flags = intfc->f_flags;\n return res;\n}", "Selected Statement": "dwarf_elf_object_access_internals_t *intfc = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 11, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\n_dwarf_elf_nlsetup(int fd,\n char *true_path,\n unsigned ftype,\n unsigned endian,\n unsigned offsetsize,\n size_t filesize,\n unsigned groupnumber,\n Dwarf_Handler errhand,\n Dwarf_Ptr errarg,\n Dwarf_Debug *dbg,Dwarf_Error *error)\n{\n Dwarf_Obj_Access_Interface_a *binary_interface = 0;\n dwarf_elf_object_access_internals_t *intfc = 0;\n int res = DW_DLV_OK;\n int localerrnum = 0;\n\n res = _dwarf_elf_object_access_init(\n fd,\n ftype,endian,offsetsize,filesize,\n &binary_interface,\n &localerrnum);\n if (res != DW_DLV_OK) {\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n _dwarf_error(NULL, error, localerrnum);\n return DW_DLV_ERROR;\n }\n \n res = dwarf_object_init_b(binary_interface, errhand, errarg,\n groupnumber, dbg, error);\n if (res != DW_DLV_OK){\n _dwarf_destruct_elf_nlaccess(binary_interface);\n return res;\n }\n intfc = binary_interface->ai_object;\n intfc->f_path = strdup(true_path);\n (*dbg)->de_obj_machine = intfc->f_machine;\n (*dbg)->de_obj_flags = intfc->f_flags;\n return res;\n}", "Selected Statement": "int res = DW_DLV_OK;", "Function Input": {}, "Variable Values Before Statement": {"DW_DLV_OK": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 12, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\n_dwarf_load_elf_header(\n dwarf_elf_object_access_internals_t *ep,int*errcode)\n{\n unsigned offsetsize = ep->f_offsetsize;\n int res = 0;\n\n if (offsetsize == 32) {\n res = elf_load_elf_header32(ep,errcode);\n } else if (offsetsize == 64) {\n if (sizeof(Dwarf_Unsigned) < 8) {\n *errcode = DW_DLE_INTEGER_TOO_SMALL;\n return DW_DLV_ERROR;\n }\n res = elf_load_elf_header64(ep,errcode);\n } else {\n *errcode = DW_DLE_OFFSET_SIZE;\n return DW_DLV_ERROR;\n }\n return res;\n}", "Selected Statement": "res = elf_load_elf_header64(ep,errcode);", "Function Input": {}, "Variable Values Before Statement": {"ep": {"f_ident": "\"F1\\000\\000\\000\\000\\000\"", "f_path": null, "f_fd": "3", "f_machine": "0", "f_destruct_close_fd": "0", "f_is_64bit": "1", "f_endian": "2", "f_filesize": "25", "f_flags": "0", "f_offsetsize": "64 '@'", "f_pointersize": "64 '@'", "f_ftype": "1", "f_path_source": "0", "f_max_secdata_offset": "0", "f_max_progdata_offset": "0", "f_copy_word": "{void (void *, const void *, unsigned long)} 0x53ac40 <_dwarf_memcpy_noswap_bytes>", "f_loc_ehdr": null, "f_ehdr": null, "f_loc_shdr": null, "f_shdr": null, "f_loc_phdr": null, "f_phdr": null, "f_elf_shstrings_data": null, "f_elf_shstrings_length": "0", "f_elf_shstrings_max": "0", "f_loc_dynamic": null, "f_dynamic": null, "f_dynamic_sect_index": "0", "f_loc_dynsym": null, "f_dynsym": null, "f_dynsym_sect_strings": null, "f_dynsym_sect_strings_max": "0", "f_dynsym_sect_strings_sect_index": "0", "f_dynsym_sect_index": "0", "f_loc_symtab": null, "f_symtab": null, "f_symtab_sect_strings": null, "f_symtab_sect_strings_max": "0", "f_symtab_sect_strings_sect_index": "0", "f_symtab_sect_index": "0", "f_sg_next_group_number": "0", "f_sht_group_type_section_count": "0", "f_shf_group_flag_section_count": "0", "f_dwo_group_section_count": "0"}, "errcode": "445"}, "Value After Statement Execution": "int", "Function Name": "elf_load_elf_header64", "Block_Size": 12, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_crc32 (Dwarf_Debug dbg,unsigned char *crcbuf,\n Dwarf_Error *error)\n{\n \n \n\n \n Dwarf_Unsigned fsize = 0;\n \n Dwarf_Unsigned readlenu = 10000;\n Dwarf_Unsigned size_left = 0;\n const unsigned char *readbuf = 0;\n unsigned int tcrc = 0;\n unsigned int init = 0;\n int fd = -1;\n Dwarf_Unsigned sz = 0;\n int res = 0;\n\n CHECK_DBG(dbg,error,\"dwarf_crc32()\");\n if (!crcbuf) {\n return DW_DLV_NO_ENTRY;\n }\n if (!dbg->de_owns_fd) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (fd < 0) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (dbg->de_filesize) {\n fsize = (size_t)dbg->de_filesize;\n } else {\n res = _dwarf_seekr(fd,0,SEEK_END,&sz);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to end fails\");\n return DW_DLV_ERROR;\n }\n fsize = sz;\n }\n if (fsize <= (Dwarf_Unsigned)500) {\n \n return DW_DLV_NO_ENTRY;\n }\n size_left = fsize;\n res = _dwarf_seekr(fd,0,SEEK_SET,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to start fails\");\n return DW_DLV_ERROR;\n }\n readbuf = (unsigned char *)malloc(readlenu);\n if (!readbuf) {\n _dwarf_error_string(dbg,error,DW_DLE_ALLOC_FAIL,\n \"DW_DLE_ALLOC_FAIL: dwarf_crc32 read buffer\"\n \" alloc fails\");\n return DW_DLV_ERROR;\n }\n while (size_left > 0) {\n if (size_left < readlenu) {\n readlenu = size_left;\n }\n res = _dwarf_readr(fd,(char *)readbuf,readlenu,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_READ_ERROR,\n \"DW_DLE_READ_ERROR: dwarf_crc32 read fails \");\n free((unsigned char*)readbuf);\n return DW_DLV_ERROR;\n }\n \n tcrc = (unsigned int)dwarf_basic_crc32(readbuf,\n (unsigned long)readlenu,\n (unsigned long)init);\n init = tcrc;\n size_left -= readlenu;\n }\n \n free((unsigned char*)readbuf);\n memcpy(crcbuf,(void *)&tcrc,4);\n return DW_DLV_OK;\n}", "Selected Statement": "Dwarf_Unsigned readlenu = 10000;", "Function Input": {"crcbuf": {"value": null}, "dbg": {"value": "0xfd1bf0"}, "error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x100000003\n", "message": "Cannot access memory at address 0x100000003"}}}, "Variable Values Before Statement": {"constant": "10000"}, "Value After Statement Execution": "10000", "Block_Size": 9, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_crc32 (Dwarf_Debug dbg,unsigned char *crcbuf,\n Dwarf_Error *error)\n{\n \n \n\n \n Dwarf_Unsigned fsize = 0;\n \n Dwarf_Unsigned readlenu = 10000;\n Dwarf_Unsigned size_left = 0;\n const unsigned char *readbuf = 0;\n unsigned int tcrc = 0;\n unsigned int init = 0;\n int fd = -1;\n Dwarf_Unsigned sz = 0;\n int res = 0;\n\n CHECK_DBG(dbg,error,\"dwarf_crc32()\");\n if (!crcbuf) {\n return DW_DLV_NO_ENTRY;\n }\n if (!dbg->de_owns_fd) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (fd < 0) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (dbg->de_filesize) {\n fsize = (size_t)dbg->de_filesize;\n } else {\n res = _dwarf_seekr(fd,0,SEEK_END,&sz);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to end fails\");\n return DW_DLV_ERROR;\n }\n fsize = sz;\n }\n if (fsize <= (Dwarf_Unsigned)500) {\n \n return DW_DLV_NO_ENTRY;\n }\n size_left = fsize;\n res = _dwarf_seekr(fd,0,SEEK_SET,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to start fails\");\n return DW_DLV_ERROR;\n }\n readbuf = (unsigned char *)malloc(readlenu);\n if (!readbuf) {\n _dwarf_error_string(dbg,error,DW_DLE_ALLOC_FAIL,\n \"DW_DLE_ALLOC_FAIL: dwarf_crc32 read buffer\"\n \" alloc fails\");\n return DW_DLV_ERROR;\n }\n while (size_left > 0) {\n if (size_left < readlenu) {\n readlenu = size_left;\n }\n res = _dwarf_readr(fd,(char *)readbuf,readlenu,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_READ_ERROR,\n \"DW_DLE_READ_ERROR: dwarf_crc32 read fails \");\n free((unsigned char*)readbuf);\n return DW_DLV_ERROR;\n }\n \n tcrc = (unsigned int)dwarf_basic_crc32(readbuf,\n (unsigned long)readlenu,\n (unsigned long)init);\n init = tcrc;\n size_left -= readlenu;\n }\n \n free((unsigned char*)readbuf);\n memcpy(crcbuf,(void *)&tcrc,4);\n return DW_DLV_OK;\n}", "Selected Statement": "Dwarf_Unsigned size_left = 0;", "Function Input": {"crcbuf": {"value": null}, "dbg": {"value": "0xfd1bf0"}, "error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x100000003\n", "message": "Cannot access memory at address 0x100000003"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 10, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_crc32 (Dwarf_Debug dbg,unsigned char *crcbuf,\n Dwarf_Error *error)\n{\n \n \n\n \n Dwarf_Unsigned fsize = 0;\n \n Dwarf_Unsigned readlenu = 10000;\n Dwarf_Unsigned size_left = 0;\n const unsigned char *readbuf = 0;\n unsigned int tcrc = 0;\n unsigned int init = 0;\n int fd = -1;\n Dwarf_Unsigned sz = 0;\n int res = 0;\n\n CHECK_DBG(dbg,error,\"dwarf_crc32()\");\n if (!crcbuf) {\n return DW_DLV_NO_ENTRY;\n }\n if (!dbg->de_owns_fd) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (fd < 0) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (dbg->de_filesize) {\n fsize = (size_t)dbg->de_filesize;\n } else {\n res = _dwarf_seekr(fd,0,SEEK_END,&sz);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to end fails\");\n return DW_DLV_ERROR;\n }\n fsize = sz;\n }\n if (fsize <= (Dwarf_Unsigned)500) {\n \n return DW_DLV_NO_ENTRY;\n }\n size_left = fsize;\n res = _dwarf_seekr(fd,0,SEEK_SET,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to start fails\");\n return DW_DLV_ERROR;\n }\n readbuf = (unsigned char *)malloc(readlenu);\n if (!readbuf) {\n _dwarf_error_string(dbg,error,DW_DLE_ALLOC_FAIL,\n \"DW_DLE_ALLOC_FAIL: dwarf_crc32 read buffer\"\n \" alloc fails\");\n return DW_DLV_ERROR;\n }\n while (size_left > 0) {\n if (size_left < readlenu) {\n readlenu = size_left;\n }\n res = _dwarf_readr(fd,(char *)readbuf,readlenu,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_READ_ERROR,\n \"DW_DLE_READ_ERROR: dwarf_crc32 read fails \");\n free((unsigned char*)readbuf);\n return DW_DLV_ERROR;\n }\n \n tcrc = (unsigned int)dwarf_basic_crc32(readbuf,\n (unsigned long)readlenu,\n (unsigned long)init);\n init = tcrc;\n size_left -= readlenu;\n }\n \n free((unsigned char*)readbuf);\n memcpy(crcbuf,(void *)&tcrc,4);\n return DW_DLV_OK;\n}", "Selected Statement": "const unsigned char *readbuf = 0;", "Function Input": {"crcbuf": {"value": null}, "dbg": {"value": "0xfd1bf0"}, "error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x100000003\n", "message": "Cannot access memory at address 0x100000003"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 11, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_crc32 (Dwarf_Debug dbg,unsigned char *crcbuf,\n Dwarf_Error *error)\n{\n \n \n\n \n Dwarf_Unsigned fsize = 0;\n \n Dwarf_Unsigned readlenu = 10000;\n Dwarf_Unsigned size_left = 0;\n const unsigned char *readbuf = 0;\n unsigned int tcrc = 0;\n unsigned int init = 0;\n int fd = -1;\n Dwarf_Unsigned sz = 0;\n int res = 0;\n\n CHECK_DBG(dbg,error,\"dwarf_crc32()\");\n if (!crcbuf) {\n return DW_DLV_NO_ENTRY;\n }\n if (!dbg->de_owns_fd) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (fd < 0) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (dbg->de_filesize) {\n fsize = (size_t)dbg->de_filesize;\n } else {\n res = _dwarf_seekr(fd,0,SEEK_END,&sz);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to end fails\");\n return DW_DLV_ERROR;\n }\n fsize = sz;\n }\n if (fsize <= (Dwarf_Unsigned)500) {\n \n return DW_DLV_NO_ENTRY;\n }\n size_left = fsize;\n res = _dwarf_seekr(fd,0,SEEK_SET,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to start fails\");\n return DW_DLV_ERROR;\n }\n readbuf = (unsigned char *)malloc(readlenu);\n if (!readbuf) {\n _dwarf_error_string(dbg,error,DW_DLE_ALLOC_FAIL,\n \"DW_DLE_ALLOC_FAIL: dwarf_crc32 read buffer\"\n \" alloc fails\");\n return DW_DLV_ERROR;\n }\n while (size_left > 0) {\n if (size_left < readlenu) {\n readlenu = size_left;\n }\n res = _dwarf_readr(fd,(char *)readbuf,readlenu,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_READ_ERROR,\n \"DW_DLE_READ_ERROR: dwarf_crc32 read fails \");\n free((unsigned char*)readbuf);\n return DW_DLV_ERROR;\n }\n \n tcrc = (unsigned int)dwarf_basic_crc32(readbuf,\n (unsigned long)readlenu,\n (unsigned long)init);\n init = tcrc;\n size_left -= readlenu;\n }\n \n free((unsigned char*)readbuf);\n memcpy(crcbuf,(void *)&tcrc,4);\n return DW_DLV_OK;\n}", "Selected Statement": "unsigned int tcrc = 0;", "Function Input": {"crcbuf": {"value": null}, "dbg": {"value": "0xfd1bf0"}, "error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x100000003\n", "message": "Cannot access memory at address 0x100000003"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 12, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_crc32 (Dwarf_Debug dbg,unsigned char *crcbuf,\n Dwarf_Error *error)\n{\n \n \n\n \n Dwarf_Unsigned fsize = 0;\n \n Dwarf_Unsigned readlenu = 10000;\n Dwarf_Unsigned size_left = 0;\n const unsigned char *readbuf = 0;\n unsigned int tcrc = 0;\n unsigned int init = 0;\n int fd = -1;\n Dwarf_Unsigned sz = 0;\n int res = 0;\n\n CHECK_DBG(dbg,error,\"dwarf_crc32()\");\n if (!crcbuf) {\n return DW_DLV_NO_ENTRY;\n }\n if (!dbg->de_owns_fd) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (fd < 0) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (dbg->de_filesize) {\n fsize = (size_t)dbg->de_filesize;\n } else {\n res = _dwarf_seekr(fd,0,SEEK_END,&sz);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to end fails\");\n return DW_DLV_ERROR;\n }\n fsize = sz;\n }\n if (fsize <= (Dwarf_Unsigned)500) {\n \n return DW_DLV_NO_ENTRY;\n }\n size_left = fsize;\n res = _dwarf_seekr(fd,0,SEEK_SET,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to start fails\");\n return DW_DLV_ERROR;\n }\n readbuf = (unsigned char *)malloc(readlenu);\n if (!readbuf) {\n _dwarf_error_string(dbg,error,DW_DLE_ALLOC_FAIL,\n \"DW_DLE_ALLOC_FAIL: dwarf_crc32 read buffer\"\n \" alloc fails\");\n return DW_DLV_ERROR;\n }\n while (size_left > 0) {\n if (size_left < readlenu) {\n readlenu = size_left;\n }\n res = _dwarf_readr(fd,(char *)readbuf,readlenu,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_READ_ERROR,\n \"DW_DLE_READ_ERROR: dwarf_crc32 read fails \");\n free((unsigned char*)readbuf);\n return DW_DLV_ERROR;\n }\n \n tcrc = (unsigned int)dwarf_basic_crc32(readbuf,\n (unsigned long)readlenu,\n (unsigned long)init);\n init = tcrc;\n size_left -= readlenu;\n }\n \n free((unsigned char*)readbuf);\n memcpy(crcbuf,(void *)&tcrc,4);\n return DW_DLV_OK;\n}", "Selected Statement": "unsigned int init = 0;", "Function Input": {"crcbuf": {"value": null}, "dbg": {"value": "0xfd1bf0"}, "error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x100000003\n", "message": "Cannot access memory at address 0x100000003"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 13, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_crc32 (Dwarf_Debug dbg,unsigned char *crcbuf,\n Dwarf_Error *error)\n{\n \n \n\n \n Dwarf_Unsigned fsize = 0;\n \n Dwarf_Unsigned readlenu = 10000;\n Dwarf_Unsigned size_left = 0;\n const unsigned char *readbuf = 0;\n unsigned int tcrc = 0;\n unsigned int init = 0;\n int fd = -1;\n Dwarf_Unsigned sz = 0;\n int res = 0;\n\n CHECK_DBG(dbg,error,\"dwarf_crc32()\");\n if (!crcbuf) {\n return DW_DLV_NO_ENTRY;\n }\n if (!dbg->de_owns_fd) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (fd < 0) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (dbg->de_filesize) {\n fsize = (size_t)dbg->de_filesize;\n } else {\n res = _dwarf_seekr(fd,0,SEEK_END,&sz);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to end fails\");\n return DW_DLV_ERROR;\n }\n fsize = sz;\n }\n if (fsize <= (Dwarf_Unsigned)500) {\n \n return DW_DLV_NO_ENTRY;\n }\n size_left = fsize;\n res = _dwarf_seekr(fd,0,SEEK_SET,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to start fails\");\n return DW_DLV_ERROR;\n }\n readbuf = (unsigned char *)malloc(readlenu);\n if (!readbuf) {\n _dwarf_error_string(dbg,error,DW_DLE_ALLOC_FAIL,\n \"DW_DLE_ALLOC_FAIL: dwarf_crc32 read buffer\"\n \" alloc fails\");\n return DW_DLV_ERROR;\n }\n while (size_left > 0) {\n if (size_left < readlenu) {\n readlenu = size_left;\n }\n res = _dwarf_readr(fd,(char *)readbuf,readlenu,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_READ_ERROR,\n \"DW_DLE_READ_ERROR: dwarf_crc32 read fails \");\n free((unsigned char*)readbuf);\n return DW_DLV_ERROR;\n }\n \n tcrc = (unsigned int)dwarf_basic_crc32(readbuf,\n (unsigned long)readlenu,\n (unsigned long)init);\n init = tcrc;\n size_left -= readlenu;\n }\n \n free((unsigned char*)readbuf);\n memcpy(crcbuf,(void *)&tcrc,4);\n return DW_DLV_OK;\n}", "Selected Statement": "int fd = -1;", "Function Input": {"crcbuf": {"value": null}, "dbg": {"value": "0xfd1bf0"}, "error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x100000003\n", "message": "Cannot access memory at address 0x100000003"}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 14, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_crc32 (Dwarf_Debug dbg,unsigned char *crcbuf,\n Dwarf_Error *error)\n{\n \n \n\n \n Dwarf_Unsigned fsize = 0;\n \n Dwarf_Unsigned readlenu = 10000;\n Dwarf_Unsigned size_left = 0;\n const unsigned char *readbuf = 0;\n unsigned int tcrc = 0;\n unsigned int init = 0;\n int fd = -1;\n Dwarf_Unsigned sz = 0;\n int res = 0;\n\n CHECK_DBG(dbg,error,\"dwarf_crc32()\");\n if (!crcbuf) {\n return DW_DLV_NO_ENTRY;\n }\n if (!dbg->de_owns_fd) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (fd < 0) {\n return DW_DLV_NO_ENTRY;\n }\n fd = dbg->de_fd;\n if (dbg->de_filesize) {\n fsize = (size_t)dbg->de_filesize;\n } else {\n res = _dwarf_seekr(fd,0,SEEK_END,&sz);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to end fails\");\n return DW_DLV_ERROR;\n }\n fsize = sz;\n }\n if (fsize <= (Dwarf_Unsigned)500) {\n \n return DW_DLV_NO_ENTRY;\n }\n size_left = fsize;\n res = _dwarf_seekr(fd,0,SEEK_SET,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_SEEK_ERROR,\n \"DW_DLE_SEEK_ERROR: dwarf_crc32 seek \"\n \"to start fails\");\n return DW_DLV_ERROR;\n }\n readbuf = (unsigned char *)malloc(readlenu);\n if (!readbuf) {\n _dwarf_error_string(dbg,error,DW_DLE_ALLOC_FAIL,\n \"DW_DLE_ALLOC_FAIL: dwarf_crc32 read buffer\"\n \" alloc fails\");\n return DW_DLV_ERROR;\n }\n while (size_left > 0) {\n if (size_left < readlenu) {\n readlenu = size_left;\n }\n res = _dwarf_readr(fd,(char *)readbuf,readlenu,0);\n if (res != DW_DLV_OK) {\n _dwarf_error_string(dbg,error,DW_DLE_READ_ERROR,\n \"DW_DLE_READ_ERROR: dwarf_crc32 read fails \");\n free((unsigned char*)readbuf);\n return DW_DLV_ERROR;\n }\n \n tcrc = (unsigned int)dwarf_basic_crc32(readbuf,\n (unsigned long)readlenu,\n (unsigned long)init);\n init = tcrc;\n size_left -= readlenu;\n }\n \n free((unsigned char*)readbuf);\n memcpy(crcbuf,(void *)&tcrc,4);\n return DW_DLV_OK;\n}", "Selected Statement": "Dwarf_Unsigned sz = 0;", "Function Input": {"crcbuf": {"value": null}, "dbg": {"value": "0xfd1bf0"}, "error": {"value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x100000003\n", "message": "Cannot access memory at address 0x100000003"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 15, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarfstring_constructor(struct dwarfstring_s *g)\n{\n g->s_data = \"\";\n g->s_size = 0;\n g->s_avail = 0;\n g->s_malloc = FALSE;\n return TRUE;\n}", "Selected Statement": "g->s_data = \"\";", "Function Input": {"g": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"s_data": {"type_category": "string", "concrete_type": "string", "value": "0x7fffffffe51000 "}, "s_size": {"type_category": "unknown", "concrete_type": "size_t", "value": "36028797016885248"}, "s_avail": {"type_category": "unknown", "concrete_type": "size_t", "value": "4237742080"}, "s_malloc": {"type_category": "int", "concrete_type": "unsigned char", "value": "0 '\\000'"}}}}}, "Variable Values Before Statement": {"constant": "\"\""}, "Value After Statement Execution": "\"\"", "Block_Size": 1, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarfstring_constructor(struct dwarfstring_s *g)\n{\n g->s_data = \"\";\n g->s_size = 0;\n g->s_avail = 0;\n g->s_malloc = FALSE;\n return TRUE;\n}", "Selected Statement": "g->s_size = 0;", "Function Input": {"g": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"s_data": {"type_category": "string", "concrete_type": "string", "value": "0x7fffffffe51000 "}, "s_size": {"type_category": "unknown", "concrete_type": "size_t", "value": "36028797016885248"}, "s_avail": {"type_category": "unknown", "concrete_type": "size_t", "value": "4237742080"}, "s_malloc": {"type_category": "int", "concrete_type": "unsigned char", "value": "0 '\\000'"}}}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 2, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarfstring_constructor(struct dwarfstring_s *g)\n{\n g->s_data = \"\";\n g->s_size = 0;\n g->s_avail = 0;\n g->s_malloc = FALSE;\n return TRUE;\n}", "Selected Statement": "g->s_avail = 0;", "Function Input": {"g": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"s_data": {"type_category": "string", "concrete_type": "string", "value": "0x7fffffffe51000 "}, "s_size": {"type_category": "unknown", "concrete_type": "size_t", "value": "36028797016885248"}, "s_avail": {"type_category": "unknown", "concrete_type": "size_t", "value": "4237742080"}, "s_malloc": {"type_category": "int", "concrete_type": "unsigned char", "value": "0 '\\000'"}}}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 3, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_get_debugfission_for_key(Dwarf_Debug dbg,\n Dwarf_Sig8 *key ,\n const char *key_type ,\n Dwarf_Debug_Fission_Per_CU * percu_out,\n Dwarf_Error *error)\n{\n int sres = 0;\n Dwarf_Unsigned percu_index = 0;\n Dwarf_Xu_Index_Header xuhdr = 0;\n\n CHECK_DBG(dbg,error,\"dwarf_get_debugfission_for_key()\");\n if (!key || !key_type || !percu_out) {\n _dwarf_error_string(0,error,DW_DLE_XU_TYPE_ARG_ERROR,\n \"DW_DLE_XU_TYPE_ARG_ERROR: dw_key, dw_keytype, or \"\n \"Dwarf_Debug_Fission_Per_CU pointer* to return \"\n \"is not valid\");\n return DW_DLV_ERROR;\n }\n\n sres = _dwarf_load_debug_info(dbg,error);\n if (sres == DW_DLV_ERROR) {\n return sres;\n }\n sres = _dwarf_load_debug_types(dbg,error);\n if (sres == DW_DLV_ERROR) {\n return sres;\n }\n \n sres = _dwarf_get_xuhdr(dbg,key_type, &xuhdr,error);\n if (sres != DW_DLV_OK) {\n return sres;\n }\n \n sres = _dwarf_search_fission_for_key(dbg,\n xuhdr,key,&percu_index,error);\n if (sres != DW_DLV_OK) {\n return sres;\n }\n sres = transform_xu_to_dfp(xuhdr,percu_index,key,\n key_type,percu_out,error);\n return sres;\n}", "Selected Statement": "int sres = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 5, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_get_debugfission_for_key(Dwarf_Debug dbg,\n Dwarf_Sig8 *key ,\n const char *key_type ,\n Dwarf_Debug_Fission_Per_CU * percu_out,\n Dwarf_Error *error)\n{\n int sres = 0;\n Dwarf_Unsigned percu_index = 0;\n Dwarf_Xu_Index_Header xuhdr = 0;\n\n CHECK_DBG(dbg,error,\"dwarf_get_debugfission_for_key()\");\n if (!key || !key_type || !percu_out) {\n _dwarf_error_string(0,error,DW_DLE_XU_TYPE_ARG_ERROR,\n \"DW_DLE_XU_TYPE_ARG_ERROR: dw_key, dw_keytype, or \"\n \"Dwarf_Debug_Fission_Per_CU pointer* to return \"\n \"is not valid\");\n return DW_DLV_ERROR;\n }\n\n sres = _dwarf_load_debug_info(dbg,error);\n if (sres == DW_DLV_ERROR) {\n return sres;\n }\n sres = _dwarf_load_debug_types(dbg,error);\n if (sres == DW_DLV_ERROR) {\n return sres;\n }\n \n sres = _dwarf_get_xuhdr(dbg,key_type, &xuhdr,error);\n if (sres != DW_DLV_OK) {\n return sres;\n }\n \n sres = _dwarf_search_fission_for_key(dbg,\n xuhdr,key,&percu_index,error);\n if (sres != DW_DLV_OK) {\n return sres;\n }\n sres = transform_xu_to_dfp(xuhdr,percu_index,key,\n key_type,percu_out,error);\n return sres;\n}", "Selected Statement": "Dwarf_Unsigned percu_index = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 6, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_formaddr(Dwarf_Attribute attr,\n Dwarf_Addr * return_addr, Dwarf_Error * error)\n{\n Dwarf_Debug dbg = 0;\n Dwarf_Addr ret_addr = 0;\n Dwarf_CU_Context cu_context = 0;\n Dwarf_Half attrform = 0;\n int res = 0;\n\n res = get_attr_dbg(&dbg,&cu_context,attr,error);\n if (res != DW_DLV_OK) {\n return res;\n }\n attrform = attr->ar_attribute_form;\n if (dwarf_addr_form_is_indexed(attrform)) {\n res = _dwarf_look_in_local_and_tied(\n attrform,\n cu_context,\n attr->ar_debug_ptr,\n return_addr,\n error);\n return res;\n }\n if (attrform == DW_FORM_addr ||\n (cu_context->cc_producer == CC_PROD_METROWERKS &&\n attrform == DW_FORM_ref_addr)\n \n ) {\n Dwarf_Small *section_end =\n _dwarf_calculate_info_section_end_ptr(cu_context);\n\n READ_UNALIGNED_CK(dbg, ret_addr, Dwarf_Addr,\n attr->ar_debug_ptr,\n cu_context->cc_address_size,\n error,section_end);\n *return_addr = ret_addr;\n return DW_DLV_OK;\n }\n generate_form_error(dbg,error,attrform,\n DW_DLE_ATTR_FORM_BAD,\n \"DW_DLE_ATTR_FORM_BAD\",\n \"dwarf_formaddr\");\n return DW_DLV_ERROR;\n}", "Selected Statement": "Dwarf_Debug dbg = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 2, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_formaddr(Dwarf_Attribute attr,\n Dwarf_Addr * return_addr, Dwarf_Error * error)\n{\n Dwarf_Debug dbg = 0;\n Dwarf_Addr ret_addr = 0;\n Dwarf_CU_Context cu_context = 0;\n Dwarf_Half attrform = 0;\n int res = 0;\n\n res = get_attr_dbg(&dbg,&cu_context,attr,error);\n if (res != DW_DLV_OK) {\n return res;\n }\n attrform = attr->ar_attribute_form;\n if (dwarf_addr_form_is_indexed(attrform)) {\n res = _dwarf_look_in_local_and_tied(\n attrform,\n cu_context,\n attr->ar_debug_ptr,\n return_addr,\n error);\n return res;\n }\n if (attrform == DW_FORM_addr ||\n (cu_context->cc_producer == CC_PROD_METROWERKS &&\n attrform == DW_FORM_ref_addr)\n \n ) {\n Dwarf_Small *section_end =\n _dwarf_calculate_info_section_end_ptr(cu_context);\n\n READ_UNALIGNED_CK(dbg, ret_addr, Dwarf_Addr,\n attr->ar_debug_ptr,\n cu_context->cc_address_size,\n error,section_end);\n *return_addr = ret_addr;\n return DW_DLV_OK;\n }\n generate_form_error(dbg,error,attrform,\n DW_DLE_ATTR_FORM_BAD,\n \"DW_DLE_ATTR_FORM_BAD\",\n \"dwarf_formaddr\");\n return DW_DLV_ERROR;\n}", "Selected Statement": "Dwarf_Addr ret_addr = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 3, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_formaddr(Dwarf_Attribute attr,\n Dwarf_Addr * return_addr, Dwarf_Error * error)\n{\n Dwarf_Debug dbg = 0;\n Dwarf_Addr ret_addr = 0;\n Dwarf_CU_Context cu_context = 0;\n Dwarf_Half attrform = 0;\n int res = 0;\n\n res = get_attr_dbg(&dbg,&cu_context,attr,error);\n if (res != DW_DLV_OK) {\n return res;\n }\n attrform = attr->ar_attribute_form;\n if (dwarf_addr_form_is_indexed(attrform)) {\n res = _dwarf_look_in_local_and_tied(\n attrform,\n cu_context,\n attr->ar_debug_ptr,\n return_addr,\n error);\n return res;\n }\n if (attrform == DW_FORM_addr ||\n (cu_context->cc_producer == CC_PROD_METROWERKS &&\n attrform == DW_FORM_ref_addr)\n \n ) {\n Dwarf_Small *section_end =\n _dwarf_calculate_info_section_end_ptr(cu_context);\n\n READ_UNALIGNED_CK(dbg, ret_addr, Dwarf_Addr,\n attr->ar_debug_ptr,\n cu_context->cc_address_size,\n error,section_end);\n *return_addr = ret_addr;\n return DW_DLV_OK;\n }\n generate_form_error(dbg,error,attrform,\n DW_DLE_ATTR_FORM_BAD,\n \"DW_DLE_ATTR_FORM_BAD\",\n \"dwarf_formaddr\");\n return DW_DLV_ERROR;\n}", "Selected Statement": "Dwarf_CU_Context cu_context = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 4, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_formaddr(Dwarf_Attribute attr,\n Dwarf_Addr * return_addr, Dwarf_Error * error)\n{\n Dwarf_Debug dbg = 0;\n Dwarf_Addr ret_addr = 0;\n Dwarf_CU_Context cu_context = 0;\n Dwarf_Half attrform = 0;\n int res = 0;\n\n res = get_attr_dbg(&dbg,&cu_context,attr,error);\n if (res != DW_DLV_OK) {\n return res;\n }\n attrform = attr->ar_attribute_form;\n if (dwarf_addr_form_is_indexed(attrform)) {\n res = _dwarf_look_in_local_and_tied(\n attrform,\n cu_context,\n attr->ar_debug_ptr,\n return_addr,\n error);\n return res;\n }\n if (attrform == DW_FORM_addr ||\n (cu_context->cc_producer == CC_PROD_METROWERKS &&\n attrform == DW_FORM_ref_addr)\n \n ) {\n Dwarf_Small *section_end =\n _dwarf_calculate_info_section_end_ptr(cu_context);\n\n READ_UNALIGNED_CK(dbg, ret_addr, Dwarf_Addr,\n attr->ar_debug_ptr,\n cu_context->cc_address_size,\n error,section_end);\n *return_addr = ret_addr;\n return DW_DLV_OK;\n }\n generate_form_error(dbg,error,attrform,\n DW_DLE_ATTR_FORM_BAD,\n \"DW_DLE_ATTR_FORM_BAD\",\n \"dwarf_formaddr\");\n return DW_DLV_ERROR;\n}", "Selected Statement": "Dwarf_Half attrform = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 5, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int\ndwarf_formaddr(Dwarf_Attribute attr,\n Dwarf_Addr * return_addr, Dwarf_Error * error)\n{\n Dwarf_Debug dbg = 0;\n Dwarf_Addr ret_addr = 0;\n Dwarf_CU_Context cu_context = 0;\n Dwarf_Half attrform = 0;\n int res = 0;\n\n res = get_attr_dbg(&dbg,&cu_context,attr,error);\n if (res != DW_DLV_OK) {\n return res;\n }\n attrform = attr->ar_attribute_form;\n if (dwarf_addr_form_is_indexed(attrform)) {\n res = _dwarf_look_in_local_and_tied(\n attrform,\n cu_context,\n attr->ar_debug_ptr,\n return_addr,\n error);\n return res;\n }\n if (attrform == DW_FORM_addr ||\n (cu_context->cc_producer == CC_PROD_METROWERKS &&\n attrform == DW_FORM_ref_addr)\n \n ) {\n Dwarf_Small *section_end =\n _dwarf_calculate_info_section_end_ptr(cu_context);\n\n READ_UNALIGNED_CK(dbg, ret_addr, Dwarf_Addr,\n attr->ar_debug_ptr,\n cu_context->cc_address_size,\n error,section_end);\n *return_addr = ret_addr;\n return DW_DLV_OK;\n }\n generate_form_error(dbg,error,attrform,\n DW_DLE_ATTR_FORM_BAD,\n \"DW_DLE_ATTR_FORM_BAD\",\n \"dwarf_formaddr\");\n return DW_DLV_ERROR;\n}", "Selected Statement": "res = get_attr_dbg(&dbg,&cu_context,attr,error);", "Function Input": {}, "Variable Values Before Statement": {"attr": "Dwarf_Attribute", "error": "NULL"}, "Value After Statement Execution": "int", "Function Name": "get_attr_dbg", "Block_Size": 8, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "static int look_for_our_target(Dwarf_Debug dbg, struct target_data_s *td,\n Dwarf_Error *errp) {\n Dwarf_Unsigned cu_header_length = 0;\n Dwarf_Unsigned abbrev_offset = 0;\n Dwarf_Half address_size = 0;\n Dwarf_Half version_stamp = 0;\n Dwarf_Half offset_size = 0;\n Dwarf_Half extension_size = 0;\n Dwarf_Unsigned typeoffset = 0;\n Dwarf_Half header_cu_type = unittype;\n Dwarf_Bool is_info = g_is_info;\n int cu_number = 0;\n\n for (;; ++cu_number) {\n Dwarf_Die no_die = 0;\n Dwarf_Die cu_die = 0;\n int res = DW_DLV_ERROR;\n Dwarf_Sig8 signature;\n\n memset(&signature, 0, sizeof(signature));\n res = dwarf_next_cu_header_d(dbg, is_info, &cu_header_length,\n &version_stamp, &abbrev_offset, &address_size,\n &offset_size, &extension_size, &signature,\n &typeoffset, 0, &header_cu_type, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_NO_ENTRY;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return DW_DLV_NO_ENTRY;\n }\n cu_version_stamp = version_stamp;\n cu_offset_size = offset_size;\n res = dwarf_siblingof_b(dbg, no_die, is_info, &cu_die, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n\n td->td_cu_die = cu_die;\n res = get_die_and_siblings(dbg, cu_die, is_info, 0, cu_number, td, errp);\n if (res == FOUND_SUBPROG) {\n read_line_data(dbg, td, errp);\n if (td->td_reportallfound) {\n return res;\n }\n return res;\n } else if (res == IN_THIS_CU) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n } else if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_ERROR;\n }\n return DW_DLV_NO_ENTRY;\n }\n}", "Selected Statement": "Dwarf_Unsigned cu_header_length = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 1, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "static int look_for_our_target(Dwarf_Debug dbg, struct target_data_s *td,\n Dwarf_Error *errp) {\n Dwarf_Unsigned cu_header_length = 0;\n Dwarf_Unsigned abbrev_offset = 0;\n Dwarf_Half address_size = 0;\n Dwarf_Half version_stamp = 0;\n Dwarf_Half offset_size = 0;\n Dwarf_Half extension_size = 0;\n Dwarf_Unsigned typeoffset = 0;\n Dwarf_Half header_cu_type = unittype;\n Dwarf_Bool is_info = g_is_info;\n int cu_number = 0;\n\n for (;; ++cu_number) {\n Dwarf_Die no_die = 0;\n Dwarf_Die cu_die = 0;\n int res = DW_DLV_ERROR;\n Dwarf_Sig8 signature;\n\n memset(&signature, 0, sizeof(signature));\n res = dwarf_next_cu_header_d(dbg, is_info, &cu_header_length,\n &version_stamp, &abbrev_offset, &address_size,\n &offset_size, &extension_size, &signature,\n &typeoffset, 0, &header_cu_type, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_NO_ENTRY;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return DW_DLV_NO_ENTRY;\n }\n cu_version_stamp = version_stamp;\n cu_offset_size = offset_size;\n res = dwarf_siblingof_b(dbg, no_die, is_info, &cu_die, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n\n td->td_cu_die = cu_die;\n res = get_die_and_siblings(dbg, cu_die, is_info, 0, cu_number, td, errp);\n if (res == FOUND_SUBPROG) {\n read_line_data(dbg, td, errp);\n if (td->td_reportallfound) {\n return res;\n }\n return res;\n } else if (res == IN_THIS_CU) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n } else if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_ERROR;\n }\n return DW_DLV_NO_ENTRY;\n }\n}", "Selected Statement": "Dwarf_Unsigned abbrev_offset = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 2, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "static int look_for_our_target(Dwarf_Debug dbg, struct target_data_s *td,\n Dwarf_Error *errp) {\n Dwarf_Unsigned cu_header_length = 0;\n Dwarf_Unsigned abbrev_offset = 0;\n Dwarf_Half address_size = 0;\n Dwarf_Half version_stamp = 0;\n Dwarf_Half offset_size = 0;\n Dwarf_Half extension_size = 0;\n Dwarf_Unsigned typeoffset = 0;\n Dwarf_Half header_cu_type = unittype;\n Dwarf_Bool is_info = g_is_info;\n int cu_number = 0;\n\n for (;; ++cu_number) {\n Dwarf_Die no_die = 0;\n Dwarf_Die cu_die = 0;\n int res = DW_DLV_ERROR;\n Dwarf_Sig8 signature;\n\n memset(&signature, 0, sizeof(signature));\n res = dwarf_next_cu_header_d(dbg, is_info, &cu_header_length,\n &version_stamp, &abbrev_offset, &address_size,\n &offset_size, &extension_size, &signature,\n &typeoffset, 0, &header_cu_type, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_NO_ENTRY;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return DW_DLV_NO_ENTRY;\n }\n cu_version_stamp = version_stamp;\n cu_offset_size = offset_size;\n res = dwarf_siblingof_b(dbg, no_die, is_info, &cu_die, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n\n td->td_cu_die = cu_die;\n res = get_die_and_siblings(dbg, cu_die, is_info, 0, cu_number, td, errp);\n if (res == FOUND_SUBPROG) {\n read_line_data(dbg, td, errp);\n if (td->td_reportallfound) {\n return res;\n }\n return res;\n } else if (res == IN_THIS_CU) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n } else if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_ERROR;\n }\n return DW_DLV_NO_ENTRY;\n }\n}", "Selected Statement": "Dwarf_Half address_size = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 3, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "static int look_for_our_target(Dwarf_Debug dbg, struct target_data_s *td,\n Dwarf_Error *errp) {\n Dwarf_Unsigned cu_header_length = 0;\n Dwarf_Unsigned abbrev_offset = 0;\n Dwarf_Half address_size = 0;\n Dwarf_Half version_stamp = 0;\n Dwarf_Half offset_size = 0;\n Dwarf_Half extension_size = 0;\n Dwarf_Unsigned typeoffset = 0;\n Dwarf_Half header_cu_type = unittype;\n Dwarf_Bool is_info = g_is_info;\n int cu_number = 0;\n\n for (;; ++cu_number) {\n Dwarf_Die no_die = 0;\n Dwarf_Die cu_die = 0;\n int res = DW_DLV_ERROR;\n Dwarf_Sig8 signature;\n\n memset(&signature, 0, sizeof(signature));\n res = dwarf_next_cu_header_d(dbg, is_info, &cu_header_length,\n &version_stamp, &abbrev_offset, &address_size,\n &offset_size, &extension_size, &signature,\n &typeoffset, 0, &header_cu_type, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_NO_ENTRY;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return DW_DLV_NO_ENTRY;\n }\n cu_version_stamp = version_stamp;\n cu_offset_size = offset_size;\n res = dwarf_siblingof_b(dbg, no_die, is_info, &cu_die, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n\n td->td_cu_die = cu_die;\n res = get_die_and_siblings(dbg, cu_die, is_info, 0, cu_number, td, errp);\n if (res == FOUND_SUBPROG) {\n read_line_data(dbg, td, errp);\n if (td->td_reportallfound) {\n return res;\n }\n return res;\n } else if (res == IN_THIS_CU) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n } else if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_ERROR;\n }\n return DW_DLV_NO_ENTRY;\n }\n}", "Selected Statement": "Dwarf_Half version_stamp = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 4, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "static int look_for_our_target(Dwarf_Debug dbg, struct target_data_s *td,\n Dwarf_Error *errp) {\n Dwarf_Unsigned cu_header_length = 0;\n Dwarf_Unsigned abbrev_offset = 0;\n Dwarf_Half address_size = 0;\n Dwarf_Half version_stamp = 0;\n Dwarf_Half offset_size = 0;\n Dwarf_Half extension_size = 0;\n Dwarf_Unsigned typeoffset = 0;\n Dwarf_Half header_cu_type = unittype;\n Dwarf_Bool is_info = g_is_info;\n int cu_number = 0;\n\n for (;; ++cu_number) {\n Dwarf_Die no_die = 0;\n Dwarf_Die cu_die = 0;\n int res = DW_DLV_ERROR;\n Dwarf_Sig8 signature;\n\n memset(&signature, 0, sizeof(signature));\n res = dwarf_next_cu_header_d(dbg, is_info, &cu_header_length,\n &version_stamp, &abbrev_offset, &address_size,\n &offset_size, &extension_size, &signature,\n &typeoffset, 0, &header_cu_type, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_NO_ENTRY;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return DW_DLV_NO_ENTRY;\n }\n cu_version_stamp = version_stamp;\n cu_offset_size = offset_size;\n res = dwarf_siblingof_b(dbg, no_die, is_info, &cu_die, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n\n td->td_cu_die = cu_die;\n res = get_die_and_siblings(dbg, cu_die, is_info, 0, cu_number, td, errp);\n if (res == FOUND_SUBPROG) {\n read_line_data(dbg, td, errp);\n if (td->td_reportallfound) {\n return res;\n }\n return res;\n } else if (res == IN_THIS_CU) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n } else if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_ERROR;\n }\n return DW_DLV_NO_ENTRY;\n }\n}", "Selected Statement": "Dwarf_Half offset_size = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 5, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "static int look_for_our_target(Dwarf_Debug dbg, struct target_data_s *td,\n Dwarf_Error *errp) {\n Dwarf_Unsigned cu_header_length = 0;\n Dwarf_Unsigned abbrev_offset = 0;\n Dwarf_Half address_size = 0;\n Dwarf_Half version_stamp = 0;\n Dwarf_Half offset_size = 0;\n Dwarf_Half extension_size = 0;\n Dwarf_Unsigned typeoffset = 0;\n Dwarf_Half header_cu_type = unittype;\n Dwarf_Bool is_info = g_is_info;\n int cu_number = 0;\n\n for (;; ++cu_number) {\n Dwarf_Die no_die = 0;\n Dwarf_Die cu_die = 0;\n int res = DW_DLV_ERROR;\n Dwarf_Sig8 signature;\n\n memset(&signature, 0, sizeof(signature));\n res = dwarf_next_cu_header_d(dbg, is_info, &cu_header_length,\n &version_stamp, &abbrev_offset, &address_size,\n &offset_size, &extension_size, &signature,\n &typeoffset, 0, &header_cu_type, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_NO_ENTRY;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return DW_DLV_NO_ENTRY;\n }\n cu_version_stamp = version_stamp;\n cu_offset_size = offset_size;\n res = dwarf_siblingof_b(dbg, no_die, is_info, &cu_die, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n\n td->td_cu_die = cu_die;\n res = get_die_and_siblings(dbg, cu_die, is_info, 0, cu_number, td, errp);\n if (res == FOUND_SUBPROG) {\n read_line_data(dbg, td, errp);\n if (td->td_reportallfound) {\n return res;\n }\n return res;\n } else if (res == IN_THIS_CU) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n } else if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_ERROR;\n }\n return DW_DLV_NO_ENTRY;\n }\n}", "Selected Statement": "Dwarf_Half extension_size = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 6, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "static int look_for_our_target(Dwarf_Debug dbg, struct target_data_s *td,\n Dwarf_Error *errp) {\n Dwarf_Unsigned cu_header_length = 0;\n Dwarf_Unsigned abbrev_offset = 0;\n Dwarf_Half address_size = 0;\n Dwarf_Half version_stamp = 0;\n Dwarf_Half offset_size = 0;\n Dwarf_Half extension_size = 0;\n Dwarf_Unsigned typeoffset = 0;\n Dwarf_Half header_cu_type = unittype;\n Dwarf_Bool is_info = g_is_info;\n int cu_number = 0;\n\n for (;; ++cu_number) {\n Dwarf_Die no_die = 0;\n Dwarf_Die cu_die = 0;\n int res = DW_DLV_ERROR;\n Dwarf_Sig8 signature;\n\n memset(&signature, 0, sizeof(signature));\n res = dwarf_next_cu_header_d(dbg, is_info, &cu_header_length,\n &version_stamp, &abbrev_offset, &address_size,\n &offset_size, &extension_size, &signature,\n &typeoffset, 0, &header_cu_type, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_NO_ENTRY;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return DW_DLV_NO_ENTRY;\n }\n cu_version_stamp = version_stamp;\n cu_offset_size = offset_size;\n res = dwarf_siblingof_b(dbg, no_die, is_info, &cu_die, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n\n td->td_cu_die = cu_die;\n res = get_die_and_siblings(dbg, cu_die, is_info, 0, cu_number, td, errp);\n if (res == FOUND_SUBPROG) {\n read_line_data(dbg, td, errp);\n if (td->td_reportallfound) {\n return res;\n }\n return res;\n } else if (res == IN_THIS_CU) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n } else if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_ERROR;\n }\n return DW_DLV_NO_ENTRY;\n }\n}", "Selected Statement": "Dwarf_Unsigned typeoffset = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 7, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "static int look_for_our_target(Dwarf_Debug dbg, struct target_data_s *td,\n Dwarf_Error *errp) {\n Dwarf_Unsigned cu_header_length = 0;\n Dwarf_Unsigned abbrev_offset = 0;\n Dwarf_Half address_size = 0;\n Dwarf_Half version_stamp = 0;\n Dwarf_Half offset_size = 0;\n Dwarf_Half extension_size = 0;\n Dwarf_Unsigned typeoffset = 0;\n Dwarf_Half header_cu_type = unittype;\n Dwarf_Bool is_info = g_is_info;\n int cu_number = 0;\n\n for (;; ++cu_number) {\n Dwarf_Die no_die = 0;\n Dwarf_Die cu_die = 0;\n int res = DW_DLV_ERROR;\n Dwarf_Sig8 signature;\n\n memset(&signature, 0, sizeof(signature));\n res = dwarf_next_cu_header_d(dbg, is_info, &cu_header_length,\n &version_stamp, &abbrev_offset, &address_size,\n &offset_size, &extension_size, &signature,\n &typeoffset, 0, &header_cu_type, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_NO_ENTRY;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return DW_DLV_NO_ENTRY;\n }\n cu_version_stamp = version_stamp;\n cu_offset_size = offset_size;\n res = dwarf_siblingof_b(dbg, no_die, is_info, &cu_die, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n\n td->td_cu_die = cu_die;\n res = get_die_and_siblings(dbg, cu_die, is_info, 0, cu_number, td, errp);\n if (res == FOUND_SUBPROG) {\n read_line_data(dbg, td, errp);\n if (td->td_reportallfound) {\n return res;\n }\n return res;\n } else if (res == IN_THIS_CU) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n } else if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_ERROR;\n }\n return DW_DLV_NO_ENTRY;\n }\n}", "Selected Statement": "Dwarf_Half header_cu_type = unittype;", "Function Input": {}, "Variable Values Before Statement": {"unittype": "int"}, "Value After Statement Execution": "int", "Block_Size": 8, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "static int look_for_our_target(Dwarf_Debug dbg, struct target_data_s *td,\n Dwarf_Error *errp) {\n Dwarf_Unsigned cu_header_length = 0;\n Dwarf_Unsigned abbrev_offset = 0;\n Dwarf_Half address_size = 0;\n Dwarf_Half version_stamp = 0;\n Dwarf_Half offset_size = 0;\n Dwarf_Half extension_size = 0;\n Dwarf_Unsigned typeoffset = 0;\n Dwarf_Half header_cu_type = unittype;\n Dwarf_Bool is_info = g_is_info;\n int cu_number = 0;\n\n for (;; ++cu_number) {\n Dwarf_Die no_die = 0;\n Dwarf_Die cu_die = 0;\n int res = DW_DLV_ERROR;\n Dwarf_Sig8 signature;\n\n memset(&signature, 0, sizeof(signature));\n res = dwarf_next_cu_header_d(dbg, is_info, &cu_header_length,\n &version_stamp, &abbrev_offset, &address_size,\n &offset_size, &extension_size, &signature,\n &typeoffset, 0, &header_cu_type, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_NO_ENTRY;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return DW_DLV_NO_ENTRY;\n }\n cu_version_stamp = version_stamp;\n cu_offset_size = offset_size;\n res = dwarf_siblingof_b(dbg, no_die, is_info, &cu_die, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n\n td->td_cu_die = cu_die;\n res = get_die_and_siblings(dbg, cu_die, is_info, 0, cu_number, td, errp);\n if (res == FOUND_SUBPROG) {\n read_line_data(dbg, td, errp);\n if (td->td_reportallfound) {\n return res;\n }\n return res;\n } else if (res == IN_THIS_CU) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n } else if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_ERROR;\n }\n return DW_DLV_NO_ENTRY;\n }\n}", "Selected Statement": "Dwarf_Bool is_info = g_is_info;", "Function Input": {}, "Variable Values Before Statement": {"g_is_info": "Dwarf_Bool"}, "Value After Statement Execution": "Dwarf_Bool", "Block_Size": 9, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "static int look_for_our_target(Dwarf_Debug dbg, struct target_data_s *td,\n Dwarf_Error *errp) {\n Dwarf_Unsigned cu_header_length = 0;\n Dwarf_Unsigned abbrev_offset = 0;\n Dwarf_Half address_size = 0;\n Dwarf_Half version_stamp = 0;\n Dwarf_Half offset_size = 0;\n Dwarf_Half extension_size = 0;\n Dwarf_Unsigned typeoffset = 0;\n Dwarf_Half header_cu_type = unittype;\n Dwarf_Bool is_info = g_is_info;\n int cu_number = 0;\n\n for (;; ++cu_number) {\n Dwarf_Die no_die = 0;\n Dwarf_Die cu_die = 0;\n int res = DW_DLV_ERROR;\n Dwarf_Sig8 signature;\n\n memset(&signature, 0, sizeof(signature));\n res = dwarf_next_cu_header_d(dbg, is_info, &cu_header_length,\n &version_stamp, &abbrev_offset, &address_size,\n &offset_size, &extension_size, &signature,\n &typeoffset, 0, &header_cu_type, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_NO_ENTRY;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return DW_DLV_NO_ENTRY;\n }\n cu_version_stamp = version_stamp;\n cu_offset_size = offset_size;\n res = dwarf_siblingof_b(dbg, no_die, is_info, &cu_die, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n\n td->td_cu_die = cu_die;\n res = get_die_and_siblings(dbg, cu_die, is_info, 0, cu_number, td, errp);\n if (res == FOUND_SUBPROG) {\n read_line_data(dbg, td, errp);\n if (td->td_reportallfound) {\n return res;\n }\n return res;\n } else if (res == IN_THIS_CU) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n } else if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_ERROR;\n }\n return DW_DLV_NO_ENTRY;\n }\n}", "Selected Statement": "Dwarf_Die no_die = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 13, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "static int look_for_our_target(Dwarf_Debug dbg, struct target_data_s *td,\n Dwarf_Error *errp) {\n Dwarf_Unsigned cu_header_length = 0;\n Dwarf_Unsigned abbrev_offset = 0;\n Dwarf_Half address_size = 0;\n Dwarf_Half version_stamp = 0;\n Dwarf_Half offset_size = 0;\n Dwarf_Half extension_size = 0;\n Dwarf_Unsigned typeoffset = 0;\n Dwarf_Half header_cu_type = unittype;\n Dwarf_Bool is_info = g_is_info;\n int cu_number = 0;\n\n for (;; ++cu_number) {\n Dwarf_Die no_die = 0;\n Dwarf_Die cu_die = 0;\n int res = DW_DLV_ERROR;\n Dwarf_Sig8 signature;\n\n memset(&signature, 0, sizeof(signature));\n res = dwarf_next_cu_header_d(dbg, is_info, &cu_header_length,\n &version_stamp, &abbrev_offset, &address_size,\n &offset_size, &extension_size, &signature,\n &typeoffset, 0, &header_cu_type, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_NO_ENTRY;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return DW_DLV_NO_ENTRY;\n }\n cu_version_stamp = version_stamp;\n cu_offset_size = offset_size;\n res = dwarf_siblingof_b(dbg, no_die, is_info, &cu_die, errp);\n if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n }\n if (res == DW_DLV_NO_ENTRY) {\n return res;\n }\n\n td->td_cu_die = cu_die;\n res = get_die_and_siblings(dbg, cu_die, is_info, 0, cu_number, td, errp);\n if (res == FOUND_SUBPROG) {\n read_line_data(dbg, td, errp);\n if (td->td_reportallfound) {\n return res;\n }\n return res;\n } else if (res == IN_THIS_CU) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return res;\n } else if (res == DW_DLV_ERROR) {\n if (errp) {\n char *em = dwarf_errmsg(*errp);\n }\n return DW_DLV_ERROR;\n }\n return DW_DLV_NO_ENTRY;\n }\n}", "Selected Statement": "Dwarf_Die cu_die = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 14, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int dwarf_load_rnglists(\n Dwarf_Debug dbg,\n Dwarf_Unsigned *rnglists_count,\n Dwarf_Error *error)\n{\n int res = DW_DLV_ERROR;\n Dwarf_Rnglists_Context *cxt = 0;\n Dwarf_Unsigned count = 0;\n\n CHECK_DBG(dbg,error,\"dwarf_load_rnglists\");\n if (dbg->de_rnglists_context) {\n if (rnglists_count) {\n *rnglists_count = dbg->de_rnglists_context_count;\n }\n return DW_DLV_OK;\n }\n if (!dbg->de_debug_rnglists.dss_size) {\n \n return DW_DLV_NO_ENTRY;\n }\n if (!dbg->de_debug_rnglists.dss_data) {\n res = _dwarf_load_section(dbg, &dbg->de_debug_rnglists,\n error);\n if (res != DW_DLV_OK) {\n return res;\n }\n }\n res = internal_load_rnglists_contexts(dbg,&cxt,&count,error);\n if (res == DW_DLV_ERROR) {\n return res;\n }\n dbg->de_rnglists_context = cxt;\n dbg->de_rnglists_context_count = count;\n if (rnglists_count) {\n *rnglists_count = count;\n }\n return DW_DLV_OK;\n}", "Selected Statement": "int res = DW_DLV_ERROR;", "Function Input": {}, "Variable Values Before Statement": {"DW_DLV_ERROR": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 4, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "int dwarf_load_rnglists(\n Dwarf_Debug dbg,\n Dwarf_Unsigned *rnglists_count,\n Dwarf_Error *error)\n{\n int res = DW_DLV_ERROR;\n Dwarf_Rnglists_Context *cxt = 0;\n Dwarf_Unsigned count = 0;\n\n CHECK_DBG(dbg,error,\"dwarf_load_rnglists\");\n if (dbg->de_rnglists_context) {\n if (rnglists_count) {\n *rnglists_count = dbg->de_rnglists_context_count;\n }\n return DW_DLV_OK;\n }\n if (!dbg->de_debug_rnglists.dss_size) {\n \n return DW_DLV_NO_ENTRY;\n }\n if (!dbg->de_debug_rnglists.dss_data) {\n res = _dwarf_load_section(dbg, &dbg->de_debug_rnglists,\n error);\n if (res != DW_DLV_OK) {\n return res;\n }\n }\n res = internal_load_rnglists_contexts(dbg,&cxt,&count,error);\n if (res == DW_DLV_ERROR) {\n return res;\n }\n dbg->de_rnglists_context = cxt;\n dbg->de_rnglists_context_count = count;\n if (rnglists_count) {\n *rnglists_count = count;\n }\n return DW_DLV_OK;\n}", "Selected Statement": "Dwarf_Rnglists_Context *cxt = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 5, "Project Information": "libdwarf"} +{"Programming Language": "C", "Source Code": "unsigned int luaO_codeparam (unsigned int p) {\n if (p >= (cast(lu_mem, 0x1F) << (0xF - 7 - 1)) * 100u) \n return 0xFF; \n else {\n p = (cast(l_uint32, p) * 128 + 99) / 100; \n if (p < 0x10) \n return p; \n else {\n int log = luaO_ceillog2(p + 1) - 5; \n return ((p >> log) - 0x10) | ((log + 1) << 4);\n }\n }\n}", "Selected Statement": "p = (cast(l_uint32, p) * 128 + 99) / 100; /* round up the division */", "Function Input": {}, "Variable Values Before Statement": {"cast": "NULL", "l_uint32": "NULL", "p": "unsigned int"}, "Value After Statement Execution": "unsigned int", "Block_Size": 3, "Project Information": "lua"} +{"Programming Language": "C", "Source Code": "unsigned int luaO_codeparam (unsigned int p) {\n if (p >= (cast(lu_mem, 0x1F) << (0xF - 7 - 1)) * 100u) \n return 0xFF; \n else {\n p = (cast(l_uint32, p) * 128 + 99) / 100; \n if (p < 0x10) \n return p; \n else {\n int log = luaO_ceillog2(p + 1) - 5; \n return ((p >> log) - 0x10) | ((log + 1) << 4);\n }\n }\n}", "Selected Statement": "int log = luaO_ceillog2(p + 1) - 5; /* preserve 5 bits */", "Function Input": {}, "Variable Values Before Statement": {"luaO_ceillog2": "NULL", "p": "unsigned int"}, "Value After Statement Execution": "NULL", "Block_Size": 7, "Project Information": "lua"} +{"Programming Language": "C", "Source Code": "int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) {\n l_uint32 oldnCcalls = L->nCcalls;\n struct lua_longjmp lj;\n lj.status = LUA_OK;\n lj.previous = L->errorJmp; \n L->errorJmp = &lj;\n LUAI_TRY(L, &lj,\n (*f)(L, ud);\n );\n L->errorJmp = lj.previous; \n L->nCcalls = oldnCcalls;\n return lj.status;\n}", "Selected Statement": "lj.status = LUA_OK;", "Function Input": {"L": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x3000000040\n", "message": "Cannot access memory at address 0x3000000040"}}}, "Variable Values Before Statement": {"LUA_OK": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 2, "Project Information": "lua"} +{"Programming Language": "C", "Source Code": "int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) {\n l_uint32 oldnCcalls = L->nCcalls;\n struct lua_longjmp lj;\n lj.status = LUA_OK;\n lj.previous = L->errorJmp; \n L->errorJmp = &lj;\n LUAI_TRY(L, &lj,\n (*f)(L, ud);\n );\n L->errorJmp = lj.previous; \n L->nCcalls = oldnCcalls;\n return lj.status;\n}", "Selected Statement": "L->nCcalls = oldnCcalls;", "Function Input": {"L": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x3000000040\n", "message": "Cannot access memory at address 0x3000000040"}}}, "Variable Values Before Statement": {"oldnCcalls": "l_uint32"}, "Value After Statement Execution": "l_uint32", "Block_Size": 9, "Project Information": "lua"} +{"Programming Language": "C", "Source Code": "void luaS_init (lua_State *L) {\n global_State *g = G(L);\n int i, j;\n stringtable *tb = &G(L)->strt;\n tb->hash = luaM_newvector(L, MINSTRTABSIZE, TString*);\n tablerehash(tb->hash, 0, MINSTRTABSIZE); \n tb->size = MINSTRTABSIZE;\n \n g->memerrmsg = luaS_newliteral(L, MEMERRMSG);\n luaC_fix(L, obj2gco(g->memerrmsg)); \n for (i = 0; i < STRCACHE_N; i++) \n for (j = 0; j < STRCACHE_M; j++)\n g->strcache[i][j] = g->memerrmsg;\n}", "Selected Statement": "tb->hash = luaM_newvector(L, MINSTRTABSIZE, TString*);", "Function Input": {}, "Variable Values Before Statement": {"L": "NULL", "MINSTRTABSIZE": "NULL", "TString": "NULL"}, "Value After Statement Execution": "NULL", "Function Name": "luaM_newvector", "Block_Size": 3, "Project Information": "lua"} +{"Programming Language": "C", "Source Code": "void luaS_init (lua_State *L) {\n global_State *g = G(L);\n int i, j;\n stringtable *tb = &G(L)->strt;\n tb->hash = luaM_newvector(L, MINSTRTABSIZE, TString*);\n tablerehash(tb->hash, 0, MINSTRTABSIZE); \n tb->size = MINSTRTABSIZE;\n \n g->memerrmsg = luaS_newliteral(L, MEMERRMSG);\n luaC_fix(L, obj2gco(g->memerrmsg)); \n for (i = 0; i < STRCACHE_N; i++) \n for (j = 0; j < STRCACHE_M; j++)\n g->strcache[i][j] = g->memerrmsg;\n}", "Selected Statement": "g->memerrmsg = luaS_newliteral(L, MEMERRMSG);", "Function Input": {}, "Variable Values Before Statement": {"L": "NULL", "MEMERRMSG": "NULL"}, "Value After Statement Execution": "{next = 0xf59850, tt = 4 '\\004', marked = 8 '\\b', extra = 0 '\\000', shrlen = 17 '\\021', hash = 1174080900, u = {lnglen = 0, hnext = 0x0}, contents = 0x756f6e6520746f6e <error: Cannot access memory at address 0x756f6e6520746f6e>, falloc = 0x726f6d656d206867, ud = 0x79}", "Function Name": "luaS_newliteral", "Block_Size": 7, "Project Information": "lua"} +{"Programming Language": "C", "Source Code": "void luaS_init (lua_State *L) {\n global_State *g = G(L);\n int i, j;\n stringtable *tb = &G(L)->strt;\n tb->hash = luaM_newvector(L, MINSTRTABSIZE, TString*);\n tablerehash(tb->hash, 0, MINSTRTABSIZE); \n tb->size = MINSTRTABSIZE;\n \n g->memerrmsg = luaS_newliteral(L, MEMERRMSG);\n luaC_fix(L, obj2gco(g->memerrmsg)); \n for (i = 0; i < STRCACHE_N; i++) \n for (j = 0; j < STRCACHE_M; j++)\n g->strcache[i][j] = g->memerrmsg;\n}", "Selected Statement": "for (i = 0; i < STRCACHE_N; i++) /* fill cache with valid strings */", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 9, "Project Information": "lua"} +{"Programming Language": "C", "Source Code": "void luaS_init (lua_State *L) {\n global_State *g = G(L);\n int i, j;\n stringtable *tb = &G(L)->strt;\n tb->hash = luaM_newvector(L, MINSTRTABSIZE, TString*);\n tablerehash(tb->hash, 0, MINSTRTABSIZE); \n tb->size = MINSTRTABSIZE;\n \n g->memerrmsg = luaS_newliteral(L, MEMERRMSG);\n luaC_fix(L, obj2gco(g->memerrmsg)); \n for (i = 0; i < STRCACHE_N; i++) \n for (j = 0; j < STRCACHE_M; j++)\n g->strcache[i][j] = g->memerrmsg;\n}", "Selected Statement": "for (j = 0; j < STRCACHE_M; j++)", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 10, "Project Information": "lua"} +{"Programming Language": "C", "Source Code": "void luaT_init (lua_State *L) {\n static const char *const luaT_eventname[] = { \n \"__index\", \"__newindex\",\n \"__gc\", \"__mode\", \"__len\", \"__eq\",\n \"__add\", \"__sub\", \"__mul\", \"__mod\", \"__pow\",\n \"__div\", \"__idiv\",\n \"__band\", \"__bor\", \"__bxor\", \"__shl\", \"__shr\",\n \"__unm\", \"__bnot\", \"__lt\", \"__le\",\n \"__concat\", \"__call\", \"__close\"\n };\n int i;\n for (i=0; itmname[i] = luaS_new(L, luaT_eventname[i]);\n luaC_fix(L, obj2gco(G(L)->tmname[i])); \n }\n}", "Selected Statement": "for (i=0; itmname[i] = luaS_new(L, luaT_eventname[i]);\n luaC_fix(L, obj2gco(G(L)->tmname[i])); \n }\n}", "Selected Statement": "G(L)->tmname[i] = luaS_new(L, luaT_eventname[i]);", "Function Input": {}, "Variable Values Before Statement": {"L": "NULL"}, "Value After Statement Execution": "NULL", "Function Name": "luaS_new", "Block_Size": 11, "Project Information": "lua"} +{"Programming Language": "C", "Source Code": "void luaX_init (lua_State *L) {\n int i;\n TString *e = luaS_newliteral(L, LUA_ENV); \n luaC_fix(L, obj2gco(e)); \n for (i=0; iextra = cast_byte(i+1); \n }\n}", "Selected Statement": "TString *e = luaS_newliteral(L, LUA_ENV); /* create env name */", "Function Input": {}, "Variable Values Before Statement": {"L": "NULL", "LUA_ENV": "NULL"}, "Value After Statement Execution": "NULL", "Function Name": "luaS_newliteral", "Block_Size": 1, "Project Information": "lua"} +{"Programming Language": "C", "Source Code": "void luaX_init (lua_State *L) {\n int i;\n TString *e = luaS_newliteral(L, LUA_ENV); \n luaC_fix(L, obj2gco(e)); \n for (i=0; iextra = cast_byte(i+1); \n }\n}", "Selected Statement": "for (i=0; iextra = cast_byte(i+1); \n }\n}", "Selected Statement": "TString *ts = luaS_new(L, luaX_tokens[i]);", "Function Input": {}, "Variable Values Before Statement": {"L": "NULL"}, "Value After Statement Execution": "NULL", "Function Name": "luaS_new", "Block_Size": 4, "Project Information": "lua"} +{"Programming Language": "C", "Source Code": "float\nfloat32_le_read (const unsigned char *cptr)\n{\tint\t\texponent, mantissa, negative ;\n\tfloat\tfvalue ;\n\n\tnegative = cptr [3] & 0x80 ;\n\texponent = ((cptr [3] & 0x7F) << 1) | ((cptr [2] & 0x80) ? 1 : 0) ;\n\tmantissa = ((cptr [2] & 0x7F) << 16) | (cptr [1] << 8) | (cptr [0]) ;\n\n\tif (! (exponent || mantissa))\n\t\treturn 0.0 ;\n\n\tmantissa |= 0x800000 ;\n\texponent = exponent ? exponent - 127 : 0 ;\n\n\tfvalue = mantissa ? ((float) mantissa) / ((float) 0x800000) : 0.0 ;\n\n\tif (negative)\n\t\tfvalue *= -1 ;\n\n\tif (exponent > 0)\n\t\tfvalue *= pow (2.0, exponent) ;\n\telse if (exponent < 0)\n\t\tfvalue /= pow (2.0, abs (exponent)) ;\n\n\treturn fvalue ;\n}", "Selected Statement": "negative = cptr [3] & 0x80 ;", "Function Input": {}, "Variable Values Before Statement": {"cptr": "0x7fffffffda94 \"\\233\\243\\001\\006\\370\\335\\377\\377d\\243\""}, "Value After Statement Execution": "int", "Block_Size": 3, "Project Information": "libsndfile"} +{"Programming Language": "C", "Source Code": "float\nfloat32_le_read (const unsigned char *cptr)\n{\tint\t\texponent, mantissa, negative ;\n\tfloat\tfvalue ;\n\n\tnegative = cptr [3] & 0x80 ;\n\texponent = ((cptr [3] & 0x7F) << 1) | ((cptr [2] & 0x80) ? 1 : 0) ;\n\tmantissa = ((cptr [2] & 0x7F) << 16) | (cptr [1] << 8) | (cptr [0]) ;\n\n\tif (! (exponent || mantissa))\n\t\treturn 0.0 ;\n\n\tmantissa |= 0x800000 ;\n\texponent = exponent ? exponent - 127 : 0 ;\n\n\tfvalue = mantissa ? ((float) mantissa) / ((float) 0x800000) : 0.0 ;\n\n\tif (negative)\n\t\tfvalue *= -1 ;\n\n\tif (exponent > 0)\n\t\tfvalue *= pow (2.0, exponent) ;\n\telse if (exponent < 0)\n\t\tfvalue /= pow (2.0, abs (exponent)) ;\n\n\treturn fvalue ;\n}", "Selected Statement": "exponent = ((cptr [3] & 0x7F) << 1) | ((cptr [2] & 0x80) ? 1 : 0) ;", "Function Input": {}, "Variable Values Before Statement": {"cptr": "0x7fffffffda94 \"\\233\\243\\001\\006\\370\\335\\377\\377d\\243\""}, "Value After Statement Execution": "int", "Block_Size": 4, "Project Information": "libsndfile"} +{"Programming Language": "C", "Source Code": "float\nfloat32_le_read (const unsigned char *cptr)\n{\tint\t\texponent, mantissa, negative ;\n\tfloat\tfvalue ;\n\n\tnegative = cptr [3] & 0x80 ;\n\texponent = ((cptr [3] & 0x7F) << 1) | ((cptr [2] & 0x80) ? 1 : 0) ;\n\tmantissa = ((cptr [2] & 0x7F) << 16) | (cptr [1] << 8) | (cptr [0]) ;\n\n\tif (! (exponent || mantissa))\n\t\treturn 0.0 ;\n\n\tmantissa |= 0x800000 ;\n\texponent = exponent ? exponent - 127 : 0 ;\n\n\tfvalue = mantissa ? ((float) mantissa) / ((float) 0x800000) : 0.0 ;\n\n\tif (negative)\n\t\tfvalue *= -1 ;\n\n\tif (exponent > 0)\n\t\tfvalue *= pow (2.0, exponent) ;\n\telse if (exponent < 0)\n\t\tfvalue /= pow (2.0, abs (exponent)) ;\n\n\treturn fvalue ;\n}", "Selected Statement": "mantissa |= 0x800000 ;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0x800000"}, "Value After Statement Execution": "0x800000", "Block_Size": 10, "Project Information": "libsndfile"} +{"Programming Language": "C", "Source Code": "float\nfloat32_le_read (const unsigned char *cptr)\n{\tint\t\texponent, mantissa, negative ;\n\tfloat\tfvalue ;\n\n\tnegative = cptr [3] & 0x80 ;\n\texponent = ((cptr [3] & 0x7F) << 1) | ((cptr [2] & 0x80) ? 1 : 0) ;\n\tmantissa = ((cptr [2] & 0x7F) << 16) | (cptr [1] << 8) | (cptr [0]) ;\n\n\tif (! (exponent || mantissa))\n\t\treturn 0.0 ;\n\n\tmantissa |= 0x800000 ;\n\texponent = exponent ? exponent - 127 : 0 ;\n\n\tfvalue = mantissa ? ((float) mantissa) / ((float) 0x800000) : 0.0 ;\n\n\tif (negative)\n\t\tfvalue *= -1 ;\n\n\tif (exponent > 0)\n\t\tfvalue *= pow (2.0, exponent) ;\n\telse if (exponent < 0)\n\t\tfvalue /= pow (2.0, abs (exponent)) ;\n\n\treturn fvalue ;\n}", "Selected Statement": "fvalue *= pow (2.0, exponent) ;", "Function Input": {}, "Variable Values Before Statement": {"2.0": "2.0", "exponent": "int"}, "Value After Statement Execution": "float", "Function Name": "pow", "Block_Size": 19, "Project Information": "libsndfile"} +{"Programming Language": "C", "Source Code": "void test_deflate(unsigned char *compr, size_t comprLen)\n{\n z_stream c_stream; \n int err;\n unsigned long len = dataLen;\n\n c_stream.zalloc = zalloc;\n c_stream.zfree = zfree;\n c_stream.opaque = NULL;\n\n err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);\n CHECK_ERR(err, \"deflateInit\");\n\n c_stream.next_in = (Bytef *)data;\n c_stream.next_out = compr;\n\n while (c_stream.total_in != len && c_stream.total_out < comprLen)\n {\n c_stream.avail_in = c_stream.avail_out = 1; \n err = deflate(&c_stream, Z_NO_FLUSH);\n CHECK_ERR(err, \"deflate small 1\");\n }\n\n \n for (;;)\n {\n c_stream.avail_out = 1;\n err = deflate(&c_stream, Z_FINISH);\n if (err == Z_STREAM_END)\n break;\n CHECK_ERR(err, \"deflate small 2\");\n }\n\n err = deflateEnd(&c_stream);\n CHECK_ERR(err, \"deflateEnd\");\n}", "Selected Statement": "c_stream.zalloc = zalloc;", "Function Input": {"compr": {"value": "0xf77f80 \"=\""}, "comprLen": {"value": "140737488346736"}}, "Variable Values Before Statement": {"zalloc": "mz_alloc_func"}, "Value After Statement Execution": "mz_alloc_func", "Block_Size": 5, "Project Information": "miniz"} +{"Programming Language": "C", "Source Code": "void test_deflate(unsigned char *compr, size_t comprLen)\n{\n z_stream c_stream; \n int err;\n unsigned long len = dataLen;\n\n c_stream.zalloc = zalloc;\n c_stream.zfree = zfree;\n c_stream.opaque = NULL;\n\n err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);\n CHECK_ERR(err, \"deflateInit\");\n\n c_stream.next_in = (Bytef *)data;\n c_stream.next_out = compr;\n\n while (c_stream.total_in != len && c_stream.total_out < comprLen)\n {\n c_stream.avail_in = c_stream.avail_out = 1; \n err = deflate(&c_stream, Z_NO_FLUSH);\n CHECK_ERR(err, \"deflate small 1\");\n }\n\n \n for (;;)\n {\n c_stream.avail_out = 1;\n err = deflate(&c_stream, Z_FINISH);\n if (err == Z_STREAM_END)\n break;\n CHECK_ERR(err, \"deflate small 2\");\n }\n\n err = deflateEnd(&c_stream);\n CHECK_ERR(err, \"deflateEnd\");\n}", "Selected Statement": "c_stream.zfree = zfree;", "Function Input": {"compr": {"value": "0xf77f80 \"=\""}, "comprLen": {"value": "140737488346736"}}, "Variable Values Before Statement": {"zfree": "mz_free_func"}, "Value After Statement Execution": "mz_free_func", "Block_Size": 6, "Project Information": "miniz"} +{"Programming Language": "C", "Source Code": "void test_large_deflate(unsigned char *compr, size_t comprLen,\n unsigned char *uncompr, size_t uncomprLen)\n{\n z_stream c_stream; \n int err;\n\n c_stream.zalloc = zalloc;\n c_stream.zfree = zfree;\n c_stream.opaque = NULL;\n\n err = deflateInit(&c_stream, Z_BEST_COMPRESSION);\n CHECK_ERR(err, \"deflateInit\");\n\n c_stream.next_out = compr;\n c_stream.avail_out = (unsigned int)comprLen;\n\n \n c_stream.next_in = uncompr;\n c_stream.avail_in = (unsigned int)uncomprLen;\n err = deflate(&c_stream, Z_NO_FLUSH);\n CHECK_ERR(err, \"deflate large 1\");\n\n if (c_stream.avail_in != 0)\n {\n fprintf(stderr, \"deflate not greedy\\n\");\n exit(1);\n }\n\n \n c_stream.next_in = compr;\n diff = (unsigned int)(c_stream.next_out - compr);\n c_stream.avail_in = diff;\n\n deflate(&c_stream, Z_NO_FLUSH);\n err = deflate(&c_stream, Z_FINISH);\n\n if (err != Z_STREAM_END)\n {\n fprintf(stderr, \"deflate large should report Z_STREAM_END\\n\");\n exit(1);\n }\n err = deflateEnd(&c_stream);\n CHECK_ERR(err, \"deflateEnd\");\n}", "Selected Statement": "c_stream.zalloc = zalloc;", "Function Input": {"compr": {"value": "0xf77f80 \"\\n\""}, "comprLen": {"value": "140737488346736"}, "uncompr": {"value": "0x1 "}, "uncomprLen": {"value": "16325344"}}, "Variable Values Before Statement": {"zalloc": "mz_alloc_func"}, "Value After Statement Execution": "mz_alloc_func", "Block_Size": 5, "Project Information": "miniz"} +{"Programming Language": "C", "Source Code": "void test_large_deflate(unsigned char *compr, size_t comprLen,\n unsigned char *uncompr, size_t uncomprLen)\n{\n z_stream c_stream; \n int err;\n\n c_stream.zalloc = zalloc;\n c_stream.zfree = zfree;\n c_stream.opaque = NULL;\n\n err = deflateInit(&c_stream, Z_BEST_COMPRESSION);\n CHECK_ERR(err, \"deflateInit\");\n\n c_stream.next_out = compr;\n c_stream.avail_out = (unsigned int)comprLen;\n\n \n c_stream.next_in = uncompr;\n c_stream.avail_in = (unsigned int)uncomprLen;\n err = deflate(&c_stream, Z_NO_FLUSH);\n CHECK_ERR(err, \"deflate large 1\");\n\n if (c_stream.avail_in != 0)\n {\n fprintf(stderr, \"deflate not greedy\\n\");\n exit(1);\n }\n\n \n c_stream.next_in = compr;\n diff = (unsigned int)(c_stream.next_out - compr);\n c_stream.avail_in = diff;\n\n deflate(&c_stream, Z_NO_FLUSH);\n err = deflate(&c_stream, Z_FINISH);\n\n if (err != Z_STREAM_END)\n {\n fprintf(stderr, \"deflate large should report Z_STREAM_END\\n\");\n exit(1);\n }\n err = deflateEnd(&c_stream);\n CHECK_ERR(err, \"deflateEnd\");\n}", "Selected Statement": "c_stream.zfree = zfree;", "Function Input": {"compr": {"value": "0xf77f80 \"\\n\""}, "comprLen": {"value": "140737488346736"}, "uncompr": {"value": "0x1 "}, "uncomprLen": {"value": "16325344"}}, "Variable Values Before Statement": {"zfree": "mz_free_func"}, "Value After Statement Execution": "mz_free_func", "Block_Size": 6, "Project Information": "miniz"} +{"Programming Language": "C", "Source Code": "void test_flush(unsigned char *compr, size_t *comprLen)\n{\n z_stream c_stream; \n int err;\n unsigned int len = dataLen;\n\n c_stream.zalloc = zalloc;\n c_stream.zfree = zfree;\n c_stream.opaque = NULL;\n\n err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);\n CHECK_ERR(err, \"deflateInit\");\n\n c_stream.next_in = (Bytef *)data;\n c_stream.next_out = compr;\n c_stream.avail_in = 3;\n c_stream.avail_out = (unsigned int)*comprLen;\n err = deflate(&c_stream, Z_FULL_FLUSH);\n CHECK_ERR(err, \"deflate flush 1\");\n\n compr[3]++; \n c_stream.avail_in = len - 3;\n\n err = deflate(&c_stream, Z_FINISH);\n\n if (err != Z_STREAM_END)\n {\n CHECK_ERR(err, \"deflate flush 2\");\n }\n\n err = deflateEnd(&c_stream);\n CHECK_ERR(err, \"deflateEnd\");\n\n *comprLen = (size_t)c_stream.total_out;\n}", "Selected Statement": "c_stream.zalloc = zalloc;", "Function Input": {"compr": {"value": "0xf77f80 \"\\a\""}, "comprLen": {"value": {"type_category": "unknown", "concrete_type": "size_t", "value": "140737488346800"}}}, "Variable Values Before Statement": {"zalloc": "mz_alloc_func"}, "Value After Statement Execution": "mz_alloc_func", "Block_Size": 5, "Project Information": "miniz"} +{"Programming Language": "C", "Source Code": "void test_flush(unsigned char *compr, size_t *comprLen)\n{\n z_stream c_stream; \n int err;\n unsigned int len = dataLen;\n\n c_stream.zalloc = zalloc;\n c_stream.zfree = zfree;\n c_stream.opaque = NULL;\n\n err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);\n CHECK_ERR(err, \"deflateInit\");\n\n c_stream.next_in = (Bytef *)data;\n c_stream.next_out = compr;\n c_stream.avail_in = 3;\n c_stream.avail_out = (unsigned int)*comprLen;\n err = deflate(&c_stream, Z_FULL_FLUSH);\n CHECK_ERR(err, \"deflate flush 1\");\n\n compr[3]++; \n c_stream.avail_in = len - 3;\n\n err = deflate(&c_stream, Z_FINISH);\n\n if (err != Z_STREAM_END)\n {\n CHECK_ERR(err, \"deflate flush 2\");\n }\n\n err = deflateEnd(&c_stream);\n CHECK_ERR(err, \"deflateEnd\");\n\n *comprLen = (size_t)c_stream.total_out;\n}", "Selected Statement": "c_stream.zfree = zfree;", "Function Input": {"compr": {"value": "0xf77f80 \"\\a\""}, "comprLen": {"value": {"type_category": "unknown", "concrete_type": "size_t", "value": "140737488346800"}}}, "Variable Values Before Statement": {"zfree": "mz_free_func"}, "Value After Statement Execution": "mz_free_func", "Block_Size": 6, "Project Information": "miniz"} +{"Programming Language": "C", "Source Code": "void EXPORT_CALL\nlou_registerLogCallback(logcallback callback) {\n\tif (callback == NULL)\n\t\tlogCallbackFunction = defaultLogCallback;\n\telse\n\t\tlogCallbackFunction = callback;\n}", "Selected Statement": "logCallbackFunction = callback;", "Function Input": {}, "Variable Values Before Statement": {"callback": "logcallback"}, "Value After Statement Execution": "logcallback", "Block_Size": 3, "Project Information": "liblouis"} +{"Programming Language": "C", "Source Code": "void run_burl_normalize (buffer *psrc, buffer *ptmp, \n\t\t\t\t\t\tint flags, int line, const char *in, \n\t\t\t\t\t\tsize_t in_len) {\n int qs;\n buffer_copy_string_len(psrc, in, in_len);\n qs = burl_normalize(psrc, ptmp, flags);\n}", "Selected Statement": "qs = burl_normalize(psrc, ptmp, flags);", "Function Input": {"flags": {"value": "0"}, "in": {"value": "0x55aa00 \"\""}, "in_len": {"value": "16181808"}, "line": {"value": "5001103"}, "psrc": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"ptr": {"type_category": "string", "concrete_type": "NULL"}, "used": {"type_category": "unknown", "concrete_type": "u_int32_t", "value": "0"}, "size": {"type_category": "unknown", "concrete_type": "u_int32_t", "value": "0"}}}}, "ptmp": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"ptr": {"type_category": "string", "concrete_type": "string", "value": "0x7fffffffde80 \"\\300\\336\\377\\377\\377\\177\""}, "used": {"type_category": "unknown", "concrete_type": "u_int32_t", "value": "4981897"}, "size": {"type_category": "unknown", "concrete_type": "u_int32_t", "value": "0"}}}}}, "Variable Values Before Statement": {"psrc": {"ptr": "0x153d770 \"/%01\"", "used": "5", "size": "65"}, "ptmp": {"ptr": "0x153d810 \"///%01\"", "used": "0", "size": "65"}, "flags": "int"}, "Value After Statement Execution": "int", "Function Name": "burl_normalize", "Block_Size": 4, "Project Information": "lighttpd"} +{"Programming Language": "C", "Source Code": "int burl_normalize (buffer *b, buffer *t, int flags)\n{\n int qs;\n\n #if defined(_WIN32) || defined(__CYGWIN__)\n \n if (flags & HTTP_PARSEOPT_URL_NORMALIZE_PATH_BACKSLASH_TRANS) {\n for (char *p = b->ptr; *p != '?' && *p != '\\0'; ++p) {\n if (*p == '\\\\') *p = '/';\n }\n }\n #endif\n\n qs = (flags & HTTP_PARSEOPT_URL_NORMALIZE_REQUIRED)\n ? burl_normalize_basic_required(b, t)\n : burl_normalize_basic_unreserved(b, t);\n if (-2 == qs) {\n if (flags & HTTP_PARSEOPT_URL_NORMALIZE_INVALID_UTF8_REJECT) return -2;\n qs = burl_scan_qmark(b);\n }\n\n if (flags & HTTP_PARSEOPT_URL_NORMALIZE_CTRLS_REJECT) {\n if (burl_contains_ctrls(b)) return -2;\n }\n\n if (flags & (HTTP_PARSEOPT_URL_NORMALIZE_PATH_2F_DECODE\n |HTTP_PARSEOPT_URL_NORMALIZE_PATH_2F_REJECT)) {\n qs = burl_normalize_2F_to_slash(b, qs, flags);\n if (-2 == qs) return -2;\n }\n\n if (flags & (HTTP_PARSEOPT_URL_NORMALIZE_PATH_DOTSEG_REMOVE\n |HTTP_PARSEOPT_URL_NORMALIZE_PATH_DOTSEG_REJECT)) {\n qs = burl_normalize_path(b, t, qs, flags);\n if (-2 == qs) return -2;\n }\n\n if (flags & HTTP_PARSEOPT_URL_NORMALIZE_QUERY_20_PLUS) {\n if (qs >= 0) burl_normalize_qs20_to_plus(b, qs);\n }\n\n return qs;\n}", "Selected Statement": "qs = burl_normalize_path(b, t, qs, flags);", "Function Input": {}, "Variable Values Before Statement": {"b": {"ptr": "0x153d770 \"/%01\"", "used": "5", "size": "65"}, "t": {"ptr": "0x153d810 \"///%01\"", "used": "0", "size": "65"}, "qs": "int", "flags": "int"}, "Value After Statement Execution": "int", "Function Name": "burl_normalize_path", "Block_Size": 35, "Project Information": "lighttpd"} +{"Programming Language": "C", "Source Code": "void ByteStream_init(struct ByteStream *bs, const uint8_t *data, size_t size) {\n bs->data_ = data;\n bs->size_ = size;\n bs->pos_ = 0;\n}", "Selected Statement": "bs->size_ = size;", "Function Input": {}, "Variable Values Before Statement": {"size": "0"}, "Value After Statement Execution": "0", "Block_Size": 1, "Project Information": "ruby"} +{"Programming Language": "C", "Source Code": "void ByteStream_init(struct ByteStream *bs, const uint8_t *data, size_t size) {\n bs->data_ = data;\n bs->size_ = size;\n bs->pos_ = 0;\n}", "Selected Statement": "bs->pos_ = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 2, "Project Information": "ruby"} +{"Programming Language": "C", "Source Code": "void\nsldns_buffer_init_frm_data(sldns_buffer *buffer, void *data, size_t size)\n{\n\tmemset(buffer, 0, sizeof(*buffer));\n\tbuffer->_data = data;\n\tbuffer->_capacity = buffer->_limit = size;\n\tbuffer->_fixed = 1;\n}", "Selected Statement": "buffer->_data = data;", "Function Input": {"buffer": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"_position": {"type_category": "unknown", "concrete_type": "size_t", "value": "0"}, "_limit": {"type_category": "unknown", "concrete_type": "size_t", "value": "18767888"}, "_capacity": {"type_category": "unknown", "concrete_type": "size_t", "value": "0"}, "_data": {"type_category": "string", "concrete_type": "NULL"}, "_fixed": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, "_status_err": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}}}}, "data": {"value": null}, "size": {"value": "105810743"}}, "Variable Values Before Statement": {"data": "VOID"}, "Value After Statement Execution": "VOID", "Block_Size": 2, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "void\nsldns_buffer_init_frm_data(sldns_buffer *buffer, void *data, size_t size)\n{\n\tmemset(buffer, 0, sizeof(*buffer));\n\tbuffer->_data = data;\n\tbuffer->_capacity = buffer->_limit = size;\n\tbuffer->_fixed = 1;\n}", "Selected Statement": "buffer->_capacity = buffer->_limit = size;", "Function Input": {"buffer": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"_position": {"type_category": "unknown", "concrete_type": "size_t", "value": "0"}, "_limit": {"type_category": "unknown", "concrete_type": "size_t", "value": "18767888"}, "_capacity": {"type_category": "unknown", "concrete_type": "size_t", "value": "0"}, "_data": {"type_category": "string", "concrete_type": "NULL"}, "_fixed": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, "_status_err": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}}}}, "data": {"value": null}, "size": {"value": "105810743"}}, "Variable Values Before Statement": {"size": "12"}, "Value After Statement Execution": "12", "Block_Size": 3, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "void\nsldns_buffer_init_frm_data(sldns_buffer *buffer, void *data, size_t size)\n{\n\tmemset(buffer, 0, sizeof(*buffer));\n\tbuffer->_data = data;\n\tbuffer->_capacity = buffer->_limit = size;\n\tbuffer->_fixed = 1;\n}", "Selected Statement": "buffer->_fixed = 1;", "Function Input": {"buffer": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"_position": {"type_category": "unknown", "concrete_type": "size_t", "value": "0"}, "_limit": {"type_category": "unknown", "concrete_type": "size_t", "value": "18767888"}, "_capacity": {"type_category": "unknown", "concrete_type": "size_t", "value": "0"}, "_data": {"type_category": "string", "concrete_type": "NULL"}, "_fixed": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, "_status_err": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}}}}, "data": {"value": null}, "size": {"value": "105810743"}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 4, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "int\nparse_packet(sldns_buffer* pkt, struct msg_parse* msg, struct regional* region)\n{\n\tint ret;\n\tif(sldns_buffer_remaining(pkt) < LDNS_HEADER_SIZE)\n\t\treturn LDNS_RCODE_FORMERR;\n\t\n\tsldns_buffer_read(pkt, &msg->id, sizeof(uint16_t));\n\tmsg->flags = sldns_buffer_read_u16(pkt);\n\tmsg->qdcount = sldns_buffer_read_u16(pkt);\n\tmsg->ancount = sldns_buffer_read_u16(pkt);\n\tmsg->nscount = sldns_buffer_read_u16(pkt);\n\tmsg->arcount = sldns_buffer_read_u16(pkt);\n\tif(msg->qdcount > 1)\n\t\treturn LDNS_RCODE_FORMERR;\n\tif((ret = parse_query_section(pkt, msg)) != 0)\n\t\treturn ret;\n\tif((ret = parse_section(pkt, msg, region, LDNS_SECTION_ANSWER,\n\t\tmsg->ancount, &msg->an_rrsets)) != 0)\n\t\treturn ret;\n\tif((ret = parse_section(pkt, msg, region, LDNS_SECTION_AUTHORITY,\n\t\tmsg->nscount, &msg->ns_rrsets)) != 0)\n\t\treturn ret;\n\tif(sldns_buffer_remaining(pkt) == 0 && msg->arcount == 1) {\n\t\t\n\t} else if((ret = parse_section(pkt, msg, region,\n\t\tLDNS_SECTION_ADDITIONAL, msg->arcount, &msg->ar_rrsets)) != 0)\n\t\treturn ret;\n\t\n\t\t\n\t\n\tmsg->rrset_count = msg->an_rrsets + msg->ns_rrsets + msg->ar_rrsets;\n\treturn 0;\n}", "Selected Statement": "msg->flags = sldns_buffer_read_u16(pkt);", "Function Input": {"pkt": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"_position": {"type_category": "unknown", "concrete_type": "size_t", "value": "0"}, "_limit": {"type_category": "unknown", "concrete_type": "size_t", "value": "12"}, "_capacity": {"type_category": "unknown", "concrete_type": "size_t", "value": "3546920299816956257"}, "_data": {"type_category": "string", "concrete_type": "string", "value": "0x31 "}, "_fixed": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, "_status_err": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}}}}}, "Variable Values Before Statement": {"pkt": {"_position": "4", "_limit": "12", "_capacity": "12", "_data": "0x11e62d0 \"\"", "_fixed": "1", "_status_err": "0"}}, "Value After Statement Execution": "0", "Function Name": "sldns_buffer_read_u16", "Block_Size": 6, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "int\nparse_packet(sldns_buffer* pkt, struct msg_parse* msg, struct regional* region)\n{\n\tint ret;\n\tif(sldns_buffer_remaining(pkt) < LDNS_HEADER_SIZE)\n\t\treturn LDNS_RCODE_FORMERR;\n\t\n\tsldns_buffer_read(pkt, &msg->id, sizeof(uint16_t));\n\tmsg->flags = sldns_buffer_read_u16(pkt);\n\tmsg->qdcount = sldns_buffer_read_u16(pkt);\n\tmsg->ancount = sldns_buffer_read_u16(pkt);\n\tmsg->nscount = sldns_buffer_read_u16(pkt);\n\tmsg->arcount = sldns_buffer_read_u16(pkt);\n\tif(msg->qdcount > 1)\n\t\treturn LDNS_RCODE_FORMERR;\n\tif((ret = parse_query_section(pkt, msg)) != 0)\n\t\treturn ret;\n\tif((ret = parse_section(pkt, msg, region, LDNS_SECTION_ANSWER,\n\t\tmsg->ancount, &msg->an_rrsets)) != 0)\n\t\treturn ret;\n\tif((ret = parse_section(pkt, msg, region, LDNS_SECTION_AUTHORITY,\n\t\tmsg->nscount, &msg->ns_rrsets)) != 0)\n\t\treturn ret;\n\tif(sldns_buffer_remaining(pkt) == 0 && msg->arcount == 1) {\n\t\t\n\t} else if((ret = parse_section(pkt, msg, region,\n\t\tLDNS_SECTION_ADDITIONAL, msg->arcount, &msg->ar_rrsets)) != 0)\n\t\treturn ret;\n\t\n\t\t\n\t\n\tmsg->rrset_count = msg->an_rrsets + msg->ns_rrsets + msg->ar_rrsets;\n\treturn 0;\n}", "Selected Statement": "msg->qdcount = sldns_buffer_read_u16(pkt);", "Function Input": {"pkt": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"_position": {"type_category": "unknown", "concrete_type": "size_t", "value": "0"}, "_limit": {"type_category": "unknown", "concrete_type": "size_t", "value": "12"}, "_capacity": {"type_category": "unknown", "concrete_type": "size_t", "value": "3546920299816956257"}, "_data": {"type_category": "string", "concrete_type": "string", "value": "0x31 "}, "_fixed": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, "_status_err": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}}}}}, "Variable Values Before Statement": {"pkt": {"_position": "6", "_limit": "12", "_capacity": "12", "_data": "0x11e62d0 \"\"", "_fixed": "1", "_status_err": "0"}}, "Value After Statement Execution": "0", "Function Name": "sldns_buffer_read_u16", "Block_Size": 7, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "int\nparse_packet(sldns_buffer* pkt, struct msg_parse* msg, struct regional* region)\n{\n\tint ret;\n\tif(sldns_buffer_remaining(pkt) < LDNS_HEADER_SIZE)\n\t\treturn LDNS_RCODE_FORMERR;\n\t\n\tsldns_buffer_read(pkt, &msg->id, sizeof(uint16_t));\n\tmsg->flags = sldns_buffer_read_u16(pkt);\n\tmsg->qdcount = sldns_buffer_read_u16(pkt);\n\tmsg->ancount = sldns_buffer_read_u16(pkt);\n\tmsg->nscount = sldns_buffer_read_u16(pkt);\n\tmsg->arcount = sldns_buffer_read_u16(pkt);\n\tif(msg->qdcount > 1)\n\t\treturn LDNS_RCODE_FORMERR;\n\tif((ret = parse_query_section(pkt, msg)) != 0)\n\t\treturn ret;\n\tif((ret = parse_section(pkt, msg, region, LDNS_SECTION_ANSWER,\n\t\tmsg->ancount, &msg->an_rrsets)) != 0)\n\t\treturn ret;\n\tif((ret = parse_section(pkt, msg, region, LDNS_SECTION_AUTHORITY,\n\t\tmsg->nscount, &msg->ns_rrsets)) != 0)\n\t\treturn ret;\n\tif(sldns_buffer_remaining(pkt) == 0 && msg->arcount == 1) {\n\t\t\n\t} else if((ret = parse_section(pkt, msg, region,\n\t\tLDNS_SECTION_ADDITIONAL, msg->arcount, &msg->ar_rrsets)) != 0)\n\t\treturn ret;\n\t\n\t\t\n\t\n\tmsg->rrset_count = msg->an_rrsets + msg->ns_rrsets + msg->ar_rrsets;\n\treturn 0;\n}", "Selected Statement": "msg->ancount = sldns_buffer_read_u16(pkt);", "Function Input": {"pkt": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"_position": {"type_category": "unknown", "concrete_type": "size_t", "value": "0"}, "_limit": {"type_category": "unknown", "concrete_type": "size_t", "value": "12"}, "_capacity": {"type_category": "unknown", "concrete_type": "size_t", "value": "3546920299816956257"}, "_data": {"type_category": "string", "concrete_type": "string", "value": "0x31 "}, "_fixed": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, "_status_err": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}}}}}, "Variable Values Before Statement": {"pkt": {"_position": "8", "_limit": "12", "_capacity": "12", "_data": "0x11e62d0 \"\"", "_fixed": "1", "_status_err": "0"}}, "Value After Statement Execution": "0", "Function Name": "sldns_buffer_read_u16", "Block_Size": 8, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "int\nparse_packet(sldns_buffer* pkt, struct msg_parse* msg, struct regional* region)\n{\n\tint ret;\n\tif(sldns_buffer_remaining(pkt) < LDNS_HEADER_SIZE)\n\t\treturn LDNS_RCODE_FORMERR;\n\t\n\tsldns_buffer_read(pkt, &msg->id, sizeof(uint16_t));\n\tmsg->flags = sldns_buffer_read_u16(pkt);\n\tmsg->qdcount = sldns_buffer_read_u16(pkt);\n\tmsg->ancount = sldns_buffer_read_u16(pkt);\n\tmsg->nscount = sldns_buffer_read_u16(pkt);\n\tmsg->arcount = sldns_buffer_read_u16(pkt);\n\tif(msg->qdcount > 1)\n\t\treturn LDNS_RCODE_FORMERR;\n\tif((ret = parse_query_section(pkt, msg)) != 0)\n\t\treturn ret;\n\tif((ret = parse_section(pkt, msg, region, LDNS_SECTION_ANSWER,\n\t\tmsg->ancount, &msg->an_rrsets)) != 0)\n\t\treturn ret;\n\tif((ret = parse_section(pkt, msg, region, LDNS_SECTION_AUTHORITY,\n\t\tmsg->nscount, &msg->ns_rrsets)) != 0)\n\t\treturn ret;\n\tif(sldns_buffer_remaining(pkt) == 0 && msg->arcount == 1) {\n\t\t\n\t} else if((ret = parse_section(pkt, msg, region,\n\t\tLDNS_SECTION_ADDITIONAL, msg->arcount, &msg->ar_rrsets)) != 0)\n\t\treturn ret;\n\t\n\t\t\n\t\n\tmsg->rrset_count = msg->an_rrsets + msg->ns_rrsets + msg->ar_rrsets;\n\treturn 0;\n}", "Selected Statement": "msg->nscount = sldns_buffer_read_u16(pkt);", "Function Input": {"pkt": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"_position": {"type_category": "unknown", "concrete_type": "size_t", "value": "0"}, "_limit": {"type_category": "unknown", "concrete_type": "size_t", "value": "12"}, "_capacity": {"type_category": "unknown", "concrete_type": "size_t", "value": "3546920299816956257"}, "_data": {"type_category": "string", "concrete_type": "string", "value": "0x31 "}, "_fixed": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, "_status_err": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}}}}}, "Variable Values Before Statement": {"pkt": {"_position": "10", "_limit": "12", "_capacity": "12", "_data": "0x11e62d0 \"\"", "_fixed": "1", "_status_err": "0"}}, "Value After Statement Execution": "3072", "Function Name": "sldns_buffer_read_u16", "Block_Size": 9, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "int\nparse_packet(sldns_buffer* pkt, struct msg_parse* msg, struct regional* region)\n{\n\tint ret;\n\tif(sldns_buffer_remaining(pkt) < LDNS_HEADER_SIZE)\n\t\treturn LDNS_RCODE_FORMERR;\n\t\n\tsldns_buffer_read(pkt, &msg->id, sizeof(uint16_t));\n\tmsg->flags = sldns_buffer_read_u16(pkt);\n\tmsg->qdcount = sldns_buffer_read_u16(pkt);\n\tmsg->ancount = sldns_buffer_read_u16(pkt);\n\tmsg->nscount = sldns_buffer_read_u16(pkt);\n\tmsg->arcount = sldns_buffer_read_u16(pkt);\n\tif(msg->qdcount > 1)\n\t\treturn LDNS_RCODE_FORMERR;\n\tif((ret = parse_query_section(pkt, msg)) != 0)\n\t\treturn ret;\n\tif((ret = parse_section(pkt, msg, region, LDNS_SECTION_ANSWER,\n\t\tmsg->ancount, &msg->an_rrsets)) != 0)\n\t\treturn ret;\n\tif((ret = parse_section(pkt, msg, region, LDNS_SECTION_AUTHORITY,\n\t\tmsg->nscount, &msg->ns_rrsets)) != 0)\n\t\treturn ret;\n\tif(sldns_buffer_remaining(pkt) == 0 && msg->arcount == 1) {\n\t\t\n\t} else if((ret = parse_section(pkt, msg, region,\n\t\tLDNS_SECTION_ADDITIONAL, msg->arcount, &msg->ar_rrsets)) != 0)\n\t\treturn ret;\n\t\n\t\t\n\t\n\tmsg->rrset_count = msg->an_rrsets + msg->ns_rrsets + msg->ar_rrsets;\n\treturn 0;\n}", "Selected Statement": "msg->arcount = sldns_buffer_read_u16(pkt);", "Function Input": {"pkt": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"_position": {"type_category": "unknown", "concrete_type": "size_t", "value": "0"}, "_limit": {"type_category": "unknown", "concrete_type": "size_t", "value": "12"}, "_capacity": {"type_category": "unknown", "concrete_type": "size_t", "value": "3546920299816956257"}, "_data": {"type_category": "string", "concrete_type": "string", "value": "0x31 "}, "_fixed": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}, "_status_err": {"type_category": "int", "concrete_type": "unsigned int", "value": "0"}}}}}, "Variable Values Before Statement": {"pkt": {"_position": "12", "_limit": "12", "_capacity": "12", "_data": "0x11e62d0 \"\"", "_fixed": "1", "_status_err": "0"}}, "Value After Statement Execution": "0", "Function Name": "sldns_buffer_read_u16", "Block_Size": 10, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "void\nlog_init(const char* filename, int use_syslog, const char* chrootdir)\n{\n\tFILE *f;\n\tif(!key_created) {\n\t\tkey_created = 1;\n\t\tub_thread_key_create(&logkey, NULL);\n\t\tlock_basic_init(&log_lock);\n\t}\n\tlock_basic_lock(&log_lock);\n\tif(logfile \n#if defined(HAVE_SYSLOG_H) || defined(UB_ON_WINDOWS)\n\t|| logging_to_syslog\n#endif\n\t) {\n\t\tlock_basic_unlock(&log_lock); \n\t\tverbose(VERB_QUERY, \"switching log to %s\", \n\t\t\tuse_syslog?\"syslog\":(filename&&filename[0]?filename:\"stderr\"));\n\t\tlock_basic_lock(&log_lock);\n\t}\n\tif(logfile && logfile != stderr) {\n\t\tFILE* cl = logfile;\n\t\tlogfile = NULL; \n\t\tfclose(cl);\n\t}\n#ifdef HAVE_SYSLOG_H\n\tif(logging_to_syslog) {\n\t\tcloselog();\n\t\tlogging_to_syslog = 0;\n\t}\n\tif(use_syslog) {\n\t\t\n\t\t\n\t\topenlog(ident, LOG_NDELAY, UB_SYSLOG_FACILITY);\n\t\tlogging_to_syslog = 1;\n\t\tlock_basic_unlock(&log_lock);\n\t\treturn;\n\t}\n#elif defined(UB_ON_WINDOWS)\n\tif(logging_to_syslog) {\n\t\tlogging_to_syslog = 0;\n\t}\n\tif(use_syslog) {\n\t\tlogging_to_syslog = 1;\n\t\tlock_basic_unlock(&log_lock);\n\t\treturn;\n\t}\n#endif \n\tif(!filename || !filename[0]) {\n\t\tlogfile = stderr;\n\t\tlock_basic_unlock(&log_lock);\n\t\treturn;\n\t}\n\t\n\tif(chrootdir && chrootdir[0] && strncmp(filename, chrootdir,\n\t\tstrlen(chrootdir)) == 0) \n\t\tfilename += strlen(chrootdir);\n\tf = fopen(filename, \"a\");\n\tif(!f) {\n\t\tlock_basic_unlock(&log_lock);\n\t\tlog_err(\"Could not open logfile %s: %s\", filename, \n\t\t\tstrerror(errno));\n\t\treturn;\n\t}\n#ifndef UB_ON_WINDOWS\n\t\n\tsetvbuf(f, NULL, (int)_IOLBF, 0);\n#endif\n\tlogfile = f;\n\tlock_basic_unlock(&log_lock);\n}", "Selected Statement": "key_created = 1;", "Function Input": {"chrootdir": {"value": "0x1ee000 "}, "filename": {"value": "0x1f1660 "}, "use_syslog": {"value": "0"}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 3, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "void\nlog_init(const char* filename, int use_syslog, const char* chrootdir)\n{\n\tFILE *f;\n\tif(!key_created) {\n\t\tkey_created = 1;\n\t\tub_thread_key_create(&logkey, NULL);\n\t\tlock_basic_init(&log_lock);\n\t}\n\tlock_basic_lock(&log_lock);\n\tif(logfile \n#if defined(HAVE_SYSLOG_H) || defined(UB_ON_WINDOWS)\n\t|| logging_to_syslog\n#endif\n\t) {\n\t\tlock_basic_unlock(&log_lock); \n\t\tverbose(VERB_QUERY, \"switching log to %s\", \n\t\t\tuse_syslog?\"syslog\":(filename&&filename[0]?filename:\"stderr\"));\n\t\tlock_basic_lock(&log_lock);\n\t}\n\tif(logfile && logfile != stderr) {\n\t\tFILE* cl = logfile;\n\t\tlogfile = NULL; \n\t\tfclose(cl);\n\t}\n#ifdef HAVE_SYSLOG_H\n\tif(logging_to_syslog) {\n\t\tcloselog();\n\t\tlogging_to_syslog = 0;\n\t}\n\tif(use_syslog) {\n\t\t\n\t\t\n\t\topenlog(ident, LOG_NDELAY, UB_SYSLOG_FACILITY);\n\t\tlogging_to_syslog = 1;\n\t\tlock_basic_unlock(&log_lock);\n\t\treturn;\n\t}\n#elif defined(UB_ON_WINDOWS)\n\tif(logging_to_syslog) {\n\t\tlogging_to_syslog = 0;\n\t}\n\tif(use_syslog) {\n\t\tlogging_to_syslog = 1;\n\t\tlock_basic_unlock(&log_lock);\n\t\treturn;\n\t}\n#endif \n\tif(!filename || !filename[0]) {\n\t\tlogfile = stderr;\n\t\tlock_basic_unlock(&log_lock);\n\t\treturn;\n\t}\n\t\n\tif(chrootdir && chrootdir[0] && strncmp(filename, chrootdir,\n\t\tstrlen(chrootdir)) == 0) \n\t\tfilename += strlen(chrootdir);\n\tf = fopen(filename, \"a\");\n\tif(!f) {\n\t\tlock_basic_unlock(&log_lock);\n\t\tlog_err(\"Could not open logfile %s: %s\", filename, \n\t\t\tstrerror(errno));\n\t\treturn;\n\t}\n#ifndef UB_ON_WINDOWS\n\t\n\tsetvbuf(f, NULL, (int)_IOLBF, 0);\n#endif\n\tlogfile = f;\n\tlock_basic_unlock(&log_lock);\n}", "Selected Statement": "filename += strlen(chrootdir);", "Function Input": {"chrootdir": {"value": "0x1ee000 "}, "filename": {"value": "0x1f1660 "}, "use_syslog": {"value": "0"}}, "Variable Values Before Statement": {"chrootdir": "NULL"}, "Value After Statement Execution": "0x6f0931 \"/tmp/foo\"", "Function Name": "strlen", "Block_Size": 57, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "void\nlog_init(const char* filename, int use_syslog, const char* chrootdir)\n{\n\tFILE *f;\n\tif(!key_created) {\n\t\tkey_created = 1;\n\t\tub_thread_key_create(&logkey, NULL);\n\t\tlock_basic_init(&log_lock);\n\t}\n\tlock_basic_lock(&log_lock);\n\tif(logfile \n#if defined(HAVE_SYSLOG_H) || defined(UB_ON_WINDOWS)\n\t|| logging_to_syslog\n#endif\n\t) {\n\t\tlock_basic_unlock(&log_lock); \n\t\tverbose(VERB_QUERY, \"switching log to %s\", \n\t\t\tuse_syslog?\"syslog\":(filename&&filename[0]?filename:\"stderr\"));\n\t\tlock_basic_lock(&log_lock);\n\t}\n\tif(logfile && logfile != stderr) {\n\t\tFILE* cl = logfile;\n\t\tlogfile = NULL; \n\t\tfclose(cl);\n\t}\n#ifdef HAVE_SYSLOG_H\n\tif(logging_to_syslog) {\n\t\tcloselog();\n\t\tlogging_to_syslog = 0;\n\t}\n\tif(use_syslog) {\n\t\t\n\t\t\n\t\topenlog(ident, LOG_NDELAY, UB_SYSLOG_FACILITY);\n\t\tlogging_to_syslog = 1;\n\t\tlock_basic_unlock(&log_lock);\n\t\treturn;\n\t}\n#elif defined(UB_ON_WINDOWS)\n\tif(logging_to_syslog) {\n\t\tlogging_to_syslog = 0;\n\t}\n\tif(use_syslog) {\n\t\tlogging_to_syslog = 1;\n\t\tlock_basic_unlock(&log_lock);\n\t\treturn;\n\t}\n#endif \n\tif(!filename || !filename[0]) {\n\t\tlogfile = stderr;\n\t\tlock_basic_unlock(&log_lock);\n\t\treturn;\n\t}\n\t\n\tif(chrootdir && chrootdir[0] && strncmp(filename, chrootdir,\n\t\tstrlen(chrootdir)) == 0) \n\t\tfilename += strlen(chrootdir);\n\tf = fopen(filename, \"a\");\n\tif(!f) {\n\t\tlock_basic_unlock(&log_lock);\n\t\tlog_err(\"Could not open logfile %s: %s\", filename, \n\t\t\tstrerror(errno));\n\t\treturn;\n\t}\n#ifndef UB_ON_WINDOWS\n\t\n\tsetvbuf(f, NULL, (int)_IOLBF, 0);\n#endif\n\tlogfile = f;\n\tlock_basic_unlock(&log_lock);\n}", "Selected Statement": "f = fopen(filename, \"a\");", "Function Input": {"chrootdir": {"value": "0x1ee000 "}, "filename": {"value": "0x1f1660 "}, "use_syslog": {"value": "0"}}, "Variable Values Before Statement": {"filename": "0x6f0931 \"/tmp/foo\"", "\"a\"": "\"a\""}, "Value After Statement Execution": "NULL", "Function Name": "fopen", "Block_Size": 58, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "void\nlog_init(const char* filename, int use_syslog, const char* chrootdir)\n{\n\tFILE *f;\n\tif(!key_created) {\n\t\tkey_created = 1;\n\t\tub_thread_key_create(&logkey, NULL);\n\t\tlock_basic_init(&log_lock);\n\t}\n\tlock_basic_lock(&log_lock);\n\tif(logfile \n#if defined(HAVE_SYSLOG_H) || defined(UB_ON_WINDOWS)\n\t|| logging_to_syslog\n#endif\n\t) {\n\t\tlock_basic_unlock(&log_lock); \n\t\tverbose(VERB_QUERY, \"switching log to %s\", \n\t\t\tuse_syslog?\"syslog\":(filename&&filename[0]?filename:\"stderr\"));\n\t\tlock_basic_lock(&log_lock);\n\t}\n\tif(logfile && logfile != stderr) {\n\t\tFILE* cl = logfile;\n\t\tlogfile = NULL; \n\t\tfclose(cl);\n\t}\n#ifdef HAVE_SYSLOG_H\n\tif(logging_to_syslog) {\n\t\tcloselog();\n\t\tlogging_to_syslog = 0;\n\t}\n\tif(use_syslog) {\n\t\t\n\t\t\n\t\topenlog(ident, LOG_NDELAY, UB_SYSLOG_FACILITY);\n\t\tlogging_to_syslog = 1;\n\t\tlock_basic_unlock(&log_lock);\n\t\treturn;\n\t}\n#elif defined(UB_ON_WINDOWS)\n\tif(logging_to_syslog) {\n\t\tlogging_to_syslog = 0;\n\t}\n\tif(use_syslog) {\n\t\tlogging_to_syslog = 1;\n\t\tlock_basic_unlock(&log_lock);\n\t\treturn;\n\t}\n#endif \n\tif(!filename || !filename[0]) {\n\t\tlogfile = stderr;\n\t\tlock_basic_unlock(&log_lock);\n\t\treturn;\n\t}\n\t\n\tif(chrootdir && chrootdir[0] && strncmp(filename, chrootdir,\n\t\tstrlen(chrootdir)) == 0) \n\t\tfilename += strlen(chrootdir);\n\tf = fopen(filename, \"a\");\n\tif(!f) {\n\t\tlock_basic_unlock(&log_lock);\n\t\tlog_err(\"Could not open logfile %s: %s\", filename, \n\t\t\tstrerror(errno));\n\t\treturn;\n\t}\n#ifndef UB_ON_WINDOWS\n\t\n\tsetvbuf(f, NULL, (int)_IOLBF, 0);\n#endif\n\tlogfile = f;\n\tlock_basic_unlock(&log_lock);\n}", "Selected Statement": "logfile = f;", "Function Input": {"chrootdir": {"value": "0x1ee000 "}, "filename": {"value": "0x1f1660 "}, "use_syslog": {"value": "0"}}, "Variable Values Before Statement": {"f": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 69, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "int sldns_wire2str_edns_subnet_print(char** s, size_t* sl, uint8_t* data,\n\tsize_t len)\n{\n\tint w = 0;\n\tuint16_t family;\n\tuint8_t source, scope;\n\tif(len < 4) {\n\t\tw += sldns_str_print(s, sl, \"malformed subnet \");\n\t\tw += print_hex_buf(s, sl, data, len);\n\t\treturn w;\n\t}\n\tfamily = sldns_read_uint16(data);\n\tsource = data[2];\n\tscope = data[3];\n\tif(family == 1) {\n\t\t\n\t\tchar buf[64];\n\t\tuint8_t ip4[4];\n\t\tmemset(ip4, 0, sizeof(ip4));\n\t\tif(len-4 > 4) {\n\t\t\tw += sldns_str_print(s, sl, \"trailingdata:\");\n\t\t\tw += print_hex_buf(s, sl, data+4+4, len-4-4);\n\t\t\tw += sldns_str_print(s, sl, \" \");\n\t\t\tlen = 4+4;\n\t\t}\n\t\tmemmove(ip4, data+4, len-4);\n\t\tif(!inet_ntop(AF_INET, ip4, buf, (socklen_t)sizeof(buf))) {\n\t\t\tw += sldns_str_print(s, sl, \"ip4ntoperror \");\n\t\t\tw += print_hex_buf(s, sl, data+4+4, len-4-4);\n\t\t} else {\n\t\t\tw += sldns_str_print(s, sl, \"%s\", buf);\n\t\t}\n\t} else if(family == 2) {\n\t\t\n\t\tchar buf[64];\n\t\tuint8_t ip6[16];\n\t\tmemset(ip6, 0, sizeof(ip6));\n\t\tif(len-4 > 16) {\n\t\t\tw += sldns_str_print(s, sl, \"trailingdata:\");\n\t\t\tw += print_hex_buf(s, sl, data+4+16, len-4-16);\n\t\t\tw += sldns_str_print(s, sl, \" \");\n\t\t\tlen = 4+16;\n\t\t}\n\t\tmemmove(ip6, data+4, len-4);\n#ifdef AF_INET6\n\t\tif(!inet_ntop(AF_INET6, ip6, buf, (socklen_t)sizeof(buf))) {\n\t\t\tw += sldns_str_print(s, sl, \"ip6ntoperror \");\n\t\t\tw += print_hex_buf(s, sl, data+4+4, len-4-4);\n\t\t} else {\n\t\t\tw += sldns_str_print(s, sl, \"%s\", buf);\n\t\t}\n#else\n\t\tw += print_hex_buf(s, sl, data+4+4, len-4-4);\n#endif\n\t} else {\n\t\t\n\t\tw += sldns_str_print(s, sl, \"family %d \",\n\t\t\t(int)family);\n\t\tw += print_hex_buf(s, sl, data, len);\n\t}\n\tw += sldns_str_print(s, sl, \"/%d scope /%d\", (int)source, (int)scope);\n\treturn w;\n}", "Selected Statement": "w += sldns_str_print(s, sl, \"malformed subnet \");", "Function Input": {"s": {"value": {"type_category": "string", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x3\n", "message": "Cannot access memory at address 0x3"}}}, "Variable Values Before Statement": {"s": "NULL", "sl": "0", "\"malformed subnet \"": "\"malformed subnet \""}, "Value After Statement Execution": "int", "Function Name": "sldns_str_print", "Block_Size": 6, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "int sldns_wire2str_edns_subnet_print(char** s, size_t* sl, uint8_t* data,\n\tsize_t len)\n{\n\tint w = 0;\n\tuint16_t family;\n\tuint8_t source, scope;\n\tif(len < 4) {\n\t\tw += sldns_str_print(s, sl, \"malformed subnet \");\n\t\tw += print_hex_buf(s, sl, data, len);\n\t\treturn w;\n\t}\n\tfamily = sldns_read_uint16(data);\n\tsource = data[2];\n\tscope = data[3];\n\tif(family == 1) {\n\t\t\n\t\tchar buf[64];\n\t\tuint8_t ip4[4];\n\t\tmemset(ip4, 0, sizeof(ip4));\n\t\tif(len-4 > 4) {\n\t\t\tw += sldns_str_print(s, sl, \"trailingdata:\");\n\t\t\tw += print_hex_buf(s, sl, data+4+4, len-4-4);\n\t\t\tw += sldns_str_print(s, sl, \" \");\n\t\t\tlen = 4+4;\n\t\t}\n\t\tmemmove(ip4, data+4, len-4);\n\t\tif(!inet_ntop(AF_INET, ip4, buf, (socklen_t)sizeof(buf))) {\n\t\t\tw += sldns_str_print(s, sl, \"ip4ntoperror \");\n\t\t\tw += print_hex_buf(s, sl, data+4+4, len-4-4);\n\t\t} else {\n\t\t\tw += sldns_str_print(s, sl, \"%s\", buf);\n\t\t}\n\t} else if(family == 2) {\n\t\t\n\t\tchar buf[64];\n\t\tuint8_t ip6[16];\n\t\tmemset(ip6, 0, sizeof(ip6));\n\t\tif(len-4 > 16) {\n\t\t\tw += sldns_str_print(s, sl, \"trailingdata:\");\n\t\t\tw += print_hex_buf(s, sl, data+4+16, len-4-16);\n\t\t\tw += sldns_str_print(s, sl, \" \");\n\t\t\tlen = 4+16;\n\t\t}\n\t\tmemmove(ip6, data+4, len-4);\n#ifdef AF_INET6\n\t\tif(!inet_ntop(AF_INET6, ip6, buf, (socklen_t)sizeof(buf))) {\n\t\t\tw += sldns_str_print(s, sl, \"ip6ntoperror \");\n\t\t\tw += print_hex_buf(s, sl, data+4+4, len-4-4);\n\t\t} else {\n\t\t\tw += sldns_str_print(s, sl, \"%s\", buf);\n\t\t}\n#else\n\t\tw += print_hex_buf(s, sl, data+4+4, len-4-4);\n#endif\n\t} else {\n\t\t\n\t\tw += sldns_str_print(s, sl, \"family %d \",\n\t\t\t(int)family);\n\t\tw += print_hex_buf(s, sl, data, len);\n\t}\n\tw += sldns_str_print(s, sl, \"/%d scope /%d\", (int)source, (int)scope);\n\treturn w;\n}", "Selected Statement": "w += print_hex_buf(s, sl, data, len);", "Function Input": {"s": {"value": {"type_category": "string", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x3\n", "message": "Cannot access memory at address 0x3"}}}, "Variable Values Before Statement": {"s": "NULL", "sl": "0", "data": "0x11ea371 \"\\n\\003\\367\\377\\177\"", "len": "2"}, "Value After Statement Execution": "int", "Function Name": "print_hex_buf", "Block_Size": 7, "Project Information": "unbound"} +{"Programming Language": "C", "Source Code": "void fuzzinit(Fuzzer *fuzzer){\n struct sockaddr_in server_addr;\n fuzzer->socket = socket(AF_INET, SOCK_STREAM, 0);\n\n server_addr.sin_family = AF_INET;\n server_addr.sin_port = htons(fuzzer->port);\n server_addr.sin_addr.s_addr = inet_addr(\"127.0.0.1\");\n\n setsockopt(fuzzer->socket, SOL_SOCKET, SO_REUSEADDR, &(int){1}, sizeof(int));\n\n bind(fuzzer->socket, (struct sockaddr*)&server_addr, sizeof(server_addr));\n listen(fuzzer->socket,1);\n}", "Selected Statement": "server_addr.sin_family = AF_INET;", "Function Input": {}, "Variable Values Before Statement": {"AF_INET": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 3, "Project Information": "libmodbus"} +{"Programming Language": "C", "Source Code": "void fuzzinit(Fuzzer *fuzzer){\n struct sockaddr_in server_addr;\n fuzzer->socket = socket(AF_INET, SOCK_STREAM, 0);\n\n server_addr.sin_family = AF_INET;\n server_addr.sin_port = htons(fuzzer->port);\n server_addr.sin_addr.s_addr = inet_addr(\"127.0.0.1\");\n\n setsockopt(fuzzer->socket, SOL_SOCKET, SO_REUSEADDR, &(int){1}, sizeof(int));\n\n bind(fuzzer->socket, (struct sockaddr*)&server_addr, sizeof(server_addr));\n listen(fuzzer->socket,1);\n}", "Selected Statement": "server_addr.sin_port = htons(fuzzer->port);", "Function Input": {}, "Variable Values Before Statement": {"fuzzer->port": "8080"}, "Value After Statement Execution": "36895", "Function Name": "htons", "Block_Size": 4, "Project Information": "libmodbus"} +{"Programming Language": "C", "Source Code": "int CheckXML(char *filename){\n\n int rc;\n DOMString s;\n IXML_Document *doc = NULL;\n\n rc = ixmlLoadDocumentEx(filename, &doc);\n if (rc != IXML_SUCCESS) {\n return rc;\n }\n\n s = ixmlPrintDocument(doc);\n if (s == NULL || s[0] == '\\0') {\n ixmlDocument_free(doc);\n return 1;\n }\n\n ixmlFreeDOMString(s);\n ixmlDocument_free(doc);\n\n return 0;\n}", "Selected Statement": "rc = ixmlLoadDocumentEx(filename, &doc);", "Function Input": {"filename": {"value": "0xa "}}, "Variable Values Before Statement": {"filename": "0x7fffffffdd60 \"/tmp/libfuzzer.61\""}, "Value After Statement Execution": "int", "Function Name": "ixmlLoadDocumentEx", "Block_Size": 5, "Project Information": "pupnp"} +{"Programming Language": "C", "Source Code": "int Parser_LoadDocument(\n\t\n\tIXML_Document **retDoc,\n\t\n\tconst char *xmlFileName,\n\t\n\tint file)\n{\n\tint rc = IXML_SUCCESS;\n\tParser *xmlParser = NULL;\n\n\txmlParser = Parser_init();\n\tif (xmlParser == NULL) {\n\t\treturn IXML_INSUFFICIENT_MEMORY;\n\t}\n\n\trc = Parser_readFileOrBuffer(xmlParser, xmlFileName, file);\n\tif (rc != IXML_SUCCESS) {\n\t\tParser_free(xmlParser);\n\t\treturn rc;\n\t}\n\n\txmlParser->curPtr = xmlParser->dataBuffer;\n\trc = Parser_parseDocument(retDoc, xmlParser);\n\treturn rc;\n}", "Selected Statement": "int rc = IXML_SUCCESS;", "Function Input": {}, "Variable Values Before Statement": {"IXML_SUCCESS": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 9, "Project Information": "pupnp"} +{"Programming Language": "C", "Source Code": "int Parser_LoadDocument(\n\t\n\tIXML_Document **retDoc,\n\t\n\tconst char *xmlFileName,\n\t\n\tint file)\n{\n\tint rc = IXML_SUCCESS;\n\tParser *xmlParser = NULL;\n\n\txmlParser = Parser_init();\n\tif (xmlParser == NULL) {\n\t\treturn IXML_INSUFFICIENT_MEMORY;\n\t}\n\n\trc = Parser_readFileOrBuffer(xmlParser, xmlFileName, file);\n\tif (rc != IXML_SUCCESS) {\n\t\tParser_free(xmlParser);\n\t\treturn rc;\n\t}\n\n\txmlParser->curPtr = xmlParser->dataBuffer;\n\trc = Parser_parseDocument(retDoc, xmlParser);\n\treturn rc;\n}", "Selected Statement": "xmlParser = Parser_init();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": {"dataBuffer": null, "curPtr": null, "savePtr": null, "lastElem": null, "tokenBuf": null, "pNeedPrefixNode": null, "pCurElement": null, "currentNodePtr": null, "state": "eELEMENT", "bHasTopLevel": "0"}, "Function Name": "Parser_init", "Block_Size": 12, "Project Information": "pupnp"} +{"Programming Language": "C", "Source Code": "int Parser_LoadDocument(\n\t\n\tIXML_Document **retDoc,\n\t\n\tconst char *xmlFileName,\n\t\n\tint file)\n{\n\tint rc = IXML_SUCCESS;\n\tParser *xmlParser = NULL;\n\n\txmlParser = Parser_init();\n\tif (xmlParser == NULL) {\n\t\treturn IXML_INSUFFICIENT_MEMORY;\n\t}\n\n\trc = Parser_readFileOrBuffer(xmlParser, xmlFileName, file);\n\tif (rc != IXML_SUCCESS) {\n\t\tParser_free(xmlParser);\n\t\treturn rc;\n\t}\n\n\txmlParser->curPtr = xmlParser->dataBuffer;\n\trc = Parser_parseDocument(retDoc, xmlParser);\n\treturn rc;\n}", "Selected Statement": "rc = Parser_readFileOrBuffer(xmlParser, xmlFileName, file);", "Function Input": {}, "Variable Values Before Statement": {"xmlParser": {"dataBuffer": "0xec9f20 \"curPtr = xmlParser->dataBuffer;\n\trc = Parser_parseDocument(retDoc, xmlParser);\n\treturn rc;\n}", "Selected Statement": "rc = Parser_parseDocument(retDoc, xmlParser);", "Function Input": {}, "Variable Values Before Statement": {"retDoc": "NULL", "xmlParser": {"dataBuffer": "0xec9e80 \"\"", "curPtr": "0xeaf010 \"\\a\"", "savePtr": null, "lastElem": null, "tokenBuf": null, "pNeedPrefixNode": null, "pCurElement": null, "currentNodePtr": null, "state": "eELEMENT", "bHasTopLevel": "0"}}, "Value After Statement Execution": "int", "Function Name": "Parser_parseDocument", "Block_Size": 24, "Project Information": "pupnp"} +{"Programming Language": "C", "Source Code": "void ixml_membuf_init(ixml_membuf *m)\n{\n\tassert(m != NULL);\n\n\tm->size_inc = MEMBUF_DEF_SIZE_INC;\n\tm->buf = NULL;\n\tm->length = (size_t)0;\n\tm->capacity = (size_t)0;\n}", "Selected Statement": "m->size_inc = MEMBUF_DEF_SIZE_INC;", "Function Input": {"m": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"buf": {"type_category": "string", "concrete_type": "string", "value": "0x7fffffffdc80 \"\\300\\334\\377\\377\\377\\177\""}, "length": {"type_category": "unknown", "concrete_type": "size_t", "value": "5004613"}, "capacity": {"type_category": "unknown", "concrete_type": "size_t", "value": "15507792"}, "size_inc": {"type_category": "unknown", "concrete_type": "size_t", "value": "140737488346344"}}}}}, "Variable Values Before Statement": {"MEMBUF_DEF_SIZE_INC": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 3, "Project Information": "pupnp"} +{"Programming Language": "C", "Source Code": "int ixmlDocument_createDocumentEx(IXML_Document **rtDoc)\n{\n\tIXML_Document *doc;\n\tint errCode = IXML_SUCCESS;\n\n\tdoc = NULL;\n\tdoc = (IXML_Document *)malloc(sizeof(IXML_Document));\n\tif (doc == NULL) {\n\t\terrCode = IXML_INSUFFICIENT_MEMORY;\n\t\tgoto ErrorHandler;\n\t}\n\n\tixmlDocument_init(doc);\n\n\tdoc->n.nodeName = strdup((const char *)DOCUMENTNODENAME);\n\tif (doc->n.nodeName == NULL) {\n\t\tixmlDocument_free(doc);\n\t\tdoc = NULL;\n\t\terrCode = IXML_INSUFFICIENT_MEMORY;\n\t\tgoto ErrorHandler;\n\t}\n\n\tdoc->n.nodeType = eDOCUMENT_NODE;\n\tdoc->n.ownerDocument = doc;\n\nErrorHandler:\n\t*rtDoc = doc;\n\treturn errCode;\n}", "Selected Statement": "doc->n.nodeName = strdup((const char *)DOCUMENTNODENAME);", "Function Input": {"doc": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"n": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"nodeName": {"type_category": "string", "concrete_type": "string", "value": "0x7fffffffdc20 \"\\200\\334\\377\\377\\377\\177\""}, "nodeValue": {"type_category": "string", "concrete_type": "string", "value": "0x4c6354 \"\\211\\205\\\\\\377\\377\\377\\213\\265\\\\\\377\\377\\377\\211\\2654\\377\\377\\3771\\377\\350Cw\\367\\377\\213\\2054\\377\\377\\377\\203\\370\""}, "nodeType": {"type_category": "unknown", "concrete_type": "IXML_NODE_TYPE", "value": "eINVALID_NODE"}, "namespaceURI": {"type_category": "string", "concrete_type": "NULL"}, "prefix": {"type_category": "string", "concrete_type": "string", "value": "0x539400 \"\""}, "localName": {"type_category": "string", "concrete_type": "string", "value": "0xeeb830 \""}, "firstChild": {"type_category": "unknown", "concrete_type": "Nodeptr"}, "prevSibling": {"type_category": "unknown", "concrete_type": "Nodeptr", "value": "0xb75c702cdf80b200"}, "nextSibling": {"type_category": "unknown", "concrete_type": "Nodeptr"}, "firstAttr": {"type_category": "unknown", "concrete_type": "Nodeptr", "value": "0x7fffffffdce8"}, "ownerDocument": {"type_category": "unknown", "concrete_type": "Docptr", "value": "0xecb6f0"}, "ctag": {"type_category": "pointer", "concrete_type": "VOID"}}}}}}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "strdup", "Block_Size": 13, "Project Information": "pupnp"} +{"Programming Language": "C", "Source Code": "int ixmlDocument_createDocumentEx(IXML_Document **rtDoc)\n{\n\tIXML_Document *doc;\n\tint errCode = IXML_SUCCESS;\n\n\tdoc = NULL;\n\tdoc = (IXML_Document *)malloc(sizeof(IXML_Document));\n\tif (doc == NULL) {\n\t\terrCode = IXML_INSUFFICIENT_MEMORY;\n\t\tgoto ErrorHandler;\n\t}\n\n\tixmlDocument_init(doc);\n\n\tdoc->n.nodeName = strdup((const char *)DOCUMENTNODENAME);\n\tif (doc->n.nodeName == NULL) {\n\t\tixmlDocument_free(doc);\n\t\tdoc = NULL;\n\t\terrCode = IXML_INSUFFICIENT_MEMORY;\n\t\tgoto ErrorHandler;\n\t}\n\n\tdoc->n.nodeType = eDOCUMENT_NODE;\n\tdoc->n.ownerDocument = doc;\n\nErrorHandler:\n\t*rtDoc = doc;\n\treturn errCode;\n}", "Selected Statement": "doc->n.nodeType = eDOCUMENT_NODE;", "Function Input": {"doc": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"n": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"nodeName": {"type_category": "string", "concrete_type": "string", "value": "0x7fffffffdc20 \"\\200\\334\\377\\377\\377\\177\""}, "nodeValue": {"type_category": "string", "concrete_type": "string", "value": "0x4c6354 \"\\211\\205\\\\\\377\\377\\377\\213\\265\\\\\\377\\377\\377\\211\\2654\\377\\377\\3771\\377\\350Cw\\367\\377\\213\\2054\\377\\377\\377\\203\\370\""}, "nodeType": {"type_category": "unknown", "concrete_type": "IXML_NODE_TYPE", "value": "eINVALID_NODE"}, "namespaceURI": {"type_category": "string", "concrete_type": "NULL"}, "prefix": {"type_category": "string", "concrete_type": "string", "value": "0x539400 \"\""}, "localName": {"type_category": "string", "concrete_type": "string", "value": "0xeeb830 \""}, "firstChild": {"type_category": "unknown", "concrete_type": "Nodeptr"}, "prevSibling": {"type_category": "unknown", "concrete_type": "Nodeptr", "value": "0xb75c702cdf80b200"}, "nextSibling": {"type_category": "unknown", "concrete_type": "Nodeptr"}, "firstAttr": {"type_category": "unknown", "concrete_type": "Nodeptr", "value": "0x7fffffffdce8"}, "ownerDocument": {"type_category": "unknown", "concrete_type": "Docptr", "value": "0xecb6f0"}, "ctag": {"type_category": "pointer", "concrete_type": "VOID"}}}}}}}, "Variable Values Before Statement": {"eDOCUMENT_NODE": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 21, "Project Information": "pupnp"} +{"Programming Language": "C", "Source Code": "int ixmlDocument_createDocumentEx(IXML_Document **rtDoc)\n{\n\tIXML_Document *doc;\n\tint errCode = IXML_SUCCESS;\n\n\tdoc = NULL;\n\tdoc = (IXML_Document *)malloc(sizeof(IXML_Document));\n\tif (doc == NULL) {\n\t\terrCode = IXML_INSUFFICIENT_MEMORY;\n\t\tgoto ErrorHandler;\n\t}\n\n\tixmlDocument_init(doc);\n\n\tdoc->n.nodeName = strdup((const char *)DOCUMENTNODENAME);\n\tif (doc->n.nodeName == NULL) {\n\t\tixmlDocument_free(doc);\n\t\tdoc = NULL;\n\t\terrCode = IXML_INSUFFICIENT_MEMORY;\n\t\tgoto ErrorHandler;\n\t}\n\n\tdoc->n.nodeType = eDOCUMENT_NODE;\n\tdoc->n.ownerDocument = doc;\n\nErrorHandler:\n\t*rtDoc = doc;\n\treturn errCode;\n}", "Selected Statement": "*rtDoc = doc;", "Function Input": {"doc": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"n": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"nodeName": {"type_category": "string", "concrete_type": "string", "value": "0x7fffffffdc20 \"\\200\\334\\377\\377\\377\\177\""}, "nodeValue": {"type_category": "string", "concrete_type": "string", "value": "0x4c6354 \"\\211\\205\\\\\\377\\377\\377\\213\\265\\\\\\377\\377\\377\\211\\2654\\377\\377\\3771\\377\\350Cw\\367\\377\\213\\2054\\377\\377\\377\\203\\370\""}, "nodeType": {"type_category": "unknown", "concrete_type": "IXML_NODE_TYPE", "value": "eINVALID_NODE"}, "namespaceURI": {"type_category": "string", "concrete_type": "NULL"}, "prefix": {"type_category": "string", "concrete_type": "string", "value": "0x539400 \"\""}, "localName": {"type_category": "string", "concrete_type": "string", "value": "0xeeb830 \""}, "firstChild": {"type_category": "unknown", "concrete_type": "Nodeptr"}, "prevSibling": {"type_category": "unknown", "concrete_type": "Nodeptr", "value": "0xb75c702cdf80b200"}, "nextSibling": {"type_category": "unknown", "concrete_type": "Nodeptr"}, "firstAttr": {"type_category": "unknown", "concrete_type": "Nodeptr", "value": "0x7fffffffdce8"}, "ownerDocument": {"type_category": "unknown", "concrete_type": "Docptr", "value": "0xecb6f0"}, "ctag": {"type_category": "pointer", "concrete_type": "VOID"}}}}}}}, "Variable Values Before Statement": {"doc": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 25, "Project Information": "pupnp"} +{"Programming Language": "C", "Source Code": "void IxmlPrintf(const char *DbgFileName,\n\tint DbgLineNo,\n\tconst char *FunctionName,\n\tconst char *FmtStr,\n\t...)\n{\n\tva_list ArgList;\n\n\tFILE *fp = stdout;\n\tfprintf(fp, \"(%s::%s), line %d\", DbgFileName, FunctionName, DbgLineNo);\n\tif (FmtStr) {\n\t\tfprintf(fp, \": \");\n\t\tva_start(ArgList, FmtStr);\n\t\tvfprintf(fp, FmtStr, ArgList);\n\t\tfflush(fp);\n\t\tva_end(ArgList);\n\t} else {\n\t\tfprintf(fp, \"\\n\");\n\t}\n}", "Selected Statement": "FILE *fp = stdout;", "Function Input": {"DbgFileName": {"value": "0xeca330 \"\\260\\243\\354\""}, "DbgLineNo": {"value": "118"}, "FmtStr": {"value": "0x7fffffffd8a0 \"@\\331\\377\""}, "FunctionName": {"value": "0x4c82df \"H\\203\\370\""}}, "Variable Values Before Statement": {"stdout": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 7, "Project Information": "pupnp"} +{"Programming Language": "C", "Source Code": "static errcode_t unix_open(const char *name, int flags,\n\t\t\t io_channel *channel)\n{\n\tint fd = -1;\n\tint open_flags;\n\n\tif (name == 0)\n\t\treturn EXT2_ET_BAD_DEVICE_NAME;\n\n\topen_flags = (flags & IO_FLAG_RW) ? O_RDWR : O_RDONLY;\n\tif (flags & IO_FLAG_EXCLUSIVE)\n\t\topen_flags |= O_EXCL;\n#if defined(O_DIRECT)\n\tif (flags & IO_FLAG_DIRECT_IO)\n\t\topen_flags |= O_DIRECT;\n#endif\n\tfd = ext2fs_open_file(name, open_flags, 0);\n\tif (fd < 0)\n\t\treturn errno;\n#if defined(F_NOCACHE) && !defined(IO_DIRECT)\n\tif (flags & IO_FLAG_DIRECT_IO) {\n\t\tif (fcntl(fd, F_NOCACHE, 1) < 0)\n\t\t\treturn errno;\n\t}\n#endif\n\treturn unix_open_channel(name, fd, flags, channel, unix_io_manager);\n}", "Selected Statement": "fd = ext2fs_open_file(name, open_flags, 0);", "Function Input": {}, "Variable Values Before Statement": {"name": "0x1018210 \"/proc/self/fd/3\"", "open_flags": "int", "0": "0"}, "Value After Statement Execution": "int", "Function Name": "ext2fs_open_file", "Block_Size": 15, "Project Information": "e2fsprogs"} +{"Programming Language": "C", "Source Code": "int pr_log_event_listening(unsigned int log_type) {\n const char *event_name;\n int res;\n\n event_name = get_log_event_name(log_type);\n if (event_name == NULL) {\n return FALSE;\n }\n\n res = pr_event_listening(event_name);\n if (res <= 0) {\n return FALSE;\n }\n\n return TRUE;\n}", "Selected Statement": "event_name = get_log_event_name(log_type);", "Function Input": {}, "Variable Values Before Statement": {"log_type": "unsigned int"}, "Value After Statement Execution": "0x672686 \"core.log.tracelog\"", "Function Name": "get_log_event_name", "Block_Size": 3, "Project Information": "proftpd"} +{"Programming Language": "C", "Source Code": "int pr_log_event_listening(unsigned int log_type) {\n const char *event_name;\n int res;\n\n event_name = get_log_event_name(log_type);\n if (event_name == NULL) {\n return FALSE;\n }\n\n res = pr_event_listening(event_name);\n if (res <= 0) {\n return FALSE;\n }\n\n return TRUE;\n}", "Selected Statement": "res = pr_event_listening(event_name);", "Function Input": {}, "Variable Values Before Statement": {"event_name": "0x672686 \"core.log.tracelog\""}, "Value After Statement Execution": "int", "Function Name": "pr_event_listening", "Block_Size": 8, "Project Information": "proftpd"} +{"Programming Language": "C", "Source Code": "void\np11_debug_init (void)\n{\n\tp11_debug_current_flags = parse_environ_flags ();\n}", "Selected Statement": "p11_debug_current_flags = parse_environ_flags ();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "int", "Function Name": "parse_environ_flags", "Block_Size": 1, "Project Information": "p11-kit"} +{"Programming Language": "C", "Source Code": "void\np11_virtual_init (p11_virtual *virt,\n CK_X_FUNCTION_LIST *funcs,\n void *lower_module,\n p11_destroyer lower_destroy)\n{\n\tmemcpy (virt, funcs, sizeof (CK_X_FUNCTION_LIST));\n\tvirt->lower_module = lower_module;\n\tvirt->lower_destroy = lower_destroy;\n}", "Selected Statement": "virt->lower_module = lower_module;", "Function Input": {}, "Variable Values Before Statement": {"lower_module": "VOID"}, "Value After Statement Execution": "VOID", "Block_Size": 5, "Project Information": "p11-kit"} +{"Programming Language": "C", "Source Code": "void\np11_virtual_init (p11_virtual *virt,\n CK_X_FUNCTION_LIST *funcs,\n void *lower_module,\n p11_destroyer lower_destroy)\n{\n\tmemcpy (virt, funcs, sizeof (CK_X_FUNCTION_LIST));\n\tvirt->lower_module = lower_module;\n\tvirt->lower_destroy = lower_destroy;\n}", "Selected Statement": "virt->lower_destroy = lower_destroy;", "Function Input": {}, "Variable Values Before Statement": {"lower_destroy": "p11_destroyer"}, "Value After Statement Execution": "p11_destroyer", "Block_Size": 6, "Project Information": "p11-kit"} +{"Programming Language": "C", "Source Code": "void\np11_message_clear (void)\n{\n\tchar *buffer;\n\tbuffer = p11_message_storage ();\n\tif (buffer != NULL)\n\t\tbuffer[0] = 0;\n}", "Selected Statement": "buffer = p11_message_storage ();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "0x7ffff7c23778 \"\"", "Function Name": "p11_message_storage", "Block_Size": 2, "Project Information": "p11-kit"} +{"Programming Language": "C", "Source Code": "void\np11_message_clear (void)\n{\n\tchar *buffer;\n\tbuffer = p11_message_storage ();\n\tif (buffer != NULL)\n\t\tbuffer[0] = 0;\n}", "Selected Statement": "buffer[0] = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 4, "Project Information": "p11-kit"} +{"Programming Language": "C", "Source Code": "void\np11_rpc_message_init (p11_rpc_message *msg,\n p11_buffer *input,\n p11_buffer *output)\n{\n\tassert (input != NULL);\n\tassert (output != NULL);\n\tassert (output->ffree != NULL);\n\tassert (output->frealloc != NULL);\n\n\tmemset (msg, 0, sizeof (*msg));\n\n\tmsg->output = output;\n\tmsg->input = input;\n}", "Selected Statement": "msg->output = output;", "Function Input": {"input": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "pointer", "concrete_type": "VOID"}, "len": {"type_category": "unknown", "concrete_type": "size_t", "value": "7171829"}, "flags": {"type_category": "int", "concrete_type": "int", "value": "0"}, "size": {"type_category": "unknown", "concrete_type": "size_t", "value": "140737488346912"}, "frealloc": {"type_category": "pointer", "concrete_type": "NULL"}, "ffree": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffde38", "value": {"type_category": "unknown", "concrete_type": "unknown", "value": "{void (void *)} 0x7fffffffde80"}}}}}, "msg": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"call_id": {"type_category": "int", "concrete_type": "int", "value": "0"}, "call_type": {"type_category": "unknown", "concrete_type": "p11_rpc_message_type", "value": "0"}, "signature": {"type_category": "string", "concrete_type": "NULL"}, "input": {"type_category": "pointer", "concrete_type": "NULL"}, "output": {"type_category": "pointer", "concrete_type": "NULL"}, "parsed": {"type_category": "unknown", "concrete_type": "size_t", "value": "0"}, "sigverify": {"type_category": "string", "concrete_type": "NULL"}, "extra": {"type_category": "pointer", "concrete_type": "NULL"}}}}, "output": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "pointer", "concrete_type": "VOID"}, "len": {"type_category": "unknown", "concrete_type": "size_t", "value": "13906552813760349578"}, "flags": {"type_category": "int", "concrete_type": "int", "value": "-1570962040"}, "size": {"type_category": "unknown", "concrete_type": "size_t", "value": "13963209366481488104"}, "frealloc": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x6f4030 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x98b4864fffffdd0\n", "message": "Cannot access memory at address 0x98b4864fffffdd0"}}, "ffree": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x6f4038 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xf830fc83948\n", "message": "Cannot access memory at address 0xf830fc83948"}}}}}}, "Variable Values Before Statement": {"output": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 10, "Project Information": "p11-kit"} +{"Programming Language": "C", "Source Code": "void\np11_rpc_message_init (p11_rpc_message *msg,\n p11_buffer *input,\n p11_buffer *output)\n{\n\tassert (input != NULL);\n\tassert (output != NULL);\n\tassert (output->ffree != NULL);\n\tassert (output->frealloc != NULL);\n\n\tmemset (msg, 0, sizeof (*msg));\n\n\tmsg->output = output;\n\tmsg->input = input;\n}", "Selected Statement": "msg->input = input;", "Function Input": {"input": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "pointer", "concrete_type": "VOID"}, "len": {"type_category": "unknown", "concrete_type": "size_t", "value": "7171829"}, "flags": {"type_category": "int", "concrete_type": "int", "value": "0"}, "size": {"type_category": "unknown", "concrete_type": "size_t", "value": "140737488346912"}, "frealloc": {"type_category": "pointer", "concrete_type": "NULL"}, "ffree": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7fffffffde38", "value": {"type_category": "unknown", "concrete_type": "unknown", "value": "{void (void *)} 0x7fffffffde80"}}}}}, "msg": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"call_id": {"type_category": "int", "concrete_type": "int", "value": "0"}, "call_type": {"type_category": "unknown", "concrete_type": "p11_rpc_message_type", "value": "0"}, "signature": {"type_category": "string", "concrete_type": "NULL"}, "input": {"type_category": "pointer", "concrete_type": "NULL"}, "output": {"type_category": "pointer", "concrete_type": "NULL"}, "parsed": {"type_category": "unknown", "concrete_type": "size_t", "value": "0"}, "sigverify": {"type_category": "string", "concrete_type": "NULL"}, "extra": {"type_category": "pointer", "concrete_type": "NULL"}}}}, "output": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"data": {"type_category": "pointer", "concrete_type": "VOID"}, "len": {"type_category": "unknown", "concrete_type": "size_t", "value": "13906552813760349578"}, "flags": {"type_category": "int", "concrete_type": "int", "value": "-1570962040"}, "size": {"type_category": "unknown", "concrete_type": "size_t", "value": "13963209366481488104"}, "frealloc": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x6f4030 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x98b4864fffffdd0\n", "message": "Cannot access memory at address 0x98b4864fffffdd0"}}, "ffree": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x6f4038 ", "value": {"type_category": "unknown", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0xf830fc83948\n", "message": "Cannot access memory at address 0xf830fc83948"}}}}}}, "Variable Values Before Statement": {"input": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 11, "Project Information": "p11-kit"} +{"Programming Language": "C", "Source Code": "DLLEXPORT tjhandle tj3Init(int initType)\n{\n static const char FUNCTION_NAME[] = \"tj3Init\";\n tjinstance *this = NULL;\n tjhandle retval = NULL;\n\n if (initType < 0 || initType >= TJ_NUMINIT)\n THROWG(\"Invalid argument\", NULL);\n\n if ((this = (tjinstance *)malloc(sizeof(tjinstance))) == NULL)\n THROWG(\"Memory allocation failure\", NULL);\n memset(this, 0, sizeof(tjinstance));\n SNPRINTF(this->errStr, JMSG_LENGTH_MAX, \"No error\");\n\n this->quality = -1;\n this->subsamp = TJSAMP_UNKNOWN;\n this->jpegWidth = -1;\n this->jpegHeight = -1;\n this->precision = 8;\n this->colorspace = -1;\n this->losslessPSV = 1;\n this->xDensity = 1;\n this->yDensity = 1;\n this->scalingFactor = TJUNSCALED;\n\n switch (initType) {\n case TJINIT_COMPRESS: return _tjInitCompress(this);\n case TJINIT_DECOMPRESS: return _tjInitDecompress(this);\n case TJINIT_TRANSFORM:\n retval = _tjInitCompress(this);\n if (!retval) return NULL;\n retval = _tjInitDecompress(this);\n return retval;\n }\n\nbailout:\n return retval;\n}", "Selected Statement": "static const char FUNCTION_NAME[] = \"tj3Init\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"tj3Init\""}, "Value After Statement Execution": "\"tj3Init\"", "Block_Size": 1, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "DLLEXPORT tjhandle tj3Init(int initType)\n{\n static const char FUNCTION_NAME[] = \"tj3Init\";\n tjinstance *this = NULL;\n tjhandle retval = NULL;\n\n if (initType < 0 || initType >= TJ_NUMINIT)\n THROWG(\"Invalid argument\", NULL);\n\n if ((this = (tjinstance *)malloc(sizeof(tjinstance))) == NULL)\n THROWG(\"Memory allocation failure\", NULL);\n memset(this, 0, sizeof(tjinstance));\n SNPRINTF(this->errStr, JMSG_LENGTH_MAX, \"No error\");\n\n this->quality = -1;\n this->subsamp = TJSAMP_UNKNOWN;\n this->jpegWidth = -1;\n this->jpegHeight = -1;\n this->precision = 8;\n this->colorspace = -1;\n this->losslessPSV = 1;\n this->xDensity = 1;\n this->yDensity = 1;\n this->scalingFactor = TJUNSCALED;\n\n switch (initType) {\n case TJINIT_COMPRESS: return _tjInitCompress(this);\n case TJINIT_DECOMPRESS: return _tjInitDecompress(this);\n case TJINIT_TRANSFORM:\n retval = _tjInitCompress(this);\n if (!retval) return NULL;\n retval = _tjInitDecompress(this);\n return retval;\n }\n\nbailout:\n return retval;\n}", "Selected Statement": "this->quality = -1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 13, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "DLLEXPORT tjhandle tj3Init(int initType)\n{\n static const char FUNCTION_NAME[] = \"tj3Init\";\n tjinstance *this = NULL;\n tjhandle retval = NULL;\n\n if (initType < 0 || initType >= TJ_NUMINIT)\n THROWG(\"Invalid argument\", NULL);\n\n if ((this = (tjinstance *)malloc(sizeof(tjinstance))) == NULL)\n THROWG(\"Memory allocation failure\", NULL);\n memset(this, 0, sizeof(tjinstance));\n SNPRINTF(this->errStr, JMSG_LENGTH_MAX, \"No error\");\n\n this->quality = -1;\n this->subsamp = TJSAMP_UNKNOWN;\n this->jpegWidth = -1;\n this->jpegHeight = -1;\n this->precision = 8;\n this->colorspace = -1;\n this->losslessPSV = 1;\n this->xDensity = 1;\n this->yDensity = 1;\n this->scalingFactor = TJUNSCALED;\n\n switch (initType) {\n case TJINIT_COMPRESS: return _tjInitCompress(this);\n case TJINIT_DECOMPRESS: return _tjInitDecompress(this);\n case TJINIT_TRANSFORM:\n retval = _tjInitCompress(this);\n if (!retval) return NULL;\n retval = _tjInitDecompress(this);\n return retval;\n }\n\nbailout:\n return retval;\n}", "Selected Statement": "this->subsamp = TJSAMP_UNKNOWN;", "Function Input": {}, "Variable Values Before Statement": {"TJSAMP_UNKNOWN": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 14, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "DLLEXPORT tjhandle tj3Init(int initType)\n{\n static const char FUNCTION_NAME[] = \"tj3Init\";\n tjinstance *this = NULL;\n tjhandle retval = NULL;\n\n if (initType < 0 || initType >= TJ_NUMINIT)\n THROWG(\"Invalid argument\", NULL);\n\n if ((this = (tjinstance *)malloc(sizeof(tjinstance))) == NULL)\n THROWG(\"Memory allocation failure\", NULL);\n memset(this, 0, sizeof(tjinstance));\n SNPRINTF(this->errStr, JMSG_LENGTH_MAX, \"No error\");\n\n this->quality = -1;\n this->subsamp = TJSAMP_UNKNOWN;\n this->jpegWidth = -1;\n this->jpegHeight = -1;\n this->precision = 8;\n this->colorspace = -1;\n this->losslessPSV = 1;\n this->xDensity = 1;\n this->yDensity = 1;\n this->scalingFactor = TJUNSCALED;\n\n switch (initType) {\n case TJINIT_COMPRESS: return _tjInitCompress(this);\n case TJINIT_DECOMPRESS: return _tjInitDecompress(this);\n case TJINIT_TRANSFORM:\n retval = _tjInitCompress(this);\n if (!retval) return NULL;\n retval = _tjInitDecompress(this);\n return retval;\n }\n\nbailout:\n return retval;\n}", "Selected Statement": "this->jpegWidth = -1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 15, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "DLLEXPORT tjhandle tj3Init(int initType)\n{\n static const char FUNCTION_NAME[] = \"tj3Init\";\n tjinstance *this = NULL;\n tjhandle retval = NULL;\n\n if (initType < 0 || initType >= TJ_NUMINIT)\n THROWG(\"Invalid argument\", NULL);\n\n if ((this = (tjinstance *)malloc(sizeof(tjinstance))) == NULL)\n THROWG(\"Memory allocation failure\", NULL);\n memset(this, 0, sizeof(tjinstance));\n SNPRINTF(this->errStr, JMSG_LENGTH_MAX, \"No error\");\n\n this->quality = -1;\n this->subsamp = TJSAMP_UNKNOWN;\n this->jpegWidth = -1;\n this->jpegHeight = -1;\n this->precision = 8;\n this->colorspace = -1;\n this->losslessPSV = 1;\n this->xDensity = 1;\n this->yDensity = 1;\n this->scalingFactor = TJUNSCALED;\n\n switch (initType) {\n case TJINIT_COMPRESS: return _tjInitCompress(this);\n case TJINIT_DECOMPRESS: return _tjInitDecompress(this);\n case TJINIT_TRANSFORM:\n retval = _tjInitCompress(this);\n if (!retval) return NULL;\n retval = _tjInitDecompress(this);\n return retval;\n }\n\nbailout:\n return retval;\n}", "Selected Statement": "this->jpegHeight = -1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 16, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "DLLEXPORT tjhandle tj3Init(int initType)\n{\n static const char FUNCTION_NAME[] = \"tj3Init\";\n tjinstance *this = NULL;\n tjhandle retval = NULL;\n\n if (initType < 0 || initType >= TJ_NUMINIT)\n THROWG(\"Invalid argument\", NULL);\n\n if ((this = (tjinstance *)malloc(sizeof(tjinstance))) == NULL)\n THROWG(\"Memory allocation failure\", NULL);\n memset(this, 0, sizeof(tjinstance));\n SNPRINTF(this->errStr, JMSG_LENGTH_MAX, \"No error\");\n\n this->quality = -1;\n this->subsamp = TJSAMP_UNKNOWN;\n this->jpegWidth = -1;\n this->jpegHeight = -1;\n this->precision = 8;\n this->colorspace = -1;\n this->losslessPSV = 1;\n this->xDensity = 1;\n this->yDensity = 1;\n this->scalingFactor = TJUNSCALED;\n\n switch (initType) {\n case TJINIT_COMPRESS: return _tjInitCompress(this);\n case TJINIT_DECOMPRESS: return _tjInitDecompress(this);\n case TJINIT_TRANSFORM:\n retval = _tjInitCompress(this);\n if (!retval) return NULL;\n retval = _tjInitDecompress(this);\n return retval;\n }\n\nbailout:\n return retval;\n}", "Selected Statement": "this->precision = 8;", "Function Input": {}, "Variable Values Before Statement": {"constant": "8"}, "Value After Statement Execution": "8", "Block_Size": 17, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "DLLEXPORT tjhandle tj3Init(int initType)\n{\n static const char FUNCTION_NAME[] = \"tj3Init\";\n tjinstance *this = NULL;\n tjhandle retval = NULL;\n\n if (initType < 0 || initType >= TJ_NUMINIT)\n THROWG(\"Invalid argument\", NULL);\n\n if ((this = (tjinstance *)malloc(sizeof(tjinstance))) == NULL)\n THROWG(\"Memory allocation failure\", NULL);\n memset(this, 0, sizeof(tjinstance));\n SNPRINTF(this->errStr, JMSG_LENGTH_MAX, \"No error\");\n\n this->quality = -1;\n this->subsamp = TJSAMP_UNKNOWN;\n this->jpegWidth = -1;\n this->jpegHeight = -1;\n this->precision = 8;\n this->colorspace = -1;\n this->losslessPSV = 1;\n this->xDensity = 1;\n this->yDensity = 1;\n this->scalingFactor = TJUNSCALED;\n\n switch (initType) {\n case TJINIT_COMPRESS: return _tjInitCompress(this);\n case TJINIT_DECOMPRESS: return _tjInitDecompress(this);\n case TJINIT_TRANSFORM:\n retval = _tjInitCompress(this);\n if (!retval) return NULL;\n retval = _tjInitDecompress(this);\n return retval;\n }\n\nbailout:\n return retval;\n}", "Selected Statement": "this->colorspace = -1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 18, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "DLLEXPORT tjhandle tj3Init(int initType)\n{\n static const char FUNCTION_NAME[] = \"tj3Init\";\n tjinstance *this = NULL;\n tjhandle retval = NULL;\n\n if (initType < 0 || initType >= TJ_NUMINIT)\n THROWG(\"Invalid argument\", NULL);\n\n if ((this = (tjinstance *)malloc(sizeof(tjinstance))) == NULL)\n THROWG(\"Memory allocation failure\", NULL);\n memset(this, 0, sizeof(tjinstance));\n SNPRINTF(this->errStr, JMSG_LENGTH_MAX, \"No error\");\n\n this->quality = -1;\n this->subsamp = TJSAMP_UNKNOWN;\n this->jpegWidth = -1;\n this->jpegHeight = -1;\n this->precision = 8;\n this->colorspace = -1;\n this->losslessPSV = 1;\n this->xDensity = 1;\n this->yDensity = 1;\n this->scalingFactor = TJUNSCALED;\n\n switch (initType) {\n case TJINIT_COMPRESS: return _tjInitCompress(this);\n case TJINIT_DECOMPRESS: return _tjInitDecompress(this);\n case TJINIT_TRANSFORM:\n retval = _tjInitCompress(this);\n if (!retval) return NULL;\n retval = _tjInitDecompress(this);\n return retval;\n }\n\nbailout:\n return retval;\n}", "Selected Statement": "this->losslessPSV = 1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 19, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "DLLEXPORT tjhandle tj3Init(int initType)\n{\n static const char FUNCTION_NAME[] = \"tj3Init\";\n tjinstance *this = NULL;\n tjhandle retval = NULL;\n\n if (initType < 0 || initType >= TJ_NUMINIT)\n THROWG(\"Invalid argument\", NULL);\n\n if ((this = (tjinstance *)malloc(sizeof(tjinstance))) == NULL)\n THROWG(\"Memory allocation failure\", NULL);\n memset(this, 0, sizeof(tjinstance));\n SNPRINTF(this->errStr, JMSG_LENGTH_MAX, \"No error\");\n\n this->quality = -1;\n this->subsamp = TJSAMP_UNKNOWN;\n this->jpegWidth = -1;\n this->jpegHeight = -1;\n this->precision = 8;\n this->colorspace = -1;\n this->losslessPSV = 1;\n this->xDensity = 1;\n this->yDensity = 1;\n this->scalingFactor = TJUNSCALED;\n\n switch (initType) {\n case TJINIT_COMPRESS: return _tjInitCompress(this);\n case TJINIT_DECOMPRESS: return _tjInitDecompress(this);\n case TJINIT_TRANSFORM:\n retval = _tjInitCompress(this);\n if (!retval) return NULL;\n retval = _tjInitDecompress(this);\n return retval;\n }\n\nbailout:\n return retval;\n}", "Selected Statement": "this->xDensity = 1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 20, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "DLLEXPORT tjhandle tj3Init(int initType)\n{\n static const char FUNCTION_NAME[] = \"tj3Init\";\n tjinstance *this = NULL;\n tjhandle retval = NULL;\n\n if (initType < 0 || initType >= TJ_NUMINIT)\n THROWG(\"Invalid argument\", NULL);\n\n if ((this = (tjinstance *)malloc(sizeof(tjinstance))) == NULL)\n THROWG(\"Memory allocation failure\", NULL);\n memset(this, 0, sizeof(tjinstance));\n SNPRINTF(this->errStr, JMSG_LENGTH_MAX, \"No error\");\n\n this->quality = -1;\n this->subsamp = TJSAMP_UNKNOWN;\n this->jpegWidth = -1;\n this->jpegHeight = -1;\n this->precision = 8;\n this->colorspace = -1;\n this->losslessPSV = 1;\n this->xDensity = 1;\n this->yDensity = 1;\n this->scalingFactor = TJUNSCALED;\n\n switch (initType) {\n case TJINIT_COMPRESS: return _tjInitCompress(this);\n case TJINIT_DECOMPRESS: return _tjInitDecompress(this);\n case TJINIT_TRANSFORM:\n retval = _tjInitCompress(this);\n if (!retval) return NULL;\n retval = _tjInitDecompress(this);\n return retval;\n }\n\nbailout:\n return retval;\n}", "Selected Statement": "this->yDensity = 1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 21, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(struct jpeg_error_mgr *)\njpeg_std_error(struct jpeg_error_mgr *err)\n{\n err->error_exit = error_exit;\n err->emit_message = emit_message;\n err->output_message = output_message;\n err->format_message = format_message;\n err->reset_error_mgr = reset_error_mgr;\n\n err->trace_level = 0; \n err->num_warnings = 0; \n err->msg_code = 0; \n\n \n err->jpeg_message_table = jpeg_std_message_table;\n err->last_jpeg_message = (int)JMSG_LASTMSGCODE - 1;\n\n err->addon_message_table = NULL;\n err->first_addon_message = 0; \n err->last_addon_message = 0;\n\n return err;\n}", "Selected Statement": "err->error_exit = error_exit;", "Function Input": {}, "Variable Values Before Statement": {"error_exit": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 1, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(struct jpeg_error_mgr *)\njpeg_std_error(struct jpeg_error_mgr *err)\n{\n err->error_exit = error_exit;\n err->emit_message = emit_message;\n err->output_message = output_message;\n err->format_message = format_message;\n err->reset_error_mgr = reset_error_mgr;\n\n err->trace_level = 0; \n err->num_warnings = 0; \n err->msg_code = 0; \n\n \n err->jpeg_message_table = jpeg_std_message_table;\n err->last_jpeg_message = (int)JMSG_LASTMSGCODE - 1;\n\n err->addon_message_table = NULL;\n err->first_addon_message = 0; \n err->last_addon_message = 0;\n\n return err;\n}", "Selected Statement": "err->emit_message = emit_message;", "Function Input": {}, "Variable Values Before Statement": {"emit_message": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 2, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(struct jpeg_error_mgr *)\njpeg_std_error(struct jpeg_error_mgr *err)\n{\n err->error_exit = error_exit;\n err->emit_message = emit_message;\n err->output_message = output_message;\n err->format_message = format_message;\n err->reset_error_mgr = reset_error_mgr;\n\n err->trace_level = 0; \n err->num_warnings = 0; \n err->msg_code = 0; \n\n \n err->jpeg_message_table = jpeg_std_message_table;\n err->last_jpeg_message = (int)JMSG_LASTMSGCODE - 1;\n\n err->addon_message_table = NULL;\n err->first_addon_message = 0; \n err->last_addon_message = 0;\n\n return err;\n}", "Selected Statement": "err->output_message = output_message;", "Function Input": {}, "Variable Values Before Statement": {"output_message": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 3, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(struct jpeg_error_mgr *)\njpeg_std_error(struct jpeg_error_mgr *err)\n{\n err->error_exit = error_exit;\n err->emit_message = emit_message;\n err->output_message = output_message;\n err->format_message = format_message;\n err->reset_error_mgr = reset_error_mgr;\n\n err->trace_level = 0; \n err->num_warnings = 0; \n err->msg_code = 0; \n\n \n err->jpeg_message_table = jpeg_std_message_table;\n err->last_jpeg_message = (int)JMSG_LASTMSGCODE - 1;\n\n err->addon_message_table = NULL;\n err->first_addon_message = 0; \n err->last_addon_message = 0;\n\n return err;\n}", "Selected Statement": "err->format_message = format_message;", "Function Input": {}, "Variable Values Before Statement": {"format_message": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 4, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(struct jpeg_error_mgr *)\njpeg_std_error(struct jpeg_error_mgr *err)\n{\n err->error_exit = error_exit;\n err->emit_message = emit_message;\n err->output_message = output_message;\n err->format_message = format_message;\n err->reset_error_mgr = reset_error_mgr;\n\n err->trace_level = 0; \n err->num_warnings = 0; \n err->msg_code = 0; \n\n \n err->jpeg_message_table = jpeg_std_message_table;\n err->last_jpeg_message = (int)JMSG_LASTMSGCODE - 1;\n\n err->addon_message_table = NULL;\n err->first_addon_message = 0; \n err->last_addon_message = 0;\n\n return err;\n}", "Selected Statement": "err->trace_level = 0; /* default = no tracing */", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 7, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(struct jpeg_error_mgr *)\njpeg_std_error(struct jpeg_error_mgr *err)\n{\n err->error_exit = error_exit;\n err->emit_message = emit_message;\n err->output_message = output_message;\n err->format_message = format_message;\n err->reset_error_mgr = reset_error_mgr;\n\n err->trace_level = 0; \n err->num_warnings = 0; \n err->msg_code = 0; \n\n \n err->jpeg_message_table = jpeg_std_message_table;\n err->last_jpeg_message = (int)JMSG_LASTMSGCODE - 1;\n\n err->addon_message_table = NULL;\n err->first_addon_message = 0; \n err->last_addon_message = 0;\n\n return err;\n}", "Selected Statement": "err->num_warnings = 0; /* no warnings emitted yet */", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 8, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(struct jpeg_error_mgr *)\njpeg_std_error(struct jpeg_error_mgr *err)\n{\n err->error_exit = error_exit;\n err->emit_message = emit_message;\n err->output_message = output_message;\n err->format_message = format_message;\n err->reset_error_mgr = reset_error_mgr;\n\n err->trace_level = 0; \n err->num_warnings = 0; \n err->msg_code = 0; \n\n \n err->jpeg_message_table = jpeg_std_message_table;\n err->last_jpeg_message = (int)JMSG_LASTMSGCODE - 1;\n\n err->addon_message_table = NULL;\n err->first_addon_message = 0; \n err->last_addon_message = 0;\n\n return err;\n}", "Selected Statement": "err->jpeg_message_table = jpeg_std_message_table;", "Function Input": {}, "Variable Values Before Statement": {"jpeg_std_message_table": "ARRAY"}, "Value After Statement Execution": "ARRAY", "Block_Size": 12, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(struct jpeg_error_mgr *)\njpeg_std_error(struct jpeg_error_mgr *err)\n{\n err->error_exit = error_exit;\n err->emit_message = emit_message;\n err->output_message = output_message;\n err->format_message = format_message;\n err->reset_error_mgr = reset_error_mgr;\n\n err->trace_level = 0; \n err->num_warnings = 0; \n err->msg_code = 0; \n\n \n err->jpeg_message_table = jpeg_std_message_table;\n err->last_jpeg_message = (int)JMSG_LASTMSGCODE - 1;\n\n err->addon_message_table = NULL;\n err->first_addon_message = 0; \n err->last_addon_message = 0;\n\n return err;\n}", "Selected Statement": "err->first_addon_message = 0; /* for safety */", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 16, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_CreateCompress(j_compress_ptr cinfo, int version, size_t structsize)\n{\n int i;\n\n \n cinfo->mem = NULL; \n if (version != JPEG_LIB_VERSION)\n ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);\n if (structsize != sizeof(struct jpeg_compress_struct))\n ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,\n (int)sizeof(struct jpeg_compress_struct), (int)structsize);\n\n \n {\n struct jpeg_error_mgr *err = cinfo->err;\n void *client_data = cinfo->client_data; \n memset(cinfo, 0, sizeof(struct jpeg_compress_struct));\n cinfo->err = err;\n cinfo->client_data = client_data;\n }\n cinfo->is_decompressor = FALSE;\n\n \n jinit_memory_mgr((j_common_ptr)cinfo);\n\n \n cinfo->progress = NULL;\n cinfo->dest = NULL;\n\n cinfo->comp_info = NULL;\n\n for (i = 0; i < NUM_QUANT_TBLS; i++) {\n cinfo->quant_tbl_ptrs[i] = NULL;\n#if JPEG_LIB_VERSION >= 70\n cinfo->q_scale_factor[i] = 100;\n#endif\n }\n\n for (i = 0; i < NUM_HUFF_TBLS; i++) {\n cinfo->dc_huff_tbl_ptrs[i] = NULL;\n cinfo->ac_huff_tbl_ptrs[i] = NULL;\n }\n\n#if JPEG_LIB_VERSION >= 80\n \n cinfo->block_size = DCTSIZE;\n cinfo->natural_order = jpeg_natural_order;\n cinfo->lim_Se = DCTSIZE2 - 1;\n#endif\n\n cinfo->script_space = NULL;\n\n cinfo->input_gamma = 1.0; \n\n cinfo->data_precision = BITS_IN_JSAMPLE;\n\n \n cinfo->global_state = CSTATE_START;\n\n \n cinfo->master = (struct jpeg_comp_master *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_comp_master));\n memset(cinfo->master, 0, sizeof(my_comp_master));\n}", "Selected Statement": "cinfo->err = err;", "Function Input": {"cinfo": {"value": "0x7ffff7ffe190"}, "structsize": {"value": "511101108348"}, "version": {"value": "0"}}, "Variable Values Before Statement": {"err": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 21, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_CreateCompress(j_compress_ptr cinfo, int version, size_t structsize)\n{\n int i;\n\n \n cinfo->mem = NULL; \n if (version != JPEG_LIB_VERSION)\n ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);\n if (structsize != sizeof(struct jpeg_compress_struct))\n ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,\n (int)sizeof(struct jpeg_compress_struct), (int)structsize);\n\n \n {\n struct jpeg_error_mgr *err = cinfo->err;\n void *client_data = cinfo->client_data; \n memset(cinfo, 0, sizeof(struct jpeg_compress_struct));\n cinfo->err = err;\n cinfo->client_data = client_data;\n }\n cinfo->is_decompressor = FALSE;\n\n \n jinit_memory_mgr((j_common_ptr)cinfo);\n\n \n cinfo->progress = NULL;\n cinfo->dest = NULL;\n\n cinfo->comp_info = NULL;\n\n for (i = 0; i < NUM_QUANT_TBLS; i++) {\n cinfo->quant_tbl_ptrs[i] = NULL;\n#if JPEG_LIB_VERSION >= 70\n cinfo->q_scale_factor[i] = 100;\n#endif\n }\n\n for (i = 0; i < NUM_HUFF_TBLS; i++) {\n cinfo->dc_huff_tbl_ptrs[i] = NULL;\n cinfo->ac_huff_tbl_ptrs[i] = NULL;\n }\n\n#if JPEG_LIB_VERSION >= 80\n \n cinfo->block_size = DCTSIZE;\n cinfo->natural_order = jpeg_natural_order;\n cinfo->lim_Se = DCTSIZE2 - 1;\n#endif\n\n cinfo->script_space = NULL;\n\n cinfo->input_gamma = 1.0; \n\n cinfo->data_precision = BITS_IN_JSAMPLE;\n\n \n cinfo->global_state = CSTATE_START;\n\n \n cinfo->master = (struct jpeg_comp_master *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_comp_master));\n memset(cinfo->master, 0, sizeof(my_comp_master));\n}", "Selected Statement": "for (i = 0; i < NUM_QUANT_TBLS; i++) {", "Function Input": {"cinfo": {"value": "0x7ffff7ffe190"}, "structsize": {"value": "511101108348"}, "version": {"value": "0"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 35, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_CreateCompress(j_compress_ptr cinfo, int version, size_t structsize)\n{\n int i;\n\n \n cinfo->mem = NULL; \n if (version != JPEG_LIB_VERSION)\n ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);\n if (structsize != sizeof(struct jpeg_compress_struct))\n ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,\n (int)sizeof(struct jpeg_compress_struct), (int)structsize);\n\n \n {\n struct jpeg_error_mgr *err = cinfo->err;\n void *client_data = cinfo->client_data; \n memset(cinfo, 0, sizeof(struct jpeg_compress_struct));\n cinfo->err = err;\n cinfo->client_data = client_data;\n }\n cinfo->is_decompressor = FALSE;\n\n \n jinit_memory_mgr((j_common_ptr)cinfo);\n\n \n cinfo->progress = NULL;\n cinfo->dest = NULL;\n\n cinfo->comp_info = NULL;\n\n for (i = 0; i < NUM_QUANT_TBLS; i++) {\n cinfo->quant_tbl_ptrs[i] = NULL;\n#if JPEG_LIB_VERSION >= 70\n cinfo->q_scale_factor[i] = 100;\n#endif\n }\n\n for (i = 0; i < NUM_HUFF_TBLS; i++) {\n cinfo->dc_huff_tbl_ptrs[i] = NULL;\n cinfo->ac_huff_tbl_ptrs[i] = NULL;\n }\n\n#if JPEG_LIB_VERSION >= 80\n \n cinfo->block_size = DCTSIZE;\n cinfo->natural_order = jpeg_natural_order;\n cinfo->lim_Se = DCTSIZE2 - 1;\n#endif\n\n cinfo->script_space = NULL;\n\n cinfo->input_gamma = 1.0; \n\n cinfo->data_precision = BITS_IN_JSAMPLE;\n\n \n cinfo->global_state = CSTATE_START;\n\n \n cinfo->master = (struct jpeg_comp_master *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_comp_master));\n memset(cinfo->master, 0, sizeof(my_comp_master));\n}", "Selected Statement": "for (i = 0; i < NUM_HUFF_TBLS; i++) {", "Function Input": {"cinfo": {"value": "0x7ffff7ffe190"}, "structsize": {"value": "511101108348"}, "version": {"value": "0"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 42, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.alloc_small = alloc_small;", "Function Input": {}, "Variable Values Before Statement": {"alloc_small": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 38, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.alloc_large = alloc_large;", "Function Input": {}, "Variable Values Before Statement": {"alloc_large": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 39, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.alloc_sarray = alloc_sarray;", "Function Input": {}, "Variable Values Before Statement": {"alloc_sarray": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 40, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.alloc_barray = alloc_barray;", "Function Input": {}, "Variable Values Before Statement": {"alloc_barray": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 41, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.request_virt_sarray = request_virt_sarray;", "Function Input": {}, "Variable Values Before Statement": {"request_virt_sarray": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 42, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.request_virt_barray = request_virt_barray;", "Function Input": {}, "Variable Values Before Statement": {"request_virt_barray": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 43, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.realize_virt_arrays = realize_virt_arrays;", "Function Input": {}, "Variable Values Before Statement": {"realize_virt_arrays": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 44, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.access_virt_sarray = access_virt_sarray;", "Function Input": {}, "Variable Values Before Statement": {"access_virt_sarray": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 45, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.access_virt_barray = access_virt_barray;", "Function Input": {}, "Variable Values Before Statement": {"access_virt_barray": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 46, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.free_pool = free_pool;", "Function Input": {}, "Variable Values Before Statement": {"free_pool": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 47, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {", "Function Input": {}, "Variable Values Before Statement": {"JPOOL_NUMPOOLS": "NULL"}, "Value After Statement Execution": "int", "Block_Size": 56, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_dest_tj(j_compress_ptr cinfo, unsigned char **outbuffer,\n size_t *outsize, boolean alloc)\n{\n boolean reused = FALSE;\n my_mem_dest_ptr dest;\n\n if (outbuffer == NULL || outsize == NULL) \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n\n \n if (cinfo->dest == NULL) { \n cinfo->dest = (struct jpeg_destination_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_mem_destination_mgr));\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->newbuffer = NULL;\n dest->buffer = NULL;\n } else if (cinfo->dest->init_destination != init_mem_destination) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->pub.init_destination = init_mem_destination;\n dest->pub.empty_output_buffer = empty_mem_output_buffer;\n dest->pub.term_destination = term_mem_destination;\n if (dest->buffer == *outbuffer && *outbuffer != NULL && alloc)\n reused = TRUE;\n dest->outbuffer = outbuffer;\n dest->outsize = outsize;\n dest->alloc = alloc;\n\n if (*outbuffer == NULL || *outsize == 0) {\n if (alloc) {\n \n dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE);\n if (dest->newbuffer == NULL)\n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10);\n *outsize = OUTPUT_BUF_SIZE;\n } else\n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest->pub.next_output_byte = dest->buffer = *outbuffer;\n if (!reused)\n dest->bufsize = *outsize;\n dest->pub.free_in_buffer = dest->bufsize;\n}", "Selected Statement": "dest->pub.init_destination = init_mem_destination;", "Function Input": {"cinfo": {"value": "0x110a050"}}, "Variable Values Before Statement": {"init_mem_destination": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 26, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_dest_tj(j_compress_ptr cinfo, unsigned char **outbuffer,\n size_t *outsize, boolean alloc)\n{\n boolean reused = FALSE;\n my_mem_dest_ptr dest;\n\n if (outbuffer == NULL || outsize == NULL) \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n\n \n if (cinfo->dest == NULL) { \n cinfo->dest = (struct jpeg_destination_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_mem_destination_mgr));\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->newbuffer = NULL;\n dest->buffer = NULL;\n } else if (cinfo->dest->init_destination != init_mem_destination) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->pub.init_destination = init_mem_destination;\n dest->pub.empty_output_buffer = empty_mem_output_buffer;\n dest->pub.term_destination = term_mem_destination;\n if (dest->buffer == *outbuffer && *outbuffer != NULL && alloc)\n reused = TRUE;\n dest->outbuffer = outbuffer;\n dest->outsize = outsize;\n dest->alloc = alloc;\n\n if (*outbuffer == NULL || *outsize == 0) {\n if (alloc) {\n \n dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE);\n if (dest->newbuffer == NULL)\n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10);\n *outsize = OUTPUT_BUF_SIZE;\n } else\n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest->pub.next_output_byte = dest->buffer = *outbuffer;\n if (!reused)\n dest->bufsize = *outsize;\n dest->pub.free_in_buffer = dest->bufsize;\n}", "Selected Statement": "dest->pub.empty_output_buffer = empty_mem_output_buffer;", "Function Input": {"cinfo": {"value": "0x110a050"}}, "Variable Values Before Statement": {"empty_mem_output_buffer": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 27, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_dest_tj(j_compress_ptr cinfo, unsigned char **outbuffer,\n size_t *outsize, boolean alloc)\n{\n boolean reused = FALSE;\n my_mem_dest_ptr dest;\n\n if (outbuffer == NULL || outsize == NULL) \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n\n \n if (cinfo->dest == NULL) { \n cinfo->dest = (struct jpeg_destination_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_mem_destination_mgr));\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->newbuffer = NULL;\n dest->buffer = NULL;\n } else if (cinfo->dest->init_destination != init_mem_destination) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->pub.init_destination = init_mem_destination;\n dest->pub.empty_output_buffer = empty_mem_output_buffer;\n dest->pub.term_destination = term_mem_destination;\n if (dest->buffer == *outbuffer && *outbuffer != NULL && alloc)\n reused = TRUE;\n dest->outbuffer = outbuffer;\n dest->outsize = outsize;\n dest->alloc = alloc;\n\n if (*outbuffer == NULL || *outsize == 0) {\n if (alloc) {\n \n dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE);\n if (dest->newbuffer == NULL)\n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10);\n *outsize = OUTPUT_BUF_SIZE;\n } else\n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest->pub.next_output_byte = dest->buffer = *outbuffer;\n if (!reused)\n dest->bufsize = *outsize;\n dest->pub.free_in_buffer = dest->bufsize;\n}", "Selected Statement": "dest->pub.term_destination = term_mem_destination;", "Function Input": {"cinfo": {"value": "0x110a050"}}, "Variable Values Before Statement": {"term_mem_destination": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 28, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_dest_tj(j_compress_ptr cinfo, unsigned char **outbuffer,\n size_t *outsize, boolean alloc)\n{\n boolean reused = FALSE;\n my_mem_dest_ptr dest;\n\n if (outbuffer == NULL || outsize == NULL) \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n\n \n if (cinfo->dest == NULL) { \n cinfo->dest = (struct jpeg_destination_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_mem_destination_mgr));\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->newbuffer = NULL;\n dest->buffer = NULL;\n } else if (cinfo->dest->init_destination != init_mem_destination) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->pub.init_destination = init_mem_destination;\n dest->pub.empty_output_buffer = empty_mem_output_buffer;\n dest->pub.term_destination = term_mem_destination;\n if (dest->buffer == *outbuffer && *outbuffer != NULL && alloc)\n reused = TRUE;\n dest->outbuffer = outbuffer;\n dest->outsize = outsize;\n dest->alloc = alloc;\n\n if (*outbuffer == NULL || *outsize == 0) {\n if (alloc) {\n \n dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE);\n if (dest->newbuffer == NULL)\n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10);\n *outsize = OUTPUT_BUF_SIZE;\n } else\n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest->pub.next_output_byte = dest->buffer = *outbuffer;\n if (!reused)\n dest->bufsize = *outsize;\n dest->pub.free_in_buffer = dest->bufsize;\n}", "Selected Statement": "dest->outbuffer = outbuffer;", "Function Input": {"cinfo": {"value": "0x110a050"}}, "Variable Values Before Statement": {"outbuffer": "<_tjInitCompress.buffer> \"\""}, "Value After Statement Execution": "<_tjInitCompress.buffer> \"\"", "Block_Size": 31, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_dest_tj(j_compress_ptr cinfo, unsigned char **outbuffer,\n size_t *outsize, boolean alloc)\n{\n boolean reused = FALSE;\n my_mem_dest_ptr dest;\n\n if (outbuffer == NULL || outsize == NULL) \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n\n \n if (cinfo->dest == NULL) { \n cinfo->dest = (struct jpeg_destination_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_mem_destination_mgr));\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->newbuffer = NULL;\n dest->buffer = NULL;\n } else if (cinfo->dest->init_destination != init_mem_destination) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->pub.init_destination = init_mem_destination;\n dest->pub.empty_output_buffer = empty_mem_output_buffer;\n dest->pub.term_destination = term_mem_destination;\n if (dest->buffer == *outbuffer && *outbuffer != NULL && alloc)\n reused = TRUE;\n dest->outbuffer = outbuffer;\n dest->outsize = outsize;\n dest->alloc = alloc;\n\n if (*outbuffer == NULL || *outsize == 0) {\n if (alloc) {\n \n dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE);\n if (dest->newbuffer == NULL)\n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10);\n *outsize = OUTPUT_BUF_SIZE;\n } else\n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest->pub.next_output_byte = dest->buffer = *outbuffer;\n if (!reused)\n dest->bufsize = *outsize;\n dest->pub.free_in_buffer = dest->bufsize;\n}", "Selected Statement": "dest->outsize = outsize;", "Function Input": {"cinfo": {"value": "0x110a050"}}, "Variable Values Before Statement": {"outsize": "1"}, "Value After Statement Execution": "1", "Block_Size": 32, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_destroy(j_common_ptr cinfo)\n{\n \n \n if (cinfo->mem != NULL)\n (*cinfo->mem->self_destruct) (cinfo);\n cinfo->mem = NULL; \n cinfo->global_state = 0; \n}", "Selected Statement": "cinfo->global_state = 0; /* mark it destroyed */", "Function Input": {"cinfo": {"value": "0x7ffff7de8807"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 6, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_CreateCompress(j_compress_ptr cinfo, int version, size_t structsize)\n{\n int i;\n\n \n cinfo->mem = NULL; \n if (version != JPEG_LIB_VERSION)\n ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);\n if (structsize != sizeof(struct jpeg_compress_struct))\n ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,\n (int)sizeof(struct jpeg_compress_struct), (int)structsize);\n\n \n {\n struct jpeg_error_mgr *err = cinfo->err;\n void *client_data = cinfo->client_data; \n memset(cinfo, 0, sizeof(struct jpeg_compress_struct));\n cinfo->err = err;\n cinfo->client_data = client_data;\n }\n cinfo->is_decompressor = FALSE;\n\n \n jinit_memory_mgr((j_common_ptr)cinfo);\n\n \n cinfo->progress = NULL;\n cinfo->dest = NULL;\n\n cinfo->comp_info = NULL;\n\n for (i = 0; i < NUM_QUANT_TBLS; i++) {\n cinfo->quant_tbl_ptrs[i] = NULL;\n#if JPEG_LIB_VERSION >= 70\n cinfo->q_scale_factor[i] = 100;\n#endif\n }\n\n for (i = 0; i < NUM_HUFF_TBLS; i++) {\n cinfo->dc_huff_tbl_ptrs[i] = NULL;\n cinfo->ac_huff_tbl_ptrs[i] = NULL;\n }\n\n#if JPEG_LIB_VERSION >= 80\n \n cinfo->block_size = DCTSIZE;\n cinfo->natural_order = jpeg_natural_order;\n cinfo->lim_Se = DCTSIZE2 - 1;\n#endif\n\n cinfo->script_space = NULL;\n\n cinfo->input_gamma = 1.0; \n\n \n cinfo->global_state = CSTATE_START;\n}", "Selected Statement": "cinfo->err = err;", "Function Input": {"cinfo": {"value": "0x7ffff7ffe190"}, "structsize": {"value": "511101108348"}, "version": {"value": "0"}}, "Variable Values Before Statement": {"err": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 21, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_CreateCompress(j_compress_ptr cinfo, int version, size_t structsize)\n{\n int i;\n\n \n cinfo->mem = NULL; \n if (version != JPEG_LIB_VERSION)\n ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);\n if (structsize != sizeof(struct jpeg_compress_struct))\n ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,\n (int)sizeof(struct jpeg_compress_struct), (int)structsize);\n\n \n {\n struct jpeg_error_mgr *err = cinfo->err;\n void *client_data = cinfo->client_data; \n memset(cinfo, 0, sizeof(struct jpeg_compress_struct));\n cinfo->err = err;\n cinfo->client_data = client_data;\n }\n cinfo->is_decompressor = FALSE;\n\n \n jinit_memory_mgr((j_common_ptr)cinfo);\n\n \n cinfo->progress = NULL;\n cinfo->dest = NULL;\n\n cinfo->comp_info = NULL;\n\n for (i = 0; i < NUM_QUANT_TBLS; i++) {\n cinfo->quant_tbl_ptrs[i] = NULL;\n#if JPEG_LIB_VERSION >= 70\n cinfo->q_scale_factor[i] = 100;\n#endif\n }\n\n for (i = 0; i < NUM_HUFF_TBLS; i++) {\n cinfo->dc_huff_tbl_ptrs[i] = NULL;\n cinfo->ac_huff_tbl_ptrs[i] = NULL;\n }\n\n#if JPEG_LIB_VERSION >= 80\n \n cinfo->block_size = DCTSIZE;\n cinfo->natural_order = jpeg_natural_order;\n cinfo->lim_Se = DCTSIZE2 - 1;\n#endif\n\n cinfo->script_space = NULL;\n\n cinfo->input_gamma = 1.0; \n\n \n cinfo->global_state = CSTATE_START;\n}", "Selected Statement": "for (i = 0; i < NUM_QUANT_TBLS; i++) {", "Function Input": {"cinfo": {"value": "0x7ffff7ffe190"}, "structsize": {"value": "511101108348"}, "version": {"value": "0"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 35, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_CreateCompress(j_compress_ptr cinfo, int version, size_t structsize)\n{\n int i;\n\n \n cinfo->mem = NULL; \n if (version != JPEG_LIB_VERSION)\n ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);\n if (structsize != sizeof(struct jpeg_compress_struct))\n ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,\n (int)sizeof(struct jpeg_compress_struct), (int)structsize);\n\n \n {\n struct jpeg_error_mgr *err = cinfo->err;\n void *client_data = cinfo->client_data; \n memset(cinfo, 0, sizeof(struct jpeg_compress_struct));\n cinfo->err = err;\n cinfo->client_data = client_data;\n }\n cinfo->is_decompressor = FALSE;\n\n \n jinit_memory_mgr((j_common_ptr)cinfo);\n\n \n cinfo->progress = NULL;\n cinfo->dest = NULL;\n\n cinfo->comp_info = NULL;\n\n for (i = 0; i < NUM_QUANT_TBLS; i++) {\n cinfo->quant_tbl_ptrs[i] = NULL;\n#if JPEG_LIB_VERSION >= 70\n cinfo->q_scale_factor[i] = 100;\n#endif\n }\n\n for (i = 0; i < NUM_HUFF_TBLS; i++) {\n cinfo->dc_huff_tbl_ptrs[i] = NULL;\n cinfo->ac_huff_tbl_ptrs[i] = NULL;\n }\n\n#if JPEG_LIB_VERSION >= 80\n \n cinfo->block_size = DCTSIZE;\n cinfo->natural_order = jpeg_natural_order;\n cinfo->lim_Se = DCTSIZE2 - 1;\n#endif\n\n cinfo->script_space = NULL;\n\n cinfo->input_gamma = 1.0; \n\n \n cinfo->global_state = CSTATE_START;\n}", "Selected Statement": "for (i = 0; i < NUM_HUFF_TBLS; i++) {", "Function Input": {"cinfo": {"value": "0x7ffff7ffe190"}, "structsize": {"value": "511101108348"}, "version": {"value": "0"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 42, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_CreateCompress(j_compress_ptr cinfo, int version, size_t structsize)\n{\n int i;\n\n \n cinfo->mem = NULL; \n if (version != JPEG_LIB_VERSION)\n ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);\n if (structsize != sizeof(struct jpeg_compress_struct))\n ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,\n (int)sizeof(struct jpeg_compress_struct), (int)structsize);\n\n \n {\n struct jpeg_error_mgr *err = cinfo->err;\n void *client_data = cinfo->client_data; \n memset(cinfo, 0, sizeof(struct jpeg_compress_struct));\n cinfo->err = err;\n cinfo->client_data = client_data;\n }\n cinfo->is_decompressor = FALSE;\n\n \n jinit_memory_mgr((j_common_ptr)cinfo);\n\n \n cinfo->progress = NULL;\n cinfo->dest = NULL;\n\n cinfo->comp_info = NULL;\n\n for (i = 0; i < NUM_QUANT_TBLS; i++) {\n cinfo->quant_tbl_ptrs[i] = NULL;\n#if JPEG_LIB_VERSION >= 70\n cinfo->q_scale_factor[i] = 100;\n#endif\n }\n\n for (i = 0; i < NUM_HUFF_TBLS; i++) {\n cinfo->dc_huff_tbl_ptrs[i] = NULL;\n cinfo->ac_huff_tbl_ptrs[i] = NULL;\n }\n\n#if JPEG_LIB_VERSION >= 80\n \n cinfo->block_size = DCTSIZE;\n cinfo->natural_order = jpeg_natural_order;\n cinfo->lim_Se = DCTSIZE2 - 1;\n#endif\n\n cinfo->script_space = NULL;\n\n cinfo->input_gamma = 1.0; \n\n \n cinfo->global_state = CSTATE_START;\n}", "Selected Statement": "cinfo->global_state = CSTATE_START;", "Function Input": {"cinfo": {"value": "0x7ffff7ffe190"}, "structsize": {"value": "511101108348"}, "version": {"value": "0"}}, "Variable Values Before Statement": {"CSTATE_START": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 59, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.alloc_small = alloc_small;", "Function Input": {}, "Variable Values Before Statement": {"alloc_small": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 38, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.alloc_large = alloc_large;", "Function Input": {}, "Variable Values Before Statement": {"alloc_large": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 39, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.alloc_sarray = alloc_sarray;", "Function Input": {}, "Variable Values Before Statement": {"alloc_sarray": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 40, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.alloc_barray = alloc_barray;", "Function Input": {}, "Variable Values Before Statement": {"alloc_barray": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 41, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.request_virt_sarray = request_virt_sarray;", "Function Input": {}, "Variable Values Before Statement": {"request_virt_sarray": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 42, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.request_virt_barray = request_virt_barray;", "Function Input": {}, "Variable Values Before Statement": {"request_virt_barray": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 43, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.realize_virt_arrays = realize_virt_arrays;", "Function Input": {}, "Variable Values Before Statement": {"realize_virt_arrays": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 44, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.access_virt_sarray = access_virt_sarray;", "Function Input": {}, "Variable Values Before Statement": {"access_virt_sarray": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 45, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.access_virt_barray = access_virt_barray;", "Function Input": {}, "Variable Values Before Statement": {"access_virt_barray": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 46, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "mem->pub.free_pool = free_pool;", "Function Input": {}, "Variable Values Before Statement": {"free_pool": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 47, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_memory_mgr(j_common_ptr cinfo)\n{\n my_mem_ptr mem;\n long max_to_use;\n int pool;\n size_t test_mac;\n\n cinfo->mem = NULL; \n\n \n if ((ALIGN_SIZE & (ALIGN_SIZE - 1)) != 0)\n ERREXIT(cinfo, JERR_BAD_ALIGN_TYPE);\n \n test_mac = (size_t)MAX_ALLOC_CHUNK;\n if ((long)test_mac != MAX_ALLOC_CHUNK ||\n (MAX_ALLOC_CHUNK % ALIGN_SIZE) != 0)\n ERREXIT(cinfo, JERR_BAD_ALLOC_CHUNK);\n\n max_to_use = jpeg_mem_init(cinfo); \n\n \n mem = (my_mem_ptr)jpeg_get_small(cinfo, sizeof(my_memory_mgr));\n\n if (mem == NULL) {\n jpeg_mem_term(cinfo); \n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0);\n }\n\n \n mem->pub.alloc_small = alloc_small;\n mem->pub.alloc_large = alloc_large;\n mem->pub.alloc_sarray = alloc_sarray;\n mem->pub.alloc_barray = alloc_barray;\n mem->pub.request_virt_sarray = request_virt_sarray;\n mem->pub.request_virt_barray = request_virt_barray;\n mem->pub.realize_virt_arrays = realize_virt_arrays;\n mem->pub.access_virt_sarray = access_virt_sarray;\n mem->pub.access_virt_barray = access_virt_barray;\n mem->pub.free_pool = free_pool;\n mem->pub.self_destruct = self_destruct;\n\n \n mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;\n\n \n mem->pub.max_memory_to_use = max_to_use;\n\n for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {\n mem->small_list[pool] = NULL;\n mem->large_list[pool] = NULL;\n }\n mem->virt_sarray_list = NULL;\n mem->virt_barray_list = NULL;\n\n mem->total_space_allocated = sizeof(my_memory_mgr);\n\n \n cinfo->mem = &mem->pub;\n\n \n#ifndef NO_GETENV\n {\n char memenv[30] = { 0 };\n\n if (!GETENV_S(memenv, 30, \"JPEGMEM\") && strlen(memenv) > 0) {\n char ch = 'x';\n\n#ifdef _MSC_VER\n if (sscanf_s(memenv, \"%ld%c\", &max_to_use, &ch, 1) > 0) {\n#else\n if (sscanf(memenv, \"%ld%c\", &max_to_use, &ch) > 0) {\n#endif\n if (ch == 'm' || ch == 'M')\n max_to_use *= 1000L;\n mem->pub.max_memory_to_use = max_to_use * 1000L;\n }\n }\n }\n#endif\n\n}", "Selected Statement": "for (pool = JPOOL_NUMPOOLS - 1; pool >= JPOOL_PERMANENT; pool--) {", "Function Input": {}, "Variable Values Before Statement": {"JPOOL_NUMPOOLS": "NULL"}, "Value After Statement Execution": "int", "Block_Size": 56, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_dest_tj(j_compress_ptr cinfo, unsigned char **outbuffer,\n unsigned long *outsize, boolean alloc)\n{\n boolean reused = FALSE;\n my_mem_dest_ptr dest;\n\n if (outbuffer == NULL || outsize == NULL) \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n\n \n if (cinfo->dest == NULL) { \n cinfo->dest = (struct jpeg_destination_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_mem_destination_mgr));\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->newbuffer = NULL;\n dest->buffer = NULL;\n } else if (cinfo->dest->init_destination != init_mem_destination) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->pub.init_destination = init_mem_destination;\n dest->pub.empty_output_buffer = empty_mem_output_buffer;\n dest->pub.term_destination = term_mem_destination;\n if (dest->buffer == *outbuffer && *outbuffer != NULL && alloc)\n reused = TRUE;\n dest->outbuffer = outbuffer;\n dest->outsize = outsize;\n dest->alloc = alloc;\n\n if (*outbuffer == NULL || *outsize == 0) {\n if (alloc) {\n \n dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE);\n if (dest->newbuffer == NULL)\n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10);\n *outsize = OUTPUT_BUF_SIZE;\n } else\n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest->pub.next_output_byte = dest->buffer = *outbuffer;\n if (!reused)\n dest->bufsize = *outsize;\n dest->pub.free_in_buffer = dest->bufsize;\n}", "Selected Statement": "dest->pub.init_destination = init_mem_destination;", "Function Input": {"cinfo": {"value": "0x106b020"}}, "Variable Values Before Statement": {"init_mem_destination": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 26, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_dest_tj(j_compress_ptr cinfo, unsigned char **outbuffer,\n unsigned long *outsize, boolean alloc)\n{\n boolean reused = FALSE;\n my_mem_dest_ptr dest;\n\n if (outbuffer == NULL || outsize == NULL) \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n\n \n if (cinfo->dest == NULL) { \n cinfo->dest = (struct jpeg_destination_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_mem_destination_mgr));\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->newbuffer = NULL;\n dest->buffer = NULL;\n } else if (cinfo->dest->init_destination != init_mem_destination) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->pub.init_destination = init_mem_destination;\n dest->pub.empty_output_buffer = empty_mem_output_buffer;\n dest->pub.term_destination = term_mem_destination;\n if (dest->buffer == *outbuffer && *outbuffer != NULL && alloc)\n reused = TRUE;\n dest->outbuffer = outbuffer;\n dest->outsize = outsize;\n dest->alloc = alloc;\n\n if (*outbuffer == NULL || *outsize == 0) {\n if (alloc) {\n \n dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE);\n if (dest->newbuffer == NULL)\n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10);\n *outsize = OUTPUT_BUF_SIZE;\n } else\n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest->pub.next_output_byte = dest->buffer = *outbuffer;\n if (!reused)\n dest->bufsize = *outsize;\n dest->pub.free_in_buffer = dest->bufsize;\n}", "Selected Statement": "dest->pub.empty_output_buffer = empty_mem_output_buffer;", "Function Input": {"cinfo": {"value": "0x106b020"}}, "Variable Values Before Statement": {"empty_mem_output_buffer": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 27, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_dest_tj(j_compress_ptr cinfo, unsigned char **outbuffer,\n unsigned long *outsize, boolean alloc)\n{\n boolean reused = FALSE;\n my_mem_dest_ptr dest;\n\n if (outbuffer == NULL || outsize == NULL) \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n\n \n if (cinfo->dest == NULL) { \n cinfo->dest = (struct jpeg_destination_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_mem_destination_mgr));\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->newbuffer = NULL;\n dest->buffer = NULL;\n } else if (cinfo->dest->init_destination != init_mem_destination) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->pub.init_destination = init_mem_destination;\n dest->pub.empty_output_buffer = empty_mem_output_buffer;\n dest->pub.term_destination = term_mem_destination;\n if (dest->buffer == *outbuffer && *outbuffer != NULL && alloc)\n reused = TRUE;\n dest->outbuffer = outbuffer;\n dest->outsize = outsize;\n dest->alloc = alloc;\n\n if (*outbuffer == NULL || *outsize == 0) {\n if (alloc) {\n \n dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE);\n if (dest->newbuffer == NULL)\n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10);\n *outsize = OUTPUT_BUF_SIZE;\n } else\n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest->pub.next_output_byte = dest->buffer = *outbuffer;\n if (!reused)\n dest->bufsize = *outsize;\n dest->pub.free_in_buffer = dest->bufsize;\n}", "Selected Statement": "dest->pub.term_destination = term_mem_destination;", "Function Input": {"cinfo": {"value": "0x106b020"}}, "Variable Values Before Statement": {"term_mem_destination": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 28, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_dest_tj(j_compress_ptr cinfo, unsigned char **outbuffer,\n unsigned long *outsize, boolean alloc)\n{\n boolean reused = FALSE;\n my_mem_dest_ptr dest;\n\n if (outbuffer == NULL || outsize == NULL) \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n\n \n if (cinfo->dest == NULL) { \n cinfo->dest = (struct jpeg_destination_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_mem_destination_mgr));\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->newbuffer = NULL;\n dest->buffer = NULL;\n } else if (cinfo->dest->init_destination != init_mem_destination) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->pub.init_destination = init_mem_destination;\n dest->pub.empty_output_buffer = empty_mem_output_buffer;\n dest->pub.term_destination = term_mem_destination;\n if (dest->buffer == *outbuffer && *outbuffer != NULL && alloc)\n reused = TRUE;\n dest->outbuffer = outbuffer;\n dest->outsize = outsize;\n dest->alloc = alloc;\n\n if (*outbuffer == NULL || *outsize == 0) {\n if (alloc) {\n \n dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE);\n if (dest->newbuffer == NULL)\n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10);\n *outsize = OUTPUT_BUF_SIZE;\n } else\n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest->pub.next_output_byte = dest->buffer = *outbuffer;\n if (!reused)\n dest->bufsize = *outsize;\n dest->pub.free_in_buffer = dest->bufsize;\n}", "Selected Statement": "dest->outbuffer = outbuffer;", "Function Input": {"cinfo": {"value": "0x106b020"}}, "Variable Values Before Statement": {"outbuffer": "<_tjInitCompress.buffer> \"\""}, "Value After Statement Execution": "<_tjInitCompress.buffer> \"\"", "Block_Size": 31, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_dest_tj(j_compress_ptr cinfo, unsigned char **outbuffer,\n unsigned long *outsize, boolean alloc)\n{\n boolean reused = FALSE;\n my_mem_dest_ptr dest;\n\n if (outbuffer == NULL || outsize == NULL) \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n\n \n if (cinfo->dest == NULL) { \n cinfo->dest = (struct jpeg_destination_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_mem_destination_mgr));\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->newbuffer = NULL;\n dest->buffer = NULL;\n } else if (cinfo->dest->init_destination != init_mem_destination) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest = (my_mem_dest_ptr)cinfo->dest;\n dest->pub.init_destination = init_mem_destination;\n dest->pub.empty_output_buffer = empty_mem_output_buffer;\n dest->pub.term_destination = term_mem_destination;\n if (dest->buffer == *outbuffer && *outbuffer != NULL && alloc)\n reused = TRUE;\n dest->outbuffer = outbuffer;\n dest->outsize = outsize;\n dest->alloc = alloc;\n\n if (*outbuffer == NULL || *outsize == 0) {\n if (alloc) {\n \n dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE);\n if (dest->newbuffer == NULL)\n ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10);\n *outsize = OUTPUT_BUF_SIZE;\n } else\n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n dest->pub.next_output_byte = dest->buffer = *outbuffer;\n if (!reused)\n dest->bufsize = *outsize;\n dest->pub.free_in_buffer = dest->bufsize;\n}", "Selected Statement": "dest->outsize = outsize;", "Function Input": {"cinfo": {"value": "0x106b020"}}, "Variable Values Before Statement": {"outsize": "1"}, "Value After Statement Execution": "1", "Block_Size": 32, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision == 12 && !cinfo->arith_code)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "for (i = 0; i < NUM_ARITH_TBLS; i++) {", "Function Input": {"cinfo": {"value": "0x7fffffffcc08"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 28, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision == 12 && !cinfo->arith_code)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->arith_dc_L[i] = 0;", "Function Input": {"cinfo": {"value": "0x7fffffffcc08"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 29, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision == 12 && !cinfo->arith_code)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->arith_dc_U[i] = 1;", "Function Input": {"cinfo": {"value": "0x7fffffffcc08"}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 30, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision == 12 && !cinfo->arith_code)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->restart_interval = 0;", "Function Input": {"cinfo": {"value": "0x7fffffffcc08"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 69, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision == 12 && !cinfo->arith_code)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->JFIF_major_version = 1; /* Default JFIF version = 1.01 */", "Function Input": {"cinfo": {"value": "0x7fffffffcc08"}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 81, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision == 12 && !cinfo->arith_code)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->JFIF_minor_version = 1;", "Function Input": {"cinfo": {"value": "0x7fffffffcc08"}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 82, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision == 12 && !cinfo->arith_code)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->density_unit = 0; /* Pixel size is unknown by default */", "Function Input": {"cinfo": {"value": "0x7fffffffcc08"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 83, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision == 12 && !cinfo->arith_code)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->X_density = 1; /* Pixel aspect ratio is square by default */", "Function Input": {"cinfo": {"value": "0x7fffffffcc08"}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 84, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(boolean)\nkeymatch(char *arg, const char *keyword, int minchars)\n{\n register int ca, ck;\n register int nmatched = 0;\n\n while ((ca = *arg++) != '\\0') {\n if ((ck = *keyword++) == '\\0')\n return FALSE; \n if (isupper(ca)) \n ca = tolower(ca);\n if (ca != ck)\n return FALSE; \n nmatched++; \n }\n \n if (nmatched < minchars)\n return FALSE;\n return TRUE; \n}", "Selected Statement": "ca = tolower(ca);", "Function Input": {}, "Variable Values Before Statement": {"ca": "int"}, "Value After Statement Execution": "int", "Function Name": "tolower", "Block_Size": 8, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize)\n{\n int i;\n\n \n cinfo->mem = NULL; \n if (version != JPEG_LIB_VERSION)\n ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);\n if (structsize != sizeof(struct jpeg_decompress_struct))\n ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,\n (int)sizeof(struct jpeg_decompress_struct), (int)structsize);\n\n \n {\n struct jpeg_error_mgr *err = cinfo->err;\n void *client_data = cinfo->client_data; \n memset(cinfo, 0, sizeof(struct jpeg_decompress_struct));\n cinfo->err = err;\n cinfo->client_data = client_data;\n }\n cinfo->is_decompressor = TRUE;\n\n \n jinit_memory_mgr((j_common_ptr)cinfo);\n\n \n cinfo->progress = NULL;\n cinfo->src = NULL;\n\n for (i = 0; i < NUM_QUANT_TBLS; i++)\n cinfo->quant_tbl_ptrs[i] = NULL;\n\n for (i = 0; i < NUM_HUFF_TBLS; i++) {\n cinfo->dc_huff_tbl_ptrs[i] = NULL;\n cinfo->ac_huff_tbl_ptrs[i] = NULL;\n }\n\n \n cinfo->marker_list = NULL;\n jinit_marker_reader(cinfo);\n\n \n jinit_input_controller(cinfo);\n\n \n cinfo->global_state = DSTATE_START;\n\n \n cinfo->master = (struct jpeg_decomp_master *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_decomp_master));\n memset(cinfo->master, 0, sizeof(my_decomp_master));\n}", "Selected Statement": "cinfo->err = err;", "Function Input": {"cinfo": {"value": "0x7ffff7ffe190"}, "structsize": {"value": "3"}, "version": {"value": "0"}}, "Variable Values Before Statement": {"err": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 21, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize)\n{\n int i;\n\n \n cinfo->mem = NULL; \n if (version != JPEG_LIB_VERSION)\n ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);\n if (structsize != sizeof(struct jpeg_decompress_struct))\n ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,\n (int)sizeof(struct jpeg_decompress_struct), (int)structsize);\n\n \n {\n struct jpeg_error_mgr *err = cinfo->err;\n void *client_data = cinfo->client_data; \n memset(cinfo, 0, sizeof(struct jpeg_decompress_struct));\n cinfo->err = err;\n cinfo->client_data = client_data;\n }\n cinfo->is_decompressor = TRUE;\n\n \n jinit_memory_mgr((j_common_ptr)cinfo);\n\n \n cinfo->progress = NULL;\n cinfo->src = NULL;\n\n for (i = 0; i < NUM_QUANT_TBLS; i++)\n cinfo->quant_tbl_ptrs[i] = NULL;\n\n for (i = 0; i < NUM_HUFF_TBLS; i++) {\n cinfo->dc_huff_tbl_ptrs[i] = NULL;\n cinfo->ac_huff_tbl_ptrs[i] = NULL;\n }\n\n \n cinfo->marker_list = NULL;\n jinit_marker_reader(cinfo);\n\n \n jinit_input_controller(cinfo);\n\n \n cinfo->global_state = DSTATE_START;\n\n \n cinfo->master = (struct jpeg_decomp_master *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_decomp_master));\n memset(cinfo->master, 0, sizeof(my_decomp_master));\n}", "Selected Statement": "for (i = 0; i < NUM_QUANT_TBLS; i++)", "Function Input": {"cinfo": {"value": "0x7ffff7ffe190"}, "structsize": {"value": "3"}, "version": {"value": "0"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 33, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize)\n{\n int i;\n\n \n cinfo->mem = NULL; \n if (version != JPEG_LIB_VERSION)\n ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);\n if (structsize != sizeof(struct jpeg_decompress_struct))\n ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,\n (int)sizeof(struct jpeg_decompress_struct), (int)structsize);\n\n \n {\n struct jpeg_error_mgr *err = cinfo->err;\n void *client_data = cinfo->client_data; \n memset(cinfo, 0, sizeof(struct jpeg_decompress_struct));\n cinfo->err = err;\n cinfo->client_data = client_data;\n }\n cinfo->is_decompressor = TRUE;\n\n \n jinit_memory_mgr((j_common_ptr)cinfo);\n\n \n cinfo->progress = NULL;\n cinfo->src = NULL;\n\n for (i = 0; i < NUM_QUANT_TBLS; i++)\n cinfo->quant_tbl_ptrs[i] = NULL;\n\n for (i = 0; i < NUM_HUFF_TBLS; i++) {\n cinfo->dc_huff_tbl_ptrs[i] = NULL;\n cinfo->ac_huff_tbl_ptrs[i] = NULL;\n }\n\n \n cinfo->marker_list = NULL;\n jinit_marker_reader(cinfo);\n\n \n jinit_input_controller(cinfo);\n\n \n cinfo->global_state = DSTATE_START;\n\n \n cinfo->master = (struct jpeg_decomp_master *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_decomp_master));\n memset(cinfo->master, 0, sizeof(my_decomp_master));\n}", "Selected Statement": "for (i = 0; i < NUM_HUFF_TBLS; i++) {", "Function Input": {"cinfo": {"value": "0x7ffff7ffe190"}, "structsize": {"value": "3"}, "version": {"value": "0"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 36, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "marker->pub.reset_marker_reader = reset_marker_reader;", "Function Input": {"cinfo": {"value": "0xffffdfd7"}}, "Variable Values Before Statement": {"reset_marker_reader": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 10, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "marker->pub.read_markers = read_markers;", "Function Input": {"cinfo": {"value": "0xffffdfd7"}}, "Variable Values Before Statement": {"read_markers": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 11, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "marker->process_COM = skip_variable;", "Function Input": {"cinfo": {"value": "0xffffdfd7"}}, "Variable Values Before Statement": {"skip_variable": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 17, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "marker->length_limit_COM = 0;", "Function Input": {"cinfo": {"value": "0xffffdfd7"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 18, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "for (i = 0; i < 16; i++) {", "Function Input": {"cinfo": {"value": "0xffffdfd7"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 19, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "marker->process_APPn[i] = skip_variable;", "Function Input": {"cinfo": {"value": "0xffffdfd7"}}, "Variable Values Before Statement": {"skip_variable": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 20, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "marker->process_APPn[0] = get_interesting_appn;", "Function Input": {"cinfo": {"value": "0xffffdfd7"}}, "Variable Values Before Statement": {"get_interesting_appn": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 23, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_input_controller(j_decompress_ptr cinfo)\n{\n my_inputctl_ptr inputctl;\n\n \n inputctl = (my_inputctl_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_input_controller));\n cinfo->inputctl = (struct jpeg_input_controller *)inputctl;\n \n inputctl->pub.consume_input = consume_markers;\n inputctl->pub.reset_input_controller = reset_input_controller;\n inputctl->pub.start_input_pass = start_input_pass;\n inputctl->pub.finish_input_pass = finish_input_pass;\n \n inputctl->pub.has_multiple_scans = FALSE; \n inputctl->pub.eoi_reached = FALSE;\n inputctl->inheaders = TRUE;\n}", "Selected Statement": "inputctl->pub.consume_input = consume_markers;", "Function Input": {"cinfo": {"value": "0x106b2a8"}}, "Variable Values Before Statement": {"consume_markers": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 9, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_input_controller(j_decompress_ptr cinfo)\n{\n my_inputctl_ptr inputctl;\n\n \n inputctl = (my_inputctl_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_input_controller));\n cinfo->inputctl = (struct jpeg_input_controller *)inputctl;\n \n inputctl->pub.consume_input = consume_markers;\n inputctl->pub.reset_input_controller = reset_input_controller;\n inputctl->pub.start_input_pass = start_input_pass;\n inputctl->pub.finish_input_pass = finish_input_pass;\n \n inputctl->pub.has_multiple_scans = FALSE; \n inputctl->pub.eoi_reached = FALSE;\n inputctl->inheaders = TRUE;\n}", "Selected Statement": "inputctl->pub.reset_input_controller = reset_input_controller;", "Function Input": {"cinfo": {"value": "0x106b2a8"}}, "Variable Values Before Statement": {"reset_input_controller": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 10, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_input_controller(j_decompress_ptr cinfo)\n{\n my_inputctl_ptr inputctl;\n\n \n inputctl = (my_inputctl_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_input_controller));\n cinfo->inputctl = (struct jpeg_input_controller *)inputctl;\n \n inputctl->pub.consume_input = consume_markers;\n inputctl->pub.reset_input_controller = reset_input_controller;\n inputctl->pub.start_input_pass = start_input_pass;\n inputctl->pub.finish_input_pass = finish_input_pass;\n \n inputctl->pub.has_multiple_scans = FALSE; \n inputctl->pub.eoi_reached = FALSE;\n inputctl->inheaders = TRUE;\n}", "Selected Statement": "inputctl->pub.start_input_pass = start_input_pass;", "Function Input": {"cinfo": {"value": "0x106b2a8"}}, "Variable Values Before Statement": {"start_input_pass": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 11, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_src_tj(j_decompress_ptr cinfo, const unsigned char *inbuffer,\n unsigned long insize)\n{\n struct jpeg_source_mgr *src;\n\n if (inbuffer == NULL || insize == 0) \n ERREXIT(cinfo, JERR_INPUT_EMPTY);\n\n \n if (cinfo->src == NULL) { \n cinfo->src = (struct jpeg_source_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(struct jpeg_source_mgr));\n } else if (cinfo->src->init_source != init_mem_source) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n src = cinfo->src;\n src->init_source = init_mem_source;\n src->fill_input_buffer = fill_mem_input_buffer;\n src->skip_input_data = skip_input_data;\n src->resync_to_restart = jpeg_resync_to_restart; \n src->term_source = term_source;\n src->bytes_in_buffer = (size_t)insize;\n src->next_input_byte = (const JOCTET *)inbuffer;\n}", "Selected Statement": "src->init_source = init_mem_source;", "Function Input": {"cinfo": {"value": "0x106b2a8"}}, "Variable Values Before Statement": {"init_mem_source": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 23, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_src_tj(j_decompress_ptr cinfo, const unsigned char *inbuffer,\n unsigned long insize)\n{\n struct jpeg_source_mgr *src;\n\n if (inbuffer == NULL || insize == 0) \n ERREXIT(cinfo, JERR_INPUT_EMPTY);\n\n \n if (cinfo->src == NULL) { \n cinfo->src = (struct jpeg_source_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(struct jpeg_source_mgr));\n } else if (cinfo->src->init_source != init_mem_source) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n src = cinfo->src;\n src->init_source = init_mem_source;\n src->fill_input_buffer = fill_mem_input_buffer;\n src->skip_input_data = skip_input_data;\n src->resync_to_restart = jpeg_resync_to_restart; \n src->term_source = term_source;\n src->bytes_in_buffer = (size_t)insize;\n src->next_input_byte = (const JOCTET *)inbuffer;\n}", "Selected Statement": "src->fill_input_buffer = fill_mem_input_buffer;", "Function Input": {"cinfo": {"value": "0x106b2a8"}}, "Variable Values Before Statement": {"fill_mem_input_buffer": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 24, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_src_tj(j_decompress_ptr cinfo, const unsigned char *inbuffer,\n unsigned long insize)\n{\n struct jpeg_source_mgr *src;\n\n if (inbuffer == NULL || insize == 0) \n ERREXIT(cinfo, JERR_INPUT_EMPTY);\n\n \n if (cinfo->src == NULL) { \n cinfo->src = (struct jpeg_source_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(struct jpeg_source_mgr));\n } else if (cinfo->src->init_source != init_mem_source) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n src = cinfo->src;\n src->init_source = init_mem_source;\n src->fill_input_buffer = fill_mem_input_buffer;\n src->skip_input_data = skip_input_data;\n src->resync_to_restart = jpeg_resync_to_restart; \n src->term_source = term_source;\n src->bytes_in_buffer = (size_t)insize;\n src->next_input_byte = (const JOCTET *)inbuffer;\n}", "Selected Statement": "src->skip_input_data = skip_input_data;", "Function Input": {"cinfo": {"value": "0x106b2a8"}}, "Variable Values Before Statement": {"skip_input_data": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 25, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_src_tj(j_decompress_ptr cinfo, const unsigned char *inbuffer,\n unsigned long insize)\n{\n struct jpeg_source_mgr *src;\n\n if (inbuffer == NULL || insize == 0) \n ERREXIT(cinfo, JERR_INPUT_EMPTY);\n\n \n if (cinfo->src == NULL) { \n cinfo->src = (struct jpeg_source_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(struct jpeg_source_mgr));\n } else if (cinfo->src->init_source != init_mem_source) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n src = cinfo->src;\n src->init_source = init_mem_source;\n src->fill_input_buffer = fill_mem_input_buffer;\n src->skip_input_data = skip_input_data;\n src->resync_to_restart = jpeg_resync_to_restart; \n src->term_source = term_source;\n src->bytes_in_buffer = (size_t)insize;\n src->next_input_byte = (const JOCTET *)inbuffer;\n}", "Selected Statement": "src->resync_to_restart = jpeg_resync_to_restart; /* use default method */", "Function Input": {"cinfo": {"value": "0x106b2a8"}}, "Variable Values Before Statement": {"jpeg_resync_to_restart": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 26, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_src_tj(j_decompress_ptr cinfo, const unsigned char *inbuffer,\n unsigned long insize)\n{\n struct jpeg_source_mgr *src;\n\n if (inbuffer == NULL || insize == 0) \n ERREXIT(cinfo, JERR_INPUT_EMPTY);\n\n \n if (cinfo->src == NULL) { \n cinfo->src = (struct jpeg_source_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(struct jpeg_source_mgr));\n } else if (cinfo->src->init_source != init_mem_source) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n src = cinfo->src;\n src->init_source = init_mem_source;\n src->fill_input_buffer = fill_mem_input_buffer;\n src->skip_input_data = skip_input_data;\n src->resync_to_restart = jpeg_resync_to_restart; \n src->term_source = term_source;\n src->bytes_in_buffer = (size_t)insize;\n src->next_input_byte = (const JOCTET *)inbuffer;\n}", "Selected Statement": "src->term_source = term_source;", "Function Input": {"cinfo": {"value": "0x106b2a8"}}, "Variable Values Before Statement": {"term_source": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 27, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize)\n{\n int i;\n\n \n cinfo->mem = NULL; \n if (version != JPEG_LIB_VERSION)\n ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);\n if (structsize != sizeof(struct jpeg_decompress_struct))\n ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,\n (int)sizeof(struct jpeg_decompress_struct), (int)structsize);\n\n \n {\n struct jpeg_error_mgr *err = cinfo->err;\n void *client_data = cinfo->client_data; \n memset(cinfo, 0, sizeof(struct jpeg_decompress_struct));\n cinfo->err = err;\n cinfo->client_data = client_data;\n }\n cinfo->is_decompressor = TRUE;\n\n \n jinit_memory_mgr((j_common_ptr)cinfo);\n\n \n cinfo->progress = NULL;\n cinfo->src = NULL;\n\n for (i = 0; i < NUM_QUANT_TBLS; i++)\n cinfo->quant_tbl_ptrs[i] = NULL;\n\n for (i = 0; i < NUM_HUFF_TBLS; i++) {\n cinfo->dc_huff_tbl_ptrs[i] = NULL;\n cinfo->ac_huff_tbl_ptrs[i] = NULL;\n }\n\n \n cinfo->marker_list = NULL;\n jinit_marker_reader(cinfo);\n\n \n jinit_input_controller(cinfo);\n\n cinfo->data_precision = BITS_IN_JSAMPLE;\n\n \n cinfo->global_state = DSTATE_START;\n\n \n cinfo->master = (struct jpeg_decomp_master *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_decomp_master));\n memset(cinfo->master, 0, sizeof(my_decomp_master));\n}", "Selected Statement": "cinfo->err = err;", "Function Input": {"cinfo": {"value": "0x7ffff7ffe190"}, "structsize": {"value": "0"}, "version": {"value": "0"}}, "Variable Values Before Statement": {"err": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 21, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize)\n{\n int i;\n\n \n cinfo->mem = NULL; \n if (version != JPEG_LIB_VERSION)\n ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);\n if (structsize != sizeof(struct jpeg_decompress_struct))\n ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,\n (int)sizeof(struct jpeg_decompress_struct), (int)structsize);\n\n \n {\n struct jpeg_error_mgr *err = cinfo->err;\n void *client_data = cinfo->client_data; \n memset(cinfo, 0, sizeof(struct jpeg_decompress_struct));\n cinfo->err = err;\n cinfo->client_data = client_data;\n }\n cinfo->is_decompressor = TRUE;\n\n \n jinit_memory_mgr((j_common_ptr)cinfo);\n\n \n cinfo->progress = NULL;\n cinfo->src = NULL;\n\n for (i = 0; i < NUM_QUANT_TBLS; i++)\n cinfo->quant_tbl_ptrs[i] = NULL;\n\n for (i = 0; i < NUM_HUFF_TBLS; i++) {\n cinfo->dc_huff_tbl_ptrs[i] = NULL;\n cinfo->ac_huff_tbl_ptrs[i] = NULL;\n }\n\n \n cinfo->marker_list = NULL;\n jinit_marker_reader(cinfo);\n\n \n jinit_input_controller(cinfo);\n\n cinfo->data_precision = BITS_IN_JSAMPLE;\n\n \n cinfo->global_state = DSTATE_START;\n\n \n cinfo->master = (struct jpeg_decomp_master *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_decomp_master));\n memset(cinfo->master, 0, sizeof(my_decomp_master));\n}", "Selected Statement": "for (i = 0; i < NUM_QUANT_TBLS; i++)", "Function Input": {"cinfo": {"value": "0x7ffff7ffe190"}, "structsize": {"value": "0"}, "version": {"value": "0"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 33, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize)\n{\n int i;\n\n \n cinfo->mem = NULL; \n if (version != JPEG_LIB_VERSION)\n ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);\n if (structsize != sizeof(struct jpeg_decompress_struct))\n ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,\n (int)sizeof(struct jpeg_decompress_struct), (int)structsize);\n\n \n {\n struct jpeg_error_mgr *err = cinfo->err;\n void *client_data = cinfo->client_data; \n memset(cinfo, 0, sizeof(struct jpeg_decompress_struct));\n cinfo->err = err;\n cinfo->client_data = client_data;\n }\n cinfo->is_decompressor = TRUE;\n\n \n jinit_memory_mgr((j_common_ptr)cinfo);\n\n \n cinfo->progress = NULL;\n cinfo->src = NULL;\n\n for (i = 0; i < NUM_QUANT_TBLS; i++)\n cinfo->quant_tbl_ptrs[i] = NULL;\n\n for (i = 0; i < NUM_HUFF_TBLS; i++) {\n cinfo->dc_huff_tbl_ptrs[i] = NULL;\n cinfo->ac_huff_tbl_ptrs[i] = NULL;\n }\n\n \n cinfo->marker_list = NULL;\n jinit_marker_reader(cinfo);\n\n \n jinit_input_controller(cinfo);\n\n cinfo->data_precision = BITS_IN_JSAMPLE;\n\n \n cinfo->global_state = DSTATE_START;\n\n \n cinfo->master = (struct jpeg_decomp_master *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_decomp_master));\n memset(cinfo->master, 0, sizeof(my_decomp_master));\n}", "Selected Statement": "for (i = 0; i < NUM_HUFF_TBLS; i++) {", "Function Input": {"cinfo": {"value": "0x7ffff7ffe190"}, "structsize": {"value": "0"}, "version": {"value": "0"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 36, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "marker->pub.reset_marker_reader = reset_marker_reader;", "Function Input": {"cinfo": {"value": "0xffffdfe7"}}, "Variable Values Before Statement": {"reset_marker_reader": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 10, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "marker->pub.read_markers = read_markers;", "Function Input": {"cinfo": {"value": "0xffffdfe7"}}, "Variable Values Before Statement": {"read_markers": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 11, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "marker->process_COM = skip_variable;", "Function Input": {"cinfo": {"value": "0xffffdfe7"}}, "Variable Values Before Statement": {"skip_variable": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 17, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "marker->length_limit_COM = 0;", "Function Input": {"cinfo": {"value": "0xffffdfe7"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 18, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "for (i = 0; i < 16; i++) {", "Function Input": {"cinfo": {"value": "0xffffdfe7"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 19, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "marker->process_APPn[i] = skip_variable;", "Function Input": {"cinfo": {"value": "0xffffdfe7"}}, "Variable Values Before Statement": {"skip_variable": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 20, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_marker_reader(j_decompress_ptr cinfo)\n{\n my_marker_ptr marker;\n int i;\n\n \n marker = (my_marker_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_marker_reader));\n cinfo->marker = (struct jpeg_marker_reader *)marker;\n \n marker->pub.reset_marker_reader = reset_marker_reader;\n marker->pub.read_markers = read_markers;\n marker->pub.read_restart_marker = read_restart_marker;\n \n marker->process_COM = skip_variable;\n marker->length_limit_COM = 0;\n for (i = 0; i < 16; i++) {\n marker->process_APPn[i] = skip_variable;\n marker->length_limit_APPn[i] = 0;\n }\n marker->process_APPn[0] = get_interesting_appn;\n marker->process_APPn[14] = get_interesting_appn;\n \n reset_marker_reader(cinfo);\n}", "Selected Statement": "marker->process_APPn[0] = get_interesting_appn;", "Function Input": {"cinfo": {"value": "0xffffdfe7"}}, "Variable Values Before Statement": {"get_interesting_appn": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 23, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_input_controller(j_decompress_ptr cinfo)\n{\n my_inputctl_ptr inputctl;\n\n \n inputctl = (my_inputctl_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_input_controller));\n cinfo->inputctl = (struct jpeg_input_controller *)inputctl;\n \n inputctl->pub.consume_input = consume_markers;\n inputctl->pub.reset_input_controller = reset_input_controller;\n inputctl->pub.start_input_pass = start_input_pass;\n inputctl->pub.finish_input_pass = finish_input_pass;\n \n inputctl->pub.has_multiple_scans = FALSE; \n inputctl->pub.eoi_reached = FALSE;\n inputctl->inheaders = TRUE;\n}", "Selected Statement": "inputctl->pub.consume_input = consume_markers;", "Function Input": {"cinfo": {"value": "0x110a298"}}, "Variable Values Before Statement": {"consume_markers": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 9, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_input_controller(j_decompress_ptr cinfo)\n{\n my_inputctl_ptr inputctl;\n\n \n inputctl = (my_inputctl_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_input_controller));\n cinfo->inputctl = (struct jpeg_input_controller *)inputctl;\n \n inputctl->pub.consume_input = consume_markers;\n inputctl->pub.reset_input_controller = reset_input_controller;\n inputctl->pub.start_input_pass = start_input_pass;\n inputctl->pub.finish_input_pass = finish_input_pass;\n \n inputctl->pub.has_multiple_scans = FALSE; \n inputctl->pub.eoi_reached = FALSE;\n inputctl->inheaders = TRUE;\n}", "Selected Statement": "inputctl->pub.reset_input_controller = reset_input_controller;", "Function Input": {"cinfo": {"value": "0x110a298"}}, "Variable Values Before Statement": {"reset_input_controller": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 10, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njinit_input_controller(j_decompress_ptr cinfo)\n{\n my_inputctl_ptr inputctl;\n\n \n inputctl = (my_inputctl_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(my_input_controller));\n cinfo->inputctl = (struct jpeg_input_controller *)inputctl;\n \n inputctl->pub.consume_input = consume_markers;\n inputctl->pub.reset_input_controller = reset_input_controller;\n inputctl->pub.start_input_pass = start_input_pass;\n inputctl->pub.finish_input_pass = finish_input_pass;\n \n inputctl->pub.has_multiple_scans = FALSE; \n inputctl->pub.eoi_reached = FALSE;\n inputctl->inheaders = TRUE;\n}", "Selected Statement": "inputctl->pub.start_input_pass = start_input_pass;", "Function Input": {"cinfo": {"value": "0x110a298"}}, "Variable Values Before Statement": {"start_input_pass": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 11, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_src_tj(j_decompress_ptr cinfo, const unsigned char *inbuffer,\n size_t insize)\n{\n struct jpeg_source_mgr *src;\n\n if (inbuffer == NULL || insize == 0) \n ERREXIT(cinfo, JERR_INPUT_EMPTY);\n\n \n if (cinfo->src == NULL) { \n cinfo->src = (struct jpeg_source_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(struct jpeg_source_mgr));\n } else if (cinfo->src->init_source != init_mem_source) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n src = cinfo->src;\n src->init_source = init_mem_source;\n src->fill_input_buffer = fill_mem_input_buffer;\n src->skip_input_data = skip_input_data;\n src->resync_to_restart = jpeg_resync_to_restart; \n src->term_source = term_source;\n src->bytes_in_buffer = insize;\n src->next_input_byte = (const JOCTET *)inbuffer;\n}", "Selected Statement": "src->init_source = init_mem_source;", "Function Input": {"cinfo": {"value": "0x110a298"}}, "Variable Values Before Statement": {"init_mem_source": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 23, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_src_tj(j_decompress_ptr cinfo, const unsigned char *inbuffer,\n size_t insize)\n{\n struct jpeg_source_mgr *src;\n\n if (inbuffer == NULL || insize == 0) \n ERREXIT(cinfo, JERR_INPUT_EMPTY);\n\n \n if (cinfo->src == NULL) { \n cinfo->src = (struct jpeg_source_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(struct jpeg_source_mgr));\n } else if (cinfo->src->init_source != init_mem_source) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n src = cinfo->src;\n src->init_source = init_mem_source;\n src->fill_input_buffer = fill_mem_input_buffer;\n src->skip_input_data = skip_input_data;\n src->resync_to_restart = jpeg_resync_to_restart; \n src->term_source = term_source;\n src->bytes_in_buffer = insize;\n src->next_input_byte = (const JOCTET *)inbuffer;\n}", "Selected Statement": "src->fill_input_buffer = fill_mem_input_buffer;", "Function Input": {"cinfo": {"value": "0x110a298"}}, "Variable Values Before Statement": {"fill_mem_input_buffer": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 24, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_src_tj(j_decompress_ptr cinfo, const unsigned char *inbuffer,\n size_t insize)\n{\n struct jpeg_source_mgr *src;\n\n if (inbuffer == NULL || insize == 0) \n ERREXIT(cinfo, JERR_INPUT_EMPTY);\n\n \n if (cinfo->src == NULL) { \n cinfo->src = (struct jpeg_source_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(struct jpeg_source_mgr));\n } else if (cinfo->src->init_source != init_mem_source) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n src = cinfo->src;\n src->init_source = init_mem_source;\n src->fill_input_buffer = fill_mem_input_buffer;\n src->skip_input_data = skip_input_data;\n src->resync_to_restart = jpeg_resync_to_restart; \n src->term_source = term_source;\n src->bytes_in_buffer = insize;\n src->next_input_byte = (const JOCTET *)inbuffer;\n}", "Selected Statement": "src->skip_input_data = skip_input_data;", "Function Input": {"cinfo": {"value": "0x110a298"}}, "Variable Values Before Statement": {"skip_input_data": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 25, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_src_tj(j_decompress_ptr cinfo, const unsigned char *inbuffer,\n size_t insize)\n{\n struct jpeg_source_mgr *src;\n\n if (inbuffer == NULL || insize == 0) \n ERREXIT(cinfo, JERR_INPUT_EMPTY);\n\n \n if (cinfo->src == NULL) { \n cinfo->src = (struct jpeg_source_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(struct jpeg_source_mgr));\n } else if (cinfo->src->init_source != init_mem_source) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n src = cinfo->src;\n src->init_source = init_mem_source;\n src->fill_input_buffer = fill_mem_input_buffer;\n src->skip_input_data = skip_input_data;\n src->resync_to_restart = jpeg_resync_to_restart; \n src->term_source = term_source;\n src->bytes_in_buffer = insize;\n src->next_input_byte = (const JOCTET *)inbuffer;\n}", "Selected Statement": "src->resync_to_restart = jpeg_resync_to_restart; /* use default method */", "Function Input": {"cinfo": {"value": "0x110a298"}}, "Variable Values Before Statement": {"jpeg_resync_to_restart": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 26, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_src_tj(j_decompress_ptr cinfo, const unsigned char *inbuffer,\n size_t insize)\n{\n struct jpeg_source_mgr *src;\n\n if (inbuffer == NULL || insize == 0) \n ERREXIT(cinfo, JERR_INPUT_EMPTY);\n\n \n if (cinfo->src == NULL) { \n cinfo->src = (struct jpeg_source_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(struct jpeg_source_mgr));\n } else if (cinfo->src->init_source != init_mem_source) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n src = cinfo->src;\n src->init_source = init_mem_source;\n src->fill_input_buffer = fill_mem_input_buffer;\n src->skip_input_data = skip_input_data;\n src->resync_to_restart = jpeg_resync_to_restart; \n src->term_source = term_source;\n src->bytes_in_buffer = insize;\n src->next_input_byte = (const JOCTET *)inbuffer;\n}", "Selected Statement": "src->term_source = term_source;", "Function Input": {"cinfo": {"value": "0x110a298"}}, "Variable Values Before Statement": {"term_source": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 27, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_mem_src_tj(j_decompress_ptr cinfo, const unsigned char *inbuffer,\n size_t insize)\n{\n struct jpeg_source_mgr *src;\n\n if (inbuffer == NULL || insize == 0) \n ERREXIT(cinfo, JERR_INPUT_EMPTY);\n\n \n if (cinfo->src == NULL) { \n cinfo->src = (struct jpeg_source_mgr *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n sizeof(struct jpeg_source_mgr));\n } else if (cinfo->src->init_source != init_mem_source) {\n \n ERREXIT(cinfo, JERR_BUFFER_SIZE);\n }\n\n src = cinfo->src;\n src->init_source = init_mem_source;\n src->fill_input_buffer = fill_mem_input_buffer;\n src->skip_input_data = skip_input_data;\n src->resync_to_restart = jpeg_resync_to_restart; \n src->term_source = term_source;\n src->bytes_in_buffer = insize;\n src->next_input_byte = (const JOCTET *)inbuffer;\n}", "Selected Statement": "src->bytes_in_buffer = insize;", "Function Input": {"cinfo": {"value": "0x110a298"}}, "Variable Values Before Statement": {"insize": "1"}, "Value After Statement Execution": "1", "Block_Size": 28, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n cinfo->data_precision = BITS_IN_JSAMPLE;\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision > 8)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "for (i = 0; i < NUM_ARITH_TBLS; i++) {", "Function Input": {"cinfo": {"value": "0x7fffffffcbf8"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 29, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n cinfo->data_precision = BITS_IN_JSAMPLE;\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision > 8)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->arith_dc_L[i] = 0;", "Function Input": {"cinfo": {"value": "0x7fffffffcbf8"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 30, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n cinfo->data_precision = BITS_IN_JSAMPLE;\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision > 8)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->arith_dc_U[i] = 1;", "Function Input": {"cinfo": {"value": "0x7fffffffcbf8"}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 31, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n cinfo->data_precision = BITS_IN_JSAMPLE;\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision > 8)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->restart_interval = 0;", "Function Input": {"cinfo": {"value": "0x7fffffffcbf8"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 70, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n cinfo->data_precision = BITS_IN_JSAMPLE;\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision > 8)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->JFIF_major_version = 1; /* Default JFIF version = 1.01 */", "Function Input": {"cinfo": {"value": "0x7fffffffcbf8"}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 82, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n cinfo->data_precision = BITS_IN_JSAMPLE;\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision > 8)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->JFIF_minor_version = 1;", "Function Input": {"cinfo": {"value": "0x7fffffffcbf8"}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 83, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n cinfo->data_precision = BITS_IN_JSAMPLE;\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision > 8)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->density_unit = 0; /* Pixel size is unknown by default */", "Function Input": {"cinfo": {"value": "0x7fffffffcbf8"}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 84, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(void)\njpeg_set_defaults(j_compress_ptr cinfo)\n{\n int i;\n\n \n if (cinfo->global_state != CSTATE_START)\n ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);\n\n \n if (cinfo->comp_info == NULL)\n cinfo->comp_info = (jpeg_component_info *)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_PERMANENT,\n MAX_COMPONENTS * sizeof(jpeg_component_info));\n\n \n\n#if JPEG_LIB_VERSION >= 70\n cinfo->scale_num = 1; \n cinfo->scale_denom = 1;\n#endif\n cinfo->data_precision = BITS_IN_JSAMPLE;\n \n jpeg_set_quality(cinfo, 75, TRUE);\n \n std_huff_tables((j_common_ptr)cinfo);\n\n \n for (i = 0; i < NUM_ARITH_TBLS; i++) {\n cinfo->arith_dc_L[i] = 0;\n cinfo->arith_dc_U[i] = 1;\n cinfo->arith_ac_K[i] = 5;\n }\n\n \n cinfo->scan_info = NULL;\n cinfo->num_scans = 0;\n\n \n cinfo->raw_data_in = FALSE;\n\n \n cinfo->arith_code = FALSE;\n\n \n cinfo->optimize_coding = FALSE;\n \n if (cinfo->data_precision > 8)\n cinfo->optimize_coding = TRUE;\n\n \n cinfo->CCIR601_sampling = FALSE;\n\n#if JPEG_LIB_VERSION >= 70\n \n cinfo->do_fancy_downsampling = TRUE;\n#endif\n\n \n cinfo->smoothing_factor = 0;\n\n \n cinfo->dct_method = JDCT_DEFAULT;\n\n \n cinfo->restart_interval = 0;\n cinfo->restart_in_rows = 0;\n\n \n cinfo->JFIF_major_version = 1; \n cinfo->JFIF_minor_version = 1;\n cinfo->density_unit = 0; \n cinfo->X_density = 1; \n cinfo->Y_density = 1;\n\n \n\n jpeg_default_colorspace(cinfo);\n}", "Selected Statement": "cinfo->X_density = 1; /* Pixel aspect ratio is square by default */", "Function Input": {"cinfo": {"value": "0x7fffffffcbf8"}}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 85, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(cjpeg_source_ptr)\njinit_read_targa(j_compress_ptr cinfo)\n{\n tga_source_ptr source;\n\n \n source = (tga_source_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE,\n sizeof(tga_source_struct));\n source->cinfo = cinfo; \n \n source->pub.start_input = start_input_tga;\n source->pub.finish_input = finish_input_tga;\n#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION\n source->pub.max_pixels = 0;\n#endif\n\n return (cjpeg_source_ptr)source;\n}", "Selected Statement": "source->pub.start_input = start_input_tga;", "Function Input": {}, "Variable Values Before Statement": {"start_input_tga": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 9, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(cjpeg_source_ptr)\njinit_read_gif(j_compress_ptr cinfo)\n{\n gif_source_ptr source;\n\n \n source = (gif_source_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE,\n sizeof(gif_source_struct));\n source->cinfo = cinfo; \n \n source->pub.start_input = start_input_gif;\n source->pub.finish_input = finish_input_gif;\n#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION\n source->pub.max_pixels = 0;\n#endif\n\n return (cjpeg_source_ptr)source;\n}", "Selected Statement": "source->pub.start_input = start_input_gif;", "Function Input": {}, "Variable Values Before Statement": {"start_input_gif": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 9, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(cjpeg_source_ptr)\njinit_read_bmp(j_compress_ptr cinfo, boolean use_inversion_array)\n{\n bmp_source_ptr source;\n\n \n source = (bmp_source_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE,\n sizeof(bmp_source_struct));\n source->cinfo = cinfo; \n \n source->pub.start_input = start_input_bmp;\n source->pub.finish_input = finish_input_bmp;\n#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION\n source->pub.max_pixels = 0;\n#endif\n\n source->use_inversion_array = use_inversion_array;\n\n return (cjpeg_source_ptr)source;\n}", "Selected Statement": "source->pub.start_input = start_input_bmp;", "Function Input": {}, "Variable Values Before Statement": {"start_input_bmp": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 9, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "GLOBAL(cjpeg_source_ptr)\njinit_read_ppm(j_compress_ptr cinfo)\n{\n ppm_source_ptr source;\n\n \n source = (ppm_source_ptr)\n (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE,\n sizeof(ppm_source_struct));\n \n source->pub.start_input = start_input_ppm;\n source->pub.finish_input = finish_input_ppm;\n#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION\n source->pub.max_pixels = 0;\n#endif\n\n return (cjpeg_source_ptr)source;\n}", "Selected Statement": "source->pub.start_input = start_input_ppm;", "Function Input": {}, "Variable Values Before Statement": {"start_input_ppm": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 8, "Project Information": "libjpeg-turbo"} +{"Programming Language": "C", "Source Code": "int device_alloc(struct crypt_device *cd, struct device **device, const char *path)\n{\n\tstruct device *dev;\n\tint r;\n\n\tr = device_alloc_no_check(&dev, path);\n\tif (r < 0)\n\t\treturn r;\n\n\tif (dev) {\n\t\tr = device_ready(cd, dev);\n\t\tif (!r) {\n\t\t\tdev->init_done = 1;\n\t\t} else if (r == -ENOTBLK) {\n\t\t\t\n\t\t} else if (r < 0) {\n\t\t\tfree(dev->path);\n\t\t\tfree(dev);\n\t\t\treturn -ENOTBLK;\n\t\t}\n\t}\n\n\t*device = dev;\n\treturn 0;\n}", "Selected Statement": "r = device_alloc_no_check(&dev, path);", "Function Input": {}, "Variable Values Before Statement": {"path": "0x7fffffffddf0 \"/tmp/test-script-fuzz.o5sGzP\""}, "Value After Statement Execution": "int", "Function Name": "device_alloc_no_check", "Block_Size": 4, "Project Information": "cryptsetup"} +{"Programming Language": "C", "Source Code": "int device_alloc(struct crypt_device *cd, struct device **device, const char *path)\n{\n\tstruct device *dev;\n\tint r;\n\n\tr = device_alloc_no_check(&dev, path);\n\tif (r < 0)\n\t\treturn r;\n\n\tif (dev) {\n\t\tr = device_ready(cd, dev);\n\t\tif (!r) {\n\t\t\tdev->init_done = 1;\n\t\t} else if (r == -ENOTBLK) {\n\t\t\t\n\t\t} else if (r < 0) {\n\t\t\tfree(dev->path);\n\t\t\tfree(dev);\n\t\t\treturn -ENOTBLK;\n\t\t}\n\t}\n\n\t*device = dev;\n\treturn 0;\n}", "Selected Statement": "r = device_ready(cd, dev);", "Function Input": {}, "Variable Values Before Statement": {"cd": "NULL", "dev": {"path": "0x1825970 \"/tmp/test-script-fuzz.o5sGzP\"", "file_path": null, "loop_fd": "-1", "ro_dev_fd": "-1", "dev_fd": "-1", "dev_fd_excl": "-1", "lh": null, "o_direct": "1", "init_done": "0", "alignment": "4096", "block_size": "4096", "loop_block_size": "0"}}, "Value After Statement Execution": "int", "Function Name": "device_ready", "Block_Size": 9, "Project Information": "cryptsetup"} +{"Programming Language": "C", "Source Code": "int device_alloc(struct crypt_device *cd, struct device **device, const char *path)\n{\n\tstruct device *dev;\n\tint r;\n\n\tr = device_alloc_no_check(&dev, path);\n\tif (r < 0)\n\t\treturn r;\n\n\tif (dev) {\n\t\tr = device_ready(cd, dev);\n\t\tif (!r) {\n\t\t\tdev->init_done = 1;\n\t\t} else if (r == -ENOTBLK) {\n\t\t\t\n\t\t} else if (r < 0) {\n\t\t\tfree(dev->path);\n\t\t\tfree(dev);\n\t\t\treturn -ENOTBLK;\n\t\t}\n\t}\n\n\t*device = dev;\n\treturn 0;\n}", "Selected Statement": "*device = dev;", "Function Input": {}, "Variable Values Before Statement": {"dev": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 21, "Project Information": "cryptsetup"} +{"Programming Language": "C", "Source Code": "size_t crypt_getpagesize(void)\n{\n\tlong r = sysconf(_SC_PAGESIZE);\n\treturn r <= 0 ? DEFAULT_MEM_ALIGNMENT : (size_t)r;\n}", "Selected Statement": "long r = sysconf(_SC_PAGESIZE);", "Function Input": {}, "Variable Values Before Statement": {"_SC_PAGESIZE": "NULL"}, "Value After Statement Execution": "4096", "Function Name": "sysconf", "Block_Size": 1, "Project Information": "cryptsetup"} +{"Programming Language": "C", "Source Code": "void msg_vstream_init(const char *name, VSTREAM *vp)\n{\n static int first_call = 1;\n\n msg_tag = name;\n msg_stream = vp;\n if (first_call) {\n\tfirst_call = 0;\n\tmsg_output(msg_vstream_print);\n }\n}", "Selected Statement": "msg_tag = name;", "Function Input": {}, "Variable Values Before Statement": {"name": "\"fuzz_mime\""}, "Value After Statement Execution": "\"fuzz_mime\"", "Block_Size": 3, "Project Information": "postfix"} +{"Programming Language": "C", "Source Code": "void msg_vstream_init(const char *name, VSTREAM *vp)\n{\n static int first_call = 1;\n\n msg_tag = name;\n msg_stream = vp;\n if (first_call) {\n\tfirst_call = 0;\n\tmsg_output(msg_vstream_print);\n }\n}", "Selected Statement": "msg_stream = vp;", "Function Input": {}, "Variable Values Before Statement": {"vp": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 4, "Project Information": "postfix"} +{"Programming Language": "C", "Source Code": "ssize_t is_header_buf(const char *str, ssize_t str_len)\n{\n const unsigned char *cp;\n int state;\n int c;\n ssize_t len;\n\n#define INIT\t\t0\n#define IN_CHAR\t\t1\n#define IN_CHAR_SPACE\t2\n#define CU_CHAR_PTR(x)\t((const unsigned char *) (x))\n\n \n for (len = 0, state = INIT, cp = CU_CHAR_PTR(str); ; cp++) {\n\tif (str_len != IS_HEADER_NULL_TERMINATED && str_len-- <= 0)\n\t return (0);\n\tswitch (c = *cp) {\n\tdefault:\n\t if (c == 0 || !ISASCII(c) || ISCNTRL(c))\n\t\treturn (0);\n\t if (state == INIT)\n\t\tstate = IN_CHAR;\n\t if (state == IN_CHAR) {\n\t\tlen++;\n\t\tcontinue;\n\t }\n\t return (0);\n\tcase ' ':\n\tcase '\\t':\n\t if (state == IN_CHAR)\n\t\tstate = IN_CHAR_SPACE;\n\t if (state == IN_CHAR_SPACE)\n\t\tcontinue;\n\t return (0);\n\tcase ':':\n\t return ((state == IN_CHAR || state == IN_CHAR_SPACE) ? len : 0);\n\t}\n }\n \n return (0);\n}", "Selected Statement": "for (len = 0, state = INIT, cp = CU_CHAR_PTR(str); /* see below */; cp++) {", "Function Input": {"str": {"value": ""}, "str_len": {"value": ""}}, "Variable Values Before Statement": {"str": ""}, "Value After Statement Execution": "0xfa6d75 \"\"", "Function Name": "CU_CHAR_PTR", "Block_Size": 18, "Project Information": "postfix"} +{"Programming Language": "C", "Source Code": "ssize_t is_header_buf(const char *str, ssize_t str_len)\n{\n const unsigned char *cp;\n int state;\n int c;\n ssize_t len;\n\n#define INIT\t\t0\n#define IN_CHAR\t\t1\n#define IN_CHAR_SPACE\t2\n#define CU_CHAR_PTR(x)\t((const unsigned char *) (x))\n\n \n for (len = 0, state = INIT, cp = CU_CHAR_PTR(str); ; cp++) {\n\tif (str_len != IS_HEADER_NULL_TERMINATED && str_len-- <= 0)\n\t return (0);\n\tswitch (c = *cp) {\n\tdefault:\n\t if (c == 0 || !ISASCII(c) || ISCNTRL(c))\n\t\treturn (0);\n\t if (state == INIT)\n\t\tstate = IN_CHAR;\n\t if (state == IN_CHAR) {\n\t\tlen++;\n\t\tcontinue;\n\t }\n\t return (0);\n\tcase ' ':\n\tcase '\\t':\n\t if (state == IN_CHAR)\n\t\tstate = IN_CHAR_SPACE;\n\t if (state == IN_CHAR_SPACE)\n\t\tcontinue;\n\t return (0);\n\tcase ':':\n\t return ((state == IN_CHAR || state == IN_CHAR_SPACE) ? len : 0);\n\t}\n }\n \n return (0);\n}", "Selected Statement": "for (len = 0, state = INIT, cp = CU_CHAR_PTR(str); /* see below */; cp++) {", "Function Input": {"str": {"value": ""}, "str_len": {"value": ""}}, "Variable Values Before Statement": {"INIT": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 18, "Project Information": "postfix"} +{"Programming Language": "C", "Source Code": "ssize_t is_header_buf(const char *str, ssize_t str_len)\n{\n const unsigned char *cp;\n int state;\n int c;\n ssize_t len;\n\n#define INIT\t\t0\n#define IN_CHAR\t\t1\n#define IN_CHAR_SPACE\t2\n#define CU_CHAR_PTR(x)\t((const unsigned char *) (x))\n\n \n for (len = 0, state = INIT, cp = CU_CHAR_PTR(str); ; cp++) {\n\tif (str_len != IS_HEADER_NULL_TERMINATED && str_len-- <= 0)\n\t return (0);\n\tswitch (c = *cp) {\n\tdefault:\n\t if (c == 0 || !ISASCII(c) || ISCNTRL(c))\n\t\treturn (0);\n\t if (state == INIT)\n\t\tstate = IN_CHAR;\n\t if (state == IN_CHAR) {\n\t\tlen++;\n\t\tcontinue;\n\t }\n\t return (0);\n\tcase ' ':\n\tcase '\\t':\n\t if (state == IN_CHAR)\n\t\tstate = IN_CHAR_SPACE;\n\t if (state == IN_CHAR_SPACE)\n\t\tcontinue;\n\t return (0);\n\tcase ':':\n\t return ((state == IN_CHAR || state == IN_CHAR_SPACE) ? len : 0);\n\t}\n }\n \n return (0);\n}", "Selected Statement": "for (len = 0, state = INIT, cp = CU_CHAR_PTR(str); /* see below */; cp++) {", "Function Input": {"str": {"value": ""}, "str_len": {"value": ""}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 18, "Project Information": "postfix"} +{"Programming Language": "C", "Source Code": "ssize_t is_header_buf(const char *str, ssize_t str_len)\n{\n const unsigned char *cp;\n int state;\n int c;\n ssize_t len;\n\n#define INIT\t\t0\n#define IN_CHAR\t\t1\n#define IN_CHAR_SPACE\t2\n#define CU_CHAR_PTR(x)\t((const unsigned char *) (x))\n\n \n for (len = 0, state = INIT, cp = CU_CHAR_PTR(str); ; cp++) {\n\tif (str_len != IS_HEADER_NULL_TERMINATED && str_len-- <= 0)\n\t return (0);\n\tswitch (c = *cp) {\n\tdefault:\n\t if (c == 0 || !ISASCII(c) || ISCNTRL(c))\n\t\treturn (0);\n\t if (state == INIT)\n\t\tstate = IN_CHAR;\n\t if (state == IN_CHAR) {\n\t\tlen++;\n\t\tcontinue;\n\t }\n\t return (0);\n\tcase ' ':\n\tcase '\\t':\n\t if (state == IN_CHAR)\n\t\tstate = IN_CHAR_SPACE;\n\t if (state == IN_CHAR_SPACE)\n\t\tcontinue;\n\t return (0);\n\tcase ':':\n\t return ((state == IN_CHAR || state == IN_CHAR_SPACE) ? len : 0);\n\t}\n }\n \n return (0);\n}", "Selected Statement": "state = IN_CHAR;", "Function Input": {"str": {"value": ""}, "str_len": {"value": ""}}, "Variable Values Before Statement": {"IN_CHAR": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 26, "Project Information": "postfix"} +{"Programming Language": "C", "Source Code": "void msg_output(MSG_OUTPUT_FN output_fn)\n{\n int i;\n\n \n if (msg_buffers[MSG_OUT_NESTING_LIMIT - 1] == 0) {\n\tfor (i = 0; i < MSG_OUT_NESTING_LIMIT; i++)\n\t msg_buffers[i] = vstring_alloc(100);\n }\n\n \n if (msg_output_fn_count == 0)\n\tmsg_output_fn = (MSG_OUTPUT_FN *) mymalloc(sizeof(*msg_output_fn));\n else\n\tmsg_output_fn = (MSG_OUTPUT_FN *) myrealloc((void *) msg_output_fn,\n\t\t\t(msg_output_fn_count + 1) * sizeof(*msg_output_fn));\n msg_output_fn[msg_output_fn_count++] = output_fn;\n}", "Selected Statement": "for (i = 0; i < MSG_OUT_NESTING_LIMIT; i++)", "Function Input": {"output_fn": {"value": ""}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 8, "Project Information": "postfix"} +{"Programming Language": "C", "Source Code": "void msg_output(MSG_OUTPUT_FN output_fn)\n{\n int i;\n\n \n if (msg_buffers[MSG_OUT_NESTING_LIMIT - 1] == 0) {\n\tfor (i = 0; i < MSG_OUT_NESTING_LIMIT; i++)\n\t msg_buffers[i] = vstring_alloc(100);\n }\n\n \n if (msg_output_fn_count == 0)\n\tmsg_output_fn = (MSG_OUTPUT_FN *) mymalloc(sizeof(*msg_output_fn));\n else\n\tmsg_output_fn = (MSG_OUTPUT_FN *) myrealloc((void *) msg_output_fn,\n\t\t\t(msg_output_fn_count + 1) * sizeof(*msg_output_fn));\n msg_output_fn[msg_output_fn_count++] = output_fn;\n}", "Selected Statement": "msg_output_fn[msg_output_fn_count++] = output_fn;", "Function Input": {"output_fn": {"value": ""}}, "Variable Values Before Statement": {"output_fn": "MSG_OUTPUT_FN"}, "Value After Statement Execution": "MSG_OUTPUT_FN", "Block_Size": 21, "Project Information": "postfix"} +{"Programming Language": "C", "Source Code": "static int ssh_known_hosts_read_entries(const char *match,\n const char *filename,\n struct ssh_list **entries)\n{\n char line[MAX_LINE_SIZE];\n size_t lineno = 0;\n size_t len = 0;\n FILE *fp;\n int rc;\n\n fp = fopen(filename, \"r\");\n if (fp == NULL) {\n char err_msg[SSH_ERRNO_MSG_MAX] = {0};\n SSH_LOG(SSH_LOG_TRACE, \"Failed to open the known_hosts file '%s': %s\",\n filename, ssh_strerror(errno, err_msg, SSH_ERRNO_MSG_MAX));\n \n return SSH_OK;\n }\n\n if (*entries == NULL) {\n *entries = ssh_list_new();\n if (*entries == NULL) {\n fclose(fp);\n return SSH_ERROR;\n }\n }\n\n for (rc = known_hosts_read_line(fp, line, sizeof(line), &len, &lineno);\n rc == 0;\n rc = known_hosts_read_line(fp, line, sizeof(line), &len, &lineno)) {\n struct ssh_knownhosts_entry *entry = NULL;\n struct ssh_iterator *it = NULL;\n char *p = NULL;\n\n if (line[len] != '\\n') {\n len = strcspn(line, \"\\n\");\n }\n line[len] = '\\0';\n\n \n for (p = line; isspace((int)p[0]); p++);\n\n \n if (p[0] == '\\0' || p[0] == '#') {\n continue;\n }\n\n \n if (p[0] == '@') {\n continue;\n }\n\n rc = ssh_known_hosts_parse_line(match,\n line,\n &entry);\n if (rc == SSH_AGAIN) {\n continue;\n } else if (rc != SSH_OK) {\n goto error;\n }\n\n \n for (it = ssh_list_get_iterator(*entries);\n it != NULL;\n it = it->next) {\n struct ssh_knownhosts_entry *entry2;\n int cmp;\n entry2 = ssh_iterator_value(struct ssh_knownhosts_entry *, it);\n cmp = ssh_known_hosts_entries_compare(entry, entry2);\n if (cmp == 0) {\n ssh_knownhosts_entry_free(entry);\n entry = NULL;\n break;\n }\n }\n if (entry != NULL) {\n ssh_list_append(*entries, entry);\n }\n }\n\n fclose(fp);\n return SSH_OK;\nerror:\n fclose(fp);\n return SSH_ERROR;\n}", "Selected Statement": "size_t lineno = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 4, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "static int ssh_known_hosts_read_entries(const char *match,\n const char *filename,\n struct ssh_list **entries)\n{\n char line[MAX_LINE_SIZE];\n size_t lineno = 0;\n size_t len = 0;\n FILE *fp;\n int rc;\n\n fp = fopen(filename, \"r\");\n if (fp == NULL) {\n char err_msg[SSH_ERRNO_MSG_MAX] = {0};\n SSH_LOG(SSH_LOG_TRACE, \"Failed to open the known_hosts file '%s': %s\",\n filename, ssh_strerror(errno, err_msg, SSH_ERRNO_MSG_MAX));\n \n return SSH_OK;\n }\n\n if (*entries == NULL) {\n *entries = ssh_list_new();\n if (*entries == NULL) {\n fclose(fp);\n return SSH_ERROR;\n }\n }\n\n for (rc = known_hosts_read_line(fp, line, sizeof(line), &len, &lineno);\n rc == 0;\n rc = known_hosts_read_line(fp, line, sizeof(line), &len, &lineno)) {\n struct ssh_knownhosts_entry *entry = NULL;\n struct ssh_iterator *it = NULL;\n char *p = NULL;\n\n if (line[len] != '\\n') {\n len = strcspn(line, \"\\n\");\n }\n line[len] = '\\0';\n\n \n for (p = line; isspace((int)p[0]); p++);\n\n \n if (p[0] == '\\0' || p[0] == '#') {\n continue;\n }\n\n \n if (p[0] == '@') {\n continue;\n }\n\n rc = ssh_known_hosts_parse_line(match,\n line,\n &entry);\n if (rc == SSH_AGAIN) {\n continue;\n } else if (rc != SSH_OK) {\n goto error;\n }\n\n \n for (it = ssh_list_get_iterator(*entries);\n it != NULL;\n it = it->next) {\n struct ssh_knownhosts_entry *entry2;\n int cmp;\n entry2 = ssh_iterator_value(struct ssh_knownhosts_entry *, it);\n cmp = ssh_known_hosts_entries_compare(entry, entry2);\n if (cmp == 0) {\n ssh_knownhosts_entry_free(entry);\n entry = NULL;\n break;\n }\n }\n if (entry != NULL) {\n ssh_list_append(*entries, entry);\n }\n }\n\n fclose(fp);\n return SSH_OK;\nerror:\n fclose(fp);\n return SSH_ERROR;\n}", "Selected Statement": "fp = fopen(filename, \"r\");", "Function Input": {}, "Variable Values Before Statement": {"filename": "0x7fffffffdd20 \"/tmp/libfuzzer.61\"", "\"r\"": "\"r\""}, "Value After Statement Execution": "NULL", "Function Name": "fopen", "Block_Size": 9, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "static int ssh_known_hosts_read_entries(const char *match,\n const char *filename,\n struct ssh_list **entries)\n{\n char line[MAX_LINE_SIZE];\n size_t lineno = 0;\n size_t len = 0;\n FILE *fp;\n int rc;\n\n fp = fopen(filename, \"r\");\n if (fp == NULL) {\n char err_msg[SSH_ERRNO_MSG_MAX] = {0};\n SSH_LOG(SSH_LOG_TRACE, \"Failed to open the known_hosts file '%s': %s\",\n filename, ssh_strerror(errno, err_msg, SSH_ERRNO_MSG_MAX));\n \n return SSH_OK;\n }\n\n if (*entries == NULL) {\n *entries = ssh_list_new();\n if (*entries == NULL) {\n fclose(fp);\n return SSH_ERROR;\n }\n }\n\n for (rc = known_hosts_read_line(fp, line, sizeof(line), &len, &lineno);\n rc == 0;\n rc = known_hosts_read_line(fp, line, sizeof(line), &len, &lineno)) {\n struct ssh_knownhosts_entry *entry = NULL;\n struct ssh_iterator *it = NULL;\n char *p = NULL;\n\n if (line[len] != '\\n') {\n len = strcspn(line, \"\\n\");\n }\n line[len] = '\\0';\n\n \n for (p = line; isspace((int)p[0]); p++);\n\n \n if (p[0] == '\\0' || p[0] == '#') {\n continue;\n }\n\n \n if (p[0] == '@') {\n continue;\n }\n\n rc = ssh_known_hosts_parse_line(match,\n line,\n &entry);\n if (rc == SSH_AGAIN) {\n continue;\n } else if (rc != SSH_OK) {\n goto error;\n }\n\n \n for (it = ssh_list_get_iterator(*entries);\n it != NULL;\n it = it->next) {\n struct ssh_knownhosts_entry *entry2;\n int cmp;\n entry2 = ssh_iterator_value(struct ssh_knownhosts_entry *, it);\n cmp = ssh_known_hosts_entries_compare(entry, entry2);\n if (cmp == 0) {\n ssh_knownhosts_entry_free(entry);\n entry = NULL;\n break;\n }\n }\n if (entry != NULL) {\n ssh_list_append(*entries, entry);\n }\n }\n\n fclose(fp);\n return SSH_OK;\nerror:\n fclose(fp);\n return SSH_ERROR;\n}", "Selected Statement": "*entries = ssh_list_new();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "ssh_list_new", "Block_Size": 19, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "static int ssh_known_hosts_read_entries(const char *match,\n const char *filename,\n struct ssh_list **entries)\n{\n char line[MAX_LINE_SIZE];\n size_t lineno = 0;\n size_t len = 0;\n FILE *fp;\n int rc;\n\n fp = fopen(filename, \"r\");\n if (fp == NULL) {\n char err_msg[SSH_ERRNO_MSG_MAX] = {0};\n SSH_LOG(SSH_LOG_TRACE, \"Failed to open the known_hosts file '%s': %s\",\n filename, ssh_strerror(errno, err_msg, SSH_ERRNO_MSG_MAX));\n \n return SSH_OK;\n }\n\n if (*entries == NULL) {\n *entries = ssh_list_new();\n if (*entries == NULL) {\n fclose(fp);\n return SSH_ERROR;\n }\n }\n\n for (rc = known_hosts_read_line(fp, line, sizeof(line), &len, &lineno);\n rc == 0;\n rc = known_hosts_read_line(fp, line, sizeof(line), &len, &lineno)) {\n struct ssh_knownhosts_entry *entry = NULL;\n struct ssh_iterator *it = NULL;\n char *p = NULL;\n\n if (line[len] != '\\n') {\n len = strcspn(line, \"\\n\");\n }\n line[len] = '\\0';\n\n \n for (p = line; isspace((int)p[0]); p++);\n\n \n if (p[0] == '\\0' || p[0] == '#') {\n continue;\n }\n\n \n if (p[0] == '@') {\n continue;\n }\n\n rc = ssh_known_hosts_parse_line(match,\n line,\n &entry);\n if (rc == SSH_AGAIN) {\n continue;\n } else if (rc != SSH_OK) {\n goto error;\n }\n\n \n for (it = ssh_list_get_iterator(*entries);\n it != NULL;\n it = it->next) {\n struct ssh_knownhosts_entry *entry2;\n int cmp;\n entry2 = ssh_iterator_value(struct ssh_knownhosts_entry *, it);\n cmp = ssh_known_hosts_entries_compare(entry, entry2);\n if (cmp == 0) {\n ssh_knownhosts_entry_free(entry);\n entry = NULL;\n break;\n }\n }\n if (entry != NULL) {\n ssh_list_append(*entries, entry);\n }\n }\n\n fclose(fp);\n return SSH_OK;\nerror:\n fclose(fp);\n return SSH_ERROR;\n}", "Selected Statement": "for (rc = known_hosts_read_line(fp, line, sizeof(line), &len, &lineno);", "Function Input": {}, "Variable Values Before Statement": {"fp": "NULL", "line": "\"**\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\\\\\244\\375\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\017\\204\\035\\346\\000\\000\\000\\000X\\032@\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000\\304k\\303\\367\\377\\177\\000\\000\\212\\250\\375\\367\\377\\177\\000\\000\\030\\004\\000\\000\\000\\000\\000\\000\\240^\\304\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\b\\317\\377\\377\\377\\177\\000\\000\\004\\317\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240^\\304\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000p\\200\\303\\367\\377\\177\\000\\000\\3436@\\000\\000\\000\\000\\000\\017\\204\\035\\346\\000\\000\\000\\000\\020v\\230\\003\\000\\000\\000\\000\\004\\317\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\320\\317\\377\\377\\377\\177\\000\\000X\\032@\\000\\000\\000\\000\\000\\300\\317\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\250O\\374\\367\\377\\177\\000\\000\\b\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\017\\204\\035\\346\\000\\000\\000\\000\\370\\344\\377\\367\\377\\177\\000\\000h\\320\\377\\377\\377\\177\\000\\000\\3436@\\000\\000\\000\\000\\000\\300\\317\\377\\377\\377\\177\\000\\000\\320\\317\\377\\377\\377\\177\\000\\000\\361\\261\\375\\367\\377\\177\\000\\000\\006\\000\\000\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000\\005\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\220\\341\\377\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000\\220\\341\\377\\367\\377\\177\\000\\000\\370\\344\\377\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\260\\342\\303\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\\\\\244\\375\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\366#\\316 \\000\\000\\000\\000\\030\\017@\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000,c\\303\\367\\377\\177\\000\\000\\212\\250\\375\\367\\377\\177\\000\\000\\362\\001\\000\\000\\000\\000\\000\\000\\240^\\304\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\b\\321\\377\\377\\377\\177\\000\\000\\004\\321\\377\\377\\377\\177\\000\\000>|\\376\\367\\377\\177\\000\\000\\240^\\304\\367\\377\\177\\000\\000\\240\\332\\377\\377\\377\\177\\000\\000\\260\\333\\377\\377\\377\\177\\000\\000p\\200\\303\\367\\377\\177\\000\\000e4@\\000\\000\\000\\000\\000\\366#\\316 \\000\\000\\000\\000\\2178\\203\\000\\000\\000\\000\\000\\004\\321\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\377\\177\\000\\000\\320\\321\\377\\377\\377\\177\\000\\000\\030\\017@\\000\\000\\000\\000\\000\\300\\321\\377\\377\\377\\177\\000\\0000I\\374\\367\\000\\000\\000\\000\\250O\\374\\367\\377\\177\\000\\000\\b\\000\\000\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000\\240^\\304\\367\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\006\\005\\000\\000\\000\\000\\000\\000\\366#\\316 \\000\\000\\000\\000\\370\\344\\377\\367\\377\\177\\000\\000h\\322\\377\\377\\377\\177\\000\\000e4@\\000\\000\\000\\000\\000\\300\\321\\377\\377\\377\\177\\000\\000\\320\\321\\377\\377\\377\\177\\000\\000\\361\\261\\375\\367\\377\\177\\000\\000\\006\\000\\000\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000\\005\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\220\\341\\377\\367\\377\\177\\000\\000e\\000\\205\\000\\242\\000\\036\\0000 \\303\\367\\377\\177\\000\\000\\220\\341\\377\\367\\377\\177\\000\\000\\370\\344\\377\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\373\\250\\275YEe\\325?\\001\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000 \\257\\303\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\000NEW \\000INFO: li\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\210b\\202\\000\\000\\000\\000\\000P\\336\\377\\377\\377\\177\\000\\000\\300\\270%\\001\\000\\000\\000\\000\\000p\\205\\000\\000\\000\\000\\000\\320Q%\\001\\000\\000\\000\\000P3%\\001\\000\\000\\000\\000\\227\\001\\376\\367\\377\\177\\000\\000\\005\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\370\\344\\377\\367\\377\\177\\000\\000 \\257\\303\\367\\377\\177\\000\\000\\260\\334\\377\\377\\377\\177\\000\\000>|\\376\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\004\\000\\000\\000\\000\\000\\000\\000`\\271%\\001\\000\\000\\000\\000@\\271%\\001\\000\\000\\000\\000 \\335\\377\\377\\377\\177\\000\\000\\003\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\321\\341\\367\\377\\177\\000\\000`\\330\\377\\377\\377\\177\\000\\000\\200\\330\\377\\377\\377\\177\\000\\000\\020\\333\\377\\377\\377\\177\\000\\000\\000\\332\\377\\377\\377\\177\\000\\000x\\000\\000\\000\\000\\000\\000\\000\\346\\257\\312\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\022\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\377\\177\\000\\000,\\000\\000\\000\\000\\000\\000\\000 \\321\\341\\367\\377\\177\\000\\000\\000\\000\\000\\000\\377\\177\\000\\000\\002\\000\\000\\000\\377\\177\\000\\000\\022\\333\\377\\377\\377\\177\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\377\\177\\000\\000\\000\\000\\000\\000\\a\\000\\000\\000\\240\\310\\341\\367\\377\\177\\000\\000h\\r\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\020\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\262\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\240\\321\\341\\367\\377\\177\\000\\000\\220\\331\\377\\377\\377\\177\\000\\000\\260\\331\\377\\377\\377\\177\\000\\000@\\334\\377\\377\\377\\177\\000\\0000\\333\\377\\377\\377\\177\\000\\000x\\000\\000\\000\\000\\000\\000\\000 \\000\\000\\0000\\000\\000\\000\\000\\333\\377\\377\\377\\177\\000\\000 \\332\\377\\377\\377\\177\\000\\000\\240\\310\\341\\367\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000B\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\021\\000\\000\\000\\000\\000\\000\\000 \\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\177\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000B\\334\\377\\377\\377\\177\\000\\000\\240\\321\\341\\367\\377\\177\\000\\000P\\332\\377\\377\\377\\177\\000\\000p\\332\\377\\377\\377\\177\\000\\000x\\234r\\000\\000\\000\\000\\000\\360\\333\\377\\377\\377\\177\\000\\000d\\000\\000\\000\\000\\000\\000\\000\\346\\257\\312\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\017\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\210\\234r\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\n\\000\\000\\000\\000\\000\\000\\000=\\000\\000\\000\\000\\000\\000\\000 \\000\\000\\0000\\000\\000\\000\\017\\000\\000\\000\\377\\177\\000\\000\\002\\000\\000\\000\\377\\177\\000\\000\\210\\234r\\000\\000\\000\\000\\000\\021\\000\\000\\000\\000\\000\\000\\000\\021\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\a\\000\\000\\000\\240\\310\\341\\367\\377\\177\\000\\000h\\r\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\207\\234r\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\030\\000\\000\\0000\\000\\000\\000\\320\\334\\377\\377\\377\\177\\000\\000\\020\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000=0.\\n\\n\\000CustomCros\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\246\\226\\300\\tx\\233\\355\\002\\000\\000\\000\\000\\000\\000\\000\\300\\334\\377\\377\\377\\177\\000\\000\\300\\025\\342\\367\\377\\177\\000\\000\\206\\340o\\000\\000\\000\\000\\000\\200\\335\\377\\377\\377\\177\\000\\000$\\255\\312\\367\\377\\177\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\246\\226\\300\\tx\\233\\355\\002\\000\\000\\000\\000\\000\\000\\000 \\335\\377\\377\\377\\177\\000\\000\\300\\025\\342\\367\\377\\177\\000\\000\\305\\276o\\000\\000\\000\\000\\000\\340\\335\\377\\377\\377\\177\\000\\000$\\255\\312\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\246\\226\\300\\tx\\233\\355\\002\\000\\000\\000\\000\\000\\000\\000`\\335\\377\\377\\377\\177\\000\\000\\300\\025\\342\\367\\377\\177\\000\\000\\311\\263o\\000\\000\\000\\000\\000 \\336\\377\\377\\377\\177\\000\\000$\\255\\312\\367\\a\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\177\\000\\0007\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\0007\\333\\377\\377\\377\\177\\000\\000\\200\\330\\377\\377\\377\\1772c\\000\\246\\226\\300\\tx\\233\\355 \\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\027\\000\\000\\000\\000\\000\\000\\000\\200\\330\\377\\377\\377\\177\\000\\000\\020\\333\\377\\377\\377\\177\\000\\000\\000\\332\\377\\377\\377\\177\\000\\000 \\333\\377\\377\\377\\177\\000\\000\\232\\377\\313\\367\\377\\177\\000\\000\\004\\331\\377\\377\\377\\177\\000\\000p\\331\\377\\377\\377\\177\\000\\000\\001\\200\\255\\373\\000\\000\\000\\000 \\333\\377\\377\\377\\177\\000\\000 \\333\\377\\377\\377\\177\\000\\000 \\333\\377\\377\\377\\177\\000\\000 \\333\\377\\377\\377\\177\\000\\000\\\"\\333\\377\\377\\377\\177\\000\\0007\\333\\377\\377\\377\\177\\000\\000 \\333\\377\\377\\377\\177\\000\\0007\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\260\\333\\377\\377\\200\\000\\000\\000\\240\\332\\377\\377\\377\\177\\000\\000\\000\\000\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\300\\025\\342\\367\\377\\177\\000\\000\\020\\332\\377\\377\\377\\177\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000P\\334\\377\\377\\377\\177\\000\\000g\\334\\377\\377\\377\\177\\000\\000\\377\\377\\377\\377\\377\\177\\000\\000g\\334\\377\\377\\377\\177\\000\\000\\260\\331\\377\\377\\377\\17711\\240\\321\\341\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\027\\000\\000\\000\\000\\000\\000\\000\\260\\331\\377\\377\\377\\177\\000\\000@\\334\\377\\377\\377\\177\\000\\0000\\333\\377\\377\\377\\177\\000\\000P\\334\\377\\377\\377\\177\\000\\000\\232\\377\\313\\367\\377\\177\\000\\0000\\000\\000\\000\\000\\000\\000\\0000\\000\\000\\000\\000\\000\\000\\000\\026\\000\\000\\000\\000\\000\\000\\000\\000\\246\\226\\300\\tx\\233\\355,\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377 \\333\\377\\377\\377\\177\\000\\000 \\333\\377\\377\\377\\177\\000\\000\\210\\334\\377\\377\\377\\177\\000\\000\\020\\333\\377\\377\\377\\177\\000\\000 \\335\\377\\377\\377\\177\\000\\000\\037\\336\\377\\377\\377\\177\\000\\000(\\000\\000\\0000\\000\\000\\000\\037\\336\\377\\377\\377\\177\\000\\000p\\332\\377\\377\\377\\17761\\000\\246\\226\\300\\tx\\233\\355 \\335\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\000\\000\\000\\000\\000\\000\\000p\\332\\377\\377\\377\\177\\000\\000x\\234r\\000\\000\\000\\000\\000\\360\\333\\377\\377\\377\\177\\000\\000 \\335\\377\\377\\377\\177\\000\\000\\363\\305\\314\\367\\377\\177\\000\\000\\360'&\\001\\000\\000\\000\\000\\340\\v\\342\\367\\377\\177\\000\\000\\a\\000\\000\\000\\000\\000\\000\\000\\016\\\"%\\001\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000c\\000\\000\\000\\377\\177\\000\\000\\b(%\\001\\000\\000\\000\\0000\\020\\000\\000\\000\\000\\000\\000@\\000\\000\\000\\000\\000\\000\\000\\001\\001\\000\\000p\\000\\000\\000\\b\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000|\\000\\000\\000w\\000\\000\\000o\\000\\000\\000c\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@\\000\\000\\000\\200\\000\\000\\000\\377\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\200\\v\\342\\367\\377\\177\\000\\000h\\r\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\000(&\\001\\000\\000\\000\\000\\0008&\\001\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000p\\276%\\001\\000\\000\\000\\000\\035]\\313\\367\\377\\177\\000\\000<\\000\\000\\000\\000\\000\\000\\000.\\030\\236\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\244\\201\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\236\\341\\321e\\000\\000\\000\\000\\2376\\373\\036\\000\\000\\000\\000\\236\\341\\321e\\000\\000\\000\\000\\2376\\373\\036\\000\\000\\000\\000\\236\\341\\321e\\000\\000\\000\\000\\2376\\373\\036\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\266\\001\\000\\000\\000\\000\\000\\000\\213\\256\\314\\367\\377\\177\\000\\000p\\276%\\001\\000\\000\\000\\000\\344\\\"\\324\\367\\377\\177\\000\\000\\322\\0259\\001\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\000(&\\001\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000p\\276%\\001\\000\\000\\000\\000\\000\\246\\226\\300\\tx\\233\\355`\\334\\377\\377\\377\\177\\000\\000x\\314P\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000(\\320$\\001\\000\\000\\000\\000`\\334\\377\\377\\377\\177\\000\\000P3%\\001\\000\\000\\000\\000(\\320$\\001\\000\\000\\000\\000\\240\\334\\377\\377\\377\\177\\000\\000\\035\\366L\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\324\\341\\367\\377\\177\\000\\000p\\276%\\001\\002\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\""}, "Value After Statement Execution": "int", "Function Name": "known_hosts_read_line", "Block_Size": 26, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "static int ssh_known_hosts_read_entries(const char *match,\n const char *filename,\n struct ssh_list **entries)\n{\n char line[MAX_LINE_SIZE];\n size_t lineno = 0;\n size_t len = 0;\n FILE *fp;\n int rc;\n\n fp = fopen(filename, \"r\");\n if (fp == NULL) {\n char err_msg[SSH_ERRNO_MSG_MAX] = {0};\n SSH_LOG(SSH_LOG_TRACE, \"Failed to open the known_hosts file '%s': %s\",\n filename, ssh_strerror(errno, err_msg, SSH_ERRNO_MSG_MAX));\n \n return SSH_OK;\n }\n\n if (*entries == NULL) {\n *entries = ssh_list_new();\n if (*entries == NULL) {\n fclose(fp);\n return SSH_ERROR;\n }\n }\n\n for (rc = known_hosts_read_line(fp, line, sizeof(line), &len, &lineno);\n rc == 0;\n rc = known_hosts_read_line(fp, line, sizeof(line), &len, &lineno)) {\n struct ssh_knownhosts_entry *entry = NULL;\n struct ssh_iterator *it = NULL;\n char *p = NULL;\n\n if (line[len] != '\\n') {\n len = strcspn(line, \"\\n\");\n }\n line[len] = '\\0';\n\n \n for (p = line; isspace((int)p[0]); p++);\n\n \n if (p[0] == '\\0' || p[0] == '#') {\n continue;\n }\n\n \n if (p[0] == '@') {\n continue;\n }\n\n rc = ssh_known_hosts_parse_line(match,\n line,\n &entry);\n if (rc == SSH_AGAIN) {\n continue;\n } else if (rc != SSH_OK) {\n goto error;\n }\n\n \n for (it = ssh_list_get_iterator(*entries);\n it != NULL;\n it = it->next) {\n struct ssh_knownhosts_entry *entry2;\n int cmp;\n entry2 = ssh_iterator_value(struct ssh_knownhosts_entry *, it);\n cmp = ssh_known_hosts_entries_compare(entry, entry2);\n if (cmp == 0) {\n ssh_knownhosts_entry_free(entry);\n entry = NULL;\n break;\n }\n }\n if (entry != NULL) {\n ssh_list_append(*entries, entry);\n }\n }\n\n fclose(fp);\n return SSH_OK;\nerror:\n fclose(fp);\n return SSH_ERROR;\n}", "Selected Statement": "rc = known_hosts_read_line(fp, line, sizeof(line), &len, &lineno)) {", "Function Input": {}, "Variable Values Before Statement": {"fp": "NULL", "line": "\"**\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\\\\\244\\375\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\017\\204\\035\\346\\000\\000\\000\\000X\\032@\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000\\304k\\303\\367\\377\\177\\000\\000\\212\\250\\375\\367\\377\\177\\000\\000\\030\\004\\000\\000\\000\\000\\000\\000\\240^\\304\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\b\\317\\377\\377\\377\\177\\000\\000\\004\\317\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240^\\304\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000p\\200\\303\\367\\377\\177\\000\\000\\3436@\\000\\000\\000\\000\\000\\017\\204\\035\\346\\000\\000\\000\\000\\020v\\230\\003\\000\\000\\000\\000\\004\\317\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\320\\317\\377\\377\\377\\177\\000\\000X\\032@\\000\\000\\000\\000\\000\\300\\317\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\250O\\374\\367\\377\\177\\000\\000\\b\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\017\\204\\035\\346\\000\\000\\000\\000\\370\\344\\377\\367\\377\\177\\000\\000h\\320\\377\\377\\377\\177\\000\\000\\3436@\\000\\000\\000\\000\\000\\300\\317\\377\\377\\377\\177\\000\\000\\320\\317\\377\\377\\377\\177\\000\\000\\361\\261\\375\\367\\377\\177\\000\\000\\006\\000\\000\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000\\005\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\220\\341\\377\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000\\220\\341\\377\\367\\377\\177\\000\\000\\370\\344\\377\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\260\\342\\303\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\\\\\244\\375\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\366#\\316 \\000\\000\\000\\000\\030\\017@\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000,c\\303\\367\\377\\177\\000\\000\\212\\250\\375\\367\\377\\177\\000\\000\\362\\001\\000\\000\\000\\000\\000\\000\\240^\\304\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\b\\321\\377\\377\\377\\177\\000\\000\\004\\321\\377\\377\\377\\177\\000\\000>|\\376\\367\\377\\177\\000\\000\\240^\\304\\367\\377\\177\\000\\000\\240\\332\\377\\377\\377\\177\\000\\000\\260\\333\\377\\377\\377\\177\\000\\000p\\200\\303\\367\\377\\177\\000\\000e4@\\000\\000\\000\\000\\000\\366#\\316 \\000\\000\\000\\000\\2178\\203\\000\\000\\000\\000\\000\\004\\321\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\377\\177\\000\\000\\320\\321\\377\\377\\377\\177\\000\\000\\030\\017@\\000\\000\\000\\000\\000\\300\\321\\377\\377\\377\\177\\000\\0000I\\374\\367\\000\\000\\000\\000\\250O\\374\\367\\377\\177\\000\\000\\b\\000\\000\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000\\240^\\304\\367\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\006\\005\\000\\000\\000\\000\\000\\000\\366#\\316 \\000\\000\\000\\000\\370\\344\\377\\367\\377\\177\\000\\000h\\322\\377\\377\\377\\177\\000\\000e4@\\000\\000\\000\\000\\000\\300\\321\\377\\377\\377\\177\\000\\000\\320\\321\\377\\377\\377\\177\\000\\000\\361\\261\\375\\367\\377\\177\\000\\000\\006\\000\\000\\000\\000\\000\\000\\0000 \\303\\367\\377\\177\\000\\000\\005\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\220\\341\\377\\367\\377\\177\\000\\000e\\000\\205\\000\\242\\000\\036\\0000 \\303\\367\\377\\177\\000\\000\\220\\341\\377\\367\\377\\177\\000\\000\\370\\344\\377\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\373\\250\\275YEe\\325?\\001\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000 \\257\\303\\367\\377\\177\\000\\0000I\\374\\367\\377\\177\\000\\000\\000NEW \\000INFO: li\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\210b\\202\\000\\000\\000\\000\\000P\\336\\377\\377\\377\\177\\000\\000\\300\\270%\\001\\000\\000\\000\\000\\000p\\205\\000\\000\\000\\000\\000\\320Q%\\001\\000\\000\\000\\000P3%\\001\\000\\000\\000\\000\\227\\001\\376\\367\\377\\177\\000\\000\\005\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\370\\344\\377\\367\\377\\177\\000\\000 \\257\\303\\367\\377\\177\\000\\000\\260\\334\\377\\377\\377\\177\\000\\000>|\\376\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\004\\000\\000\\000\\000\\000\\000\\000`\\271%\\001\\000\\000\\000\\000@\\271%\\001\\000\\000\\000\\000 \\335\\377\\377\\377\\177\\000\\000\\003\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\321\\341\\367\\377\\177\\000\\000`\\330\\377\\377\\377\\177\\000\\000\\200\\330\\377\\377\\377\\177\\000\\000\\020\\333\\377\\377\\377\\177\\000\\000\\000\\332\\377\\377\\377\\177\\000\\000x\\000\\000\\000\\000\\000\\000\\000\\346\\257\\312\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\022\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\377\\177\\000\\000,\\000\\000\\000\\000\\000\\000\\000 \\321\\341\\367\\377\\177\\000\\000\\000\\000\\000\\000\\377\\177\\000\\000\\002\\000\\000\\000\\377\\177\\000\\000\\022\\333\\377\\377\\377\\177\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\377\\177\\000\\000\\000\\000\\000\\000\\a\\000\\000\\000\\240\\310\\341\\367\\377\\177\\000\\000h\\r\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\020\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\262\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\240\\321\\341\\367\\377\\177\\000\\000\\220\\331\\377\\377\\377\\177\\000\\000\\260\\331\\377\\377\\377\\177\\000\\000@\\334\\377\\377\\377\\177\\000\\0000\\333\\377\\377\\377\\177\\000\\000x\\000\\000\\000\\000\\000\\000\\000 \\000\\000\\0000\\000\\000\\000\\000\\333\\377\\377\\377\\177\\000\\000 \\332\\377\\377\\377\\177\\000\\000\\240\\310\\341\\367\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000B\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\021\\000\\000\\000\\000\\000\\000\\000 \\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\177\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000B\\334\\377\\377\\377\\177\\000\\000\\240\\321\\341\\367\\377\\177\\000\\000P\\332\\377\\377\\377\\177\\000\\000p\\332\\377\\377\\377\\177\\000\\000x\\234r\\000\\000\\000\\000\\000\\360\\333\\377\\377\\377\\177\\000\\000d\\000\\000\\000\\000\\000\\000\\000\\346\\257\\312\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\017\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\210\\234r\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\n\\000\\000\\000\\000\\000\\000\\000=\\000\\000\\000\\000\\000\\000\\000 \\000\\000\\0000\\000\\000\\000\\017\\000\\000\\000\\377\\177\\000\\000\\002\\000\\000\\000\\377\\177\\000\\000\\210\\234r\\000\\000\\000\\000\\000\\021\\000\\000\\000\\000\\000\\000\\000\\021\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\a\\000\\000\\000\\240\\310\\341\\367\\377\\177\\000\\000h\\r\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\207\\234r\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\030\\000\\000\\0000\\000\\000\\000\\320\\334\\377\\377\\377\\177\\000\\000\\020\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000=0.\\n\\n\\000CustomCros\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\356\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\246\\226\\300\\tx\\233\\355\\002\\000\\000\\000\\000\\000\\000\\000\\300\\334\\377\\377\\377\\177\\000\\000\\300\\025\\342\\367\\377\\177\\000\\000\\206\\340o\\000\\000\\000\\000\\000\\200\\335\\377\\377\\377\\177\\000\\000$\\255\\312\\367\\377\\177\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\246\\226\\300\\tx\\233\\355\\002\\000\\000\\000\\000\\000\\000\\000 \\335\\377\\377\\377\\177\\000\\000\\300\\025\\342\\367\\377\\177\\000\\000\\305\\276o\\000\\000\\000\\000\\000\\340\\335\\377\\377\\377\\177\\000\\000$\\255\\312\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\246\\226\\300\\tx\\233\\355\\002\\000\\000\\000\\000\\000\\000\\000`\\335\\377\\377\\377\\177\\000\\000\\300\\025\\342\\367\\377\\177\\000\\000\\311\\263o\\000\\000\\000\\000\\000 \\336\\377\\377\\377\\177\\000\\000$\\255\\312\\367\\a\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\177\\000\\0007\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\0007\\333\\377\\377\\377\\177\\000\\000\\200\\330\\377\\377\\377\\1772c\\000\\246\\226\\300\\tx\\233\\355 \\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\027\\000\\000\\000\\000\\000\\000\\000\\200\\330\\377\\377\\377\\177\\000\\000\\020\\333\\377\\377\\377\\177\\000\\000\\000\\332\\377\\377\\377\\177\\000\\000 \\333\\377\\377\\377\\177\\000\\000\\232\\377\\313\\367\\377\\177\\000\\000\\004\\331\\377\\377\\377\\177\\000\\000p\\331\\377\\377\\377\\177\\000\\000\\001\\200\\255\\373\\000\\000\\000\\000 \\333\\377\\377\\377\\177\\000\\000 \\333\\377\\377\\377\\177\\000\\000 \\333\\377\\377\\377\\177\\000\\000 \\333\\377\\377\\377\\177\\000\\000\\\"\\333\\377\\377\\377\\177\\000\\0007\\333\\377\\377\\377\\177\\000\\000 \\333\\377\\377\\377\\177\\000\\0007\\333\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\260\\333\\377\\377\\200\\000\\000\\000\\240\\332\\377\\377\\377\\177\\000\\000\\000\\000\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\300\\025\\342\\367\\377\\177\\000\\000\\020\\332\\377\\377\\377\\177\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000P\\334\\377\\377\\377\\177\\000\\000g\\334\\377\\377\\377\\177\\000\\000\\377\\377\\377\\377\\377\\177\\000\\000g\\334\\377\\377\\377\\177\\000\\000\\260\\331\\377\\377\\377\\17711\\240\\321\\341\\367\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\027\\000\\000\\000\\000\\000\\000\\000\\260\\331\\377\\377\\377\\177\\000\\000@\\334\\377\\377\\377\\177\\000\\0000\\333\\377\\377\\377\\177\\000\\000P\\334\\377\\377\\377\\177\\000\\000\\232\\377\\313\\367\\377\\177\\000\\0000\\000\\000\\000\\000\\000\\000\\0000\\000\\000\\000\\000\\000\\000\\000\\026\\000\\000\\000\\000\\000\\000\\000\\000\\246\\226\\300\\tx\\233\\355,\\000\\000\\000\\000\\000\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377 \\333\\377\\377\\377\\177\\000\\000 \\333\\377\\377\\377\\177\\000\\000\\210\\334\\377\\377\\377\\177\\000\\000\\020\\333\\377\\377\\377\\177\\000\\000 \\335\\377\\377\\377\\177\\000\\000\\037\\336\\377\\377\\377\\177\\000\\000(\\000\\000\\0000\\000\\000\\000\\037\\336\\377\\377\\377\\177\\000\\000p\\332\\377\\377\\377\\17761\\000\\246\\226\\300\\tx\\233\\355 \\335\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\000\\000\\000\\000\\000\\000\\000p\\332\\377\\377\\377\\177\\000\\000x\\234r\\000\\000\\000\\000\\000\\360\\333\\377\\377\\377\\177\\000\\000 \\335\\377\\377\\377\\177\\000\\000\\363\\305\\314\\367\\377\\177\\000\\000\\360'&\\001\\000\\000\\000\\000\\340\\v\\342\\367\\377\\177\\000\\000\\a\\000\\000\\000\\000\\000\\000\\000\\016\\\"%\\001\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000c\\000\\000\\000\\377\\177\\000\\000\\b(%\\001\\000\\000\\000\\0000\\020\\000\\000\\000\\000\\000\\000@\\000\\000\\000\\000\\000\\000\\000\\001\\001\\000\\000p\\000\\000\\000\\b\\000\\000\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000|\\000\\000\\000w\\000\\000\\000o\\000\\000\\000c\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@\\000\\000\\000\\200\\000\\000\\000\\377\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\200\\v\\342\\367\\377\\177\\000\\000h\\r\\000\\000\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\000(&\\001\\000\\000\\000\\000\\0008&\\001\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000p\\276%\\001\\000\\000\\000\\000\\035]\\313\\367\\377\\177\\000\\000<\\000\\000\\000\\000\\000\\000\\000.\\030\\236\\000\\000\\000\\000\\000\\001\\000\\000\\000\\000\\000\\000\\000\\244\\201\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\020\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\236\\341\\321e\\000\\000\\000\\000\\2376\\373\\036\\000\\000\\000\\000\\236\\341\\321e\\000\\000\\000\\000\\2376\\373\\036\\000\\000\\000\\000\\236\\341\\321e\\000\\000\\000\\000\\2376\\373\\036\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\266\\001\\000\\000\\000\\000\\000\\000\\213\\256\\314\\367\\377\\177\\000\\000p\\276%\\001\\000\\000\\000\\000\\344\\\"\\324\\367\\377\\177\\000\\000\\322\\0259\\001\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000\\000(&\\001\\000\\000\\000\\000\\002\\000\\000\\000\\000\\000\\000\\000p\\276%\\001\\000\\000\\000\\000\\000\\246\\226\\300\\tx\\233\\355`\\334\\377\\377\\377\\177\\000\\000x\\314P\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000(\\320$\\001\\000\\000\\000\\000`\\334\\377\\377\\377\\177\\000\\000P3%\\001\\000\\000\\000\\000(\\320$\\001\\000\\000\\000\\000\\240\\334\\377\\377\\377\\177\\000\\000\\035\\366L\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\324\\341\\367\\377\\177\\000\\000p\\276%\\001\\002\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\240\\334\\377\\377\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\""}, "Value After Statement Execution": "int", "Function Name": "known_hosts_read_line", "Block_Size": 28, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_buffer base64_to_bin(const char *source) {\n ssh_buffer buffer = NULL;\n unsigned char block[3];\n char *base64;\n char *ptr;\n size_t len;\n int equals;\n\n base64 = strdup(source);\n if (base64 == NULL) {\n return NULL;\n }\n ptr = base64;\n\n \n equals = get_equals(ptr);\n if (equals > 2) {\n SAFE_FREE(base64);\n return NULL;\n }\n\n buffer = ssh_buffer_new();\n if (buffer == NULL) {\n SAFE_FREE(base64);\n return NULL;\n }\n \n ssh_buffer_set_secure(buffer);\n\n len = strlen(ptr);\n while (len > 4) {\n if (_base64_to_bin(block, ptr, 3) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer, block, 3) < 0) {\n goto error;\n }\n len -= 4;\n ptr += 4;\n }\n\n \n switch (len) {\n \n case 4:\n if (equals != 0) {\n goto error;\n }\n if (_base64_to_bin(block, ptr, 3) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer, block, 3) < 0) {\n goto error;\n }\n SAFE_FREE(base64);\n\n return buffer;\n \n case 2:\n if (equals != 2){\n goto error;\n }\n\n if (_base64_to_bin(block, ptr, 1) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer, block, 1) < 0) {\n goto error;\n }\n SAFE_FREE(base64);\n\n return buffer;\n \n case 3:\n if (equals != 1) {\n goto error;\n }\n if (_base64_to_bin(block, ptr, 2) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer,block,2) < 0) {\n goto error;\n }\n SAFE_FREE(base64);\n\n return buffer;\n default:\n \n goto error;\n }\n\nerror:\n SAFE_FREE(base64);\n SSH_BUFFER_FREE(buffer);\n return NULL;\n}", "Selected Statement": "base64 = strdup(source);", "Function Input": {"source": {"value": "0x2 "}}, "Variable Values Before Statement": {"source": "0x1262d90 \"\""}, "Value After Statement Execution": "0x1262e10 \"\"", "Function Name": "strdup", "Block_Size": 7, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_buffer base64_to_bin(const char *source) {\n ssh_buffer buffer = NULL;\n unsigned char block[3];\n char *base64;\n char *ptr;\n size_t len;\n int equals;\n\n base64 = strdup(source);\n if (base64 == NULL) {\n return NULL;\n }\n ptr = base64;\n\n \n equals = get_equals(ptr);\n if (equals > 2) {\n SAFE_FREE(base64);\n return NULL;\n }\n\n buffer = ssh_buffer_new();\n if (buffer == NULL) {\n SAFE_FREE(base64);\n return NULL;\n }\n \n ssh_buffer_set_secure(buffer);\n\n len = strlen(ptr);\n while (len > 4) {\n if (_base64_to_bin(block, ptr, 3) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer, block, 3) < 0) {\n goto error;\n }\n len -= 4;\n ptr += 4;\n }\n\n \n switch (len) {\n \n case 4:\n if (equals != 0) {\n goto error;\n }\n if (_base64_to_bin(block, ptr, 3) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer, block, 3) < 0) {\n goto error;\n }\n SAFE_FREE(base64);\n\n return buffer;\n \n case 2:\n if (equals != 2){\n goto error;\n }\n\n if (_base64_to_bin(block, ptr, 1) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer, block, 1) < 0) {\n goto error;\n }\n SAFE_FREE(base64);\n\n return buffer;\n \n case 3:\n if (equals != 1) {\n goto error;\n }\n if (_base64_to_bin(block, ptr, 2) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer,block,2) < 0) {\n goto error;\n }\n SAFE_FREE(base64);\n\n return buffer;\n default:\n \n goto error;\n }\n\nerror:\n SAFE_FREE(base64);\n SSH_BUFFER_FREE(buffer);\n return NULL;\n}", "Selected Statement": "equals = get_equals(ptr);", "Function Input": {"source": {"value": "0x2 "}}, "Variable Values Before Statement": {"ptr": "0x1262e10 \"\""}, "Value After Statement Execution": "int", "Function Name": "get_equals", "Block_Size": 14, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_buffer base64_to_bin(const char *source) {\n ssh_buffer buffer = NULL;\n unsigned char block[3];\n char *base64;\n char *ptr;\n size_t len;\n int equals;\n\n base64 = strdup(source);\n if (base64 == NULL) {\n return NULL;\n }\n ptr = base64;\n\n \n equals = get_equals(ptr);\n if (equals > 2) {\n SAFE_FREE(base64);\n return NULL;\n }\n\n buffer = ssh_buffer_new();\n if (buffer == NULL) {\n SAFE_FREE(base64);\n return NULL;\n }\n \n ssh_buffer_set_secure(buffer);\n\n len = strlen(ptr);\n while (len > 4) {\n if (_base64_to_bin(block, ptr, 3) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer, block, 3) < 0) {\n goto error;\n }\n len -= 4;\n ptr += 4;\n }\n\n \n switch (len) {\n \n case 4:\n if (equals != 0) {\n goto error;\n }\n if (_base64_to_bin(block, ptr, 3) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer, block, 3) < 0) {\n goto error;\n }\n SAFE_FREE(base64);\n\n return buffer;\n \n case 2:\n if (equals != 2){\n goto error;\n }\n\n if (_base64_to_bin(block, ptr, 1) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer, block, 1) < 0) {\n goto error;\n }\n SAFE_FREE(base64);\n\n return buffer;\n \n case 3:\n if (equals != 1) {\n goto error;\n }\n if (_base64_to_bin(block, ptr, 2) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer,block,2) < 0) {\n goto error;\n }\n SAFE_FREE(base64);\n\n return buffer;\n default:\n \n goto error;\n }\n\nerror:\n SAFE_FREE(base64);\n SSH_BUFFER_FREE(buffer);\n return NULL;\n}", "Selected Statement": "buffer = ssh_buffer_new();", "Function Input": {"source": {"value": "0x2 "}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "ssh_buffer", "Function Name": "ssh_buffer_new", "Block_Size": 20, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_buffer base64_to_bin(const char *source) {\n ssh_buffer buffer = NULL;\n unsigned char block[3];\n char *base64;\n char *ptr;\n size_t len;\n int equals;\n\n base64 = strdup(source);\n if (base64 == NULL) {\n return NULL;\n }\n ptr = base64;\n\n \n equals = get_equals(ptr);\n if (equals > 2) {\n SAFE_FREE(base64);\n return NULL;\n }\n\n buffer = ssh_buffer_new();\n if (buffer == NULL) {\n SAFE_FREE(base64);\n return NULL;\n }\n \n ssh_buffer_set_secure(buffer);\n\n len = strlen(ptr);\n while (len > 4) {\n if (_base64_to_bin(block, ptr, 3) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer, block, 3) < 0) {\n goto error;\n }\n len -= 4;\n ptr += 4;\n }\n\n \n switch (len) {\n \n case 4:\n if (equals != 0) {\n goto error;\n }\n if (_base64_to_bin(block, ptr, 3) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer, block, 3) < 0) {\n goto error;\n }\n SAFE_FREE(base64);\n\n return buffer;\n \n case 2:\n if (equals != 2){\n goto error;\n }\n\n if (_base64_to_bin(block, ptr, 1) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer, block, 1) < 0) {\n goto error;\n }\n SAFE_FREE(base64);\n\n return buffer;\n \n case 3:\n if (equals != 1) {\n goto error;\n }\n if (_base64_to_bin(block, ptr, 2) < 0) {\n goto error;\n }\n if (ssh_buffer_add_data(buffer,block,2) < 0) {\n goto error;\n }\n SAFE_FREE(base64);\n\n return buffer;\n default:\n \n goto error;\n }\n\nerror:\n SAFE_FREE(base64);\n SSH_BUFFER_FREE(buffer);\n return NULL;\n}", "Selected Statement": "len = strlen(ptr);", "Function Input": {"source": {"value": "0x2 "}}, "Variable Values Before Statement": {"ptr": "0x1262e10 \"\""}, "Value After Statement Execution": "0", "Function Name": "strlen", "Block_Size": 31, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_key pki_private_key_from_base64(const char *b64_key,\n const char *passphrase,\n ssh_auth_callback auth_fn,\n void *auth_data)\n{\n BIO *mem = NULL;\n#if OPENSSL_VERSION_NUMBER < 0x30000000L\n EC_KEY *ecdsa = NULL;\n#endif \n uint8_t *ed25519 = NULL;\n uint8_t *ed25519_pubkey = NULL;\n ssh_key key = NULL;\n enum ssh_keytypes_e type = SSH_KEYTYPE_UNKNOWN;\n EVP_PKEY *pkey = NULL;\n\n mem = BIO_new_mem_buf((void*)b64_key, -1);\n\n if (passphrase == NULL) {\n if (auth_fn) {\n struct pem_get_password_struct pgp = { auth_fn, auth_data };\n\n pkey = PEM_read_bio_PrivateKey(mem, NULL, pem_get_password, &pgp);\n } else {\n \n pkey = PEM_read_bio_PrivateKey(mem, NULL, NULL, NULL);\n }\n } else {\n pkey = PEM_read_bio_PrivateKey(mem, NULL, NULL, (void *) passphrase);\n }\n\n BIO_free(mem);\n\n if (pkey == NULL) {\n SSH_LOG(SSH_LOG_TRACE,\n \"Error parsing private key: %s\",\n ERR_error_string(ERR_get_error(), NULL));\n return NULL;\n }\n switch (EVP_PKEY_base_id(pkey)) {\n case EVP_PKEY_RSA:\n type = SSH_KEYTYPE_RSA;\n break;\n case EVP_PKEY_EC:\n#ifdef HAVE_OPENSSL_ECC\n#if OPENSSL_VERSION_NUMBER < 0x30000000L\n ecdsa = EVP_PKEY_get0_EC_KEY(pkey);\n if (ecdsa == NULL) {\n SSH_LOG(SSH_LOG_TRACE,\n\t\t \"Error parsing private key: %s\",\n ERR_error_string(ERR_get_error(), NULL));\n goto fail;\n }\n#endif \n\n \n#if OPENSSL_VERSION_NUMBER < 0x30000000L\n type = pki_key_ecdsa_to_key_type(ecdsa);\n#else\n type = pki_key_ecdsa_to_key_type(pkey);\n#endif \n if (type == SSH_KEYTYPE_UNKNOWN) {\n SSH_LOG(SSH_LOG_TRACE, \"Invalid private key.\");\n goto fail;\n }\n\n break;\n#endif \n case EVP_PKEY_ED25519:\n {\n size_t key_len;\n int evp_rc = 0;\n\n \n evp_rc = EVP_PKEY_get_raw_private_key(pkey, NULL, &key_len);\n if (evp_rc != 1) {\n SSH_LOG(SSH_LOG_TRACE,\n \"Failed to get ed25519 raw private key length: %s\",\n ERR_error_string(ERR_get_error(), NULL));\n goto fail;\n }\n\n if (key_len != ED25519_KEY_LEN) {\n goto fail;\n }\n\n ed25519 = malloc(key_len);\n if (ed25519 == NULL) {\n SSH_LOG(SSH_LOG_TRACE, \"Out of memory\");\n goto fail;\n }\n\n evp_rc = EVP_PKEY_get_raw_private_key(pkey, (uint8_t *)ed25519,\n &key_len);\n if (evp_rc != 1) {\n SSH_LOG(SSH_LOG_TRACE,\n \"Failed to get ed25519 raw private key: %s\",\n ERR_error_string(ERR_get_error(), NULL));\n goto fail;\n }\n\n \n ed25519_pubkey = malloc(ED25519_KEY_LEN);\n if (ed25519_pubkey == NULL) {\n SSH_LOG(SSH_LOG_TRACE, \"Out of memory\");\n goto fail;\n }\n\n evp_rc = EVP_PKEY_get_raw_public_key(pkey, (uint8_t *)ed25519_pubkey,\n &key_len);\n if (evp_rc != 1) {\n SSH_LOG(SSH_LOG_TRACE,\n \"Failed to get ed25519 raw public key: %s\",\n ERR_error_string(ERR_get_error(), NULL));\n goto fail;\n }\n type = SSH_KEYTYPE_ED25519;\n\n }\n break;\n default:\n SSH_LOG(SSH_LOG_TRACE, \"Unknown or invalid private key type %d\",\n EVP_PKEY_base_id(pkey));\n EVP_PKEY_free(pkey);\n return NULL;\n }\n\n key = ssh_key_new();\n if (key == NULL) {\n goto fail;\n }\n\n key->type = type;\n key->type_c = ssh_key_type_to_char(type);\n key->flags = SSH_KEY_FLAG_PRIVATE | SSH_KEY_FLAG_PUBLIC;\n key->key = pkey;\n key->ed25519_privkey = ed25519;\n key->ed25519_pubkey = ed25519_pubkey;\n#ifdef HAVE_OPENSSL_ECC\n if (is_ecdsa_key_type(key->type)) {\n#if OPENSSL_VERSION_NUMBER < 0x30000000L\n key->ecdsa_nid = pki_key_ecdsa_to_nid(ecdsa);\n#else\n key->ecdsa_nid = pki_key_ecdsa_to_nid(key->key);\n#endif \n }\n#endif \n\n return key;\nfail:\n EVP_PKEY_free(pkey);\n ssh_key_free(key);\n SAFE_FREE(ed25519);\n SAFE_FREE(ed25519_pubkey);\n return NULL;\n}", "Selected Statement": "enum ssh_keytypes_e type = SSH_KEYTYPE_UNKNOWN;", "Function Input": {}, "Variable Values Before Statement": {"SSH_KEYTYPE_UNKNOWN": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 11, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "static int write_rsa_hostkey(const char *rsakey_path)\n{\n FILE *fp = NULL;\n size_t nwritten;\n\n fp = fopen(rsakey_path, \"wb\");\n if (fp == NULL) {\n return -1;\n }\n\n nwritten = fwrite(kRSAPrivateKeyPEM, 1, strlen(kRSAPrivateKeyPEM), fp);\n fclose(fp);\n\n if (nwritten != strlen(kRSAPrivateKeyPEM)) {\n return -1;\n }\n\n return 0;\n}", "Selected Statement": "fp = fopen(rsakey_path, \"wb\");", "Function Input": {}, "Variable Values Before Statement": {"rsakey_path": "0x72c8f4 \"/tmp/libssh_fuzzer_private_key\"", "\"wb\"": "\"wb\""}, "Value After Statement Execution": "NULL", "Function Name": "fopen", "Block_Size": 4, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "static int write_rsa_hostkey(const char *rsakey_path)\n{\n FILE *fp = NULL;\n size_t nwritten;\n\n fp = fopen(rsakey_path, \"wb\");\n if (fp == NULL) {\n return -1;\n }\n\n nwritten = fwrite(kRSAPrivateKeyPEM, 1, strlen(kRSAPrivateKeyPEM), fp);\n fclose(fp);\n\n if (nwritten != strlen(kRSAPrivateKeyPEM)) {\n return -1;\n }\n\n return 0;\n}", "Selected Statement": "nwritten = fwrite(kRSAPrivateKeyPEM, 1, strlen(kRSAPrivateKeyPEM), fp);", "Function Input": {}, "Variable Values Before Statement": {"kRSAPrivateKeyPEM": "\"-----BEGIN RSA PRIVATE KEY-----\\nMIIEowIBAAKCAQEArAOREUWlBXJAKZ5hABYyxnRayDZP1bJeLbPVK+npxemrhHyZ\\ngjdbY3ADot+JRyWjvll2w2GI+3blt0j+x/ZWwjMKu/QYcycYp5HL01goxOxuusZb\\ni+KiHRGB6z0EMdXM7U82U7lA/j//HyZppyDjUDniWabXQJge8ksGXGTiFeAJ/687\\nuV+JJcjGPxAGFQxzyjitf/FrL9S0WGKZbyqeGDzyeBZ1NLIuaiOORyLGSW4duHLD\\nN78EmsJnwqg2gJQmRSaD4BNZMjtbfiFcSL9Uw4XQFTsWugUDEY1AU4c5g11nhzHz\\nBi9qMOt5DzrZQpD4j0gA2LOHpHhoOdg1ZuHrGQIDAQABAoIBAFJTaqy/jllq8vZ4\\nTKiD900wBvrns5HtSlHJTe80hqQoT+Sa1cWSxPR0eekL32Hjy9igbMzZ83uWzh7I\\nmtgNODy9vRdznfgO8CfTCaBfAzQsjFpr8QikMT6EUI/LpiRL1UaGsNOlSEvnSS0Z\\nb1uDzAdrjL+nsEHEDJud+K9jwSkCRifVMy7fLfaum+YKpdeEz7K2Mgm5pJ/Vg+9s\\nvI2V1q7HAOI4eUVTgJNHXy5ediRJlajQHf/lNUzHKqn7iH+JRl01gt62X8roG62b\\nTbFylbheqMm9awuSF2ucOcx+guuwhkPir8BEMb08j3hiK+TfwPdY0F6QH4OhiKK7\\nMTqTVgECgYEA0vmmu5GOBtwRmq6gVNCHhdLDQWaxAZqQRmRbzxVhFpbv0GjbQEF7\\ntttq3fjDrzDf6CE9RtZWw2BUSXVq+IXB/bXb1kgWU2xWywm+OFDk9OXQs8ui+MY7\\nFiP3yuq3YJob2g5CCsVQWl2CHvWGmTLhE1ODll39t7Y1uwdcDobJN+ECgYEA0LlR\\nhfMjydWmwqooU9TDjXNBmwufyYlNFTH351amYgFUDpNf35SMCP4hDosUw/zCTDpc\\n+1w04BJJfkH1SNvXSOilpdaYRTYuryDvGmWC66K2KX1nLErhlhs17CwzV997nYgD\\nH3OOU4HfqIKmdGbjvWlkmY+mLHyG10bbpOTbujkCgYAc68xHejSWDCT9p2KjPdLW\\nLYZGuOUa6y1L+QX85Vlh118Ymsczj8Z90qZbt3Zb1b9b+vKDe255agMj7syzNOLa\\n/MseHNOyq+9Z9gP1hGFekQKDIy88GzCOYG/fiT2KKJYY1kuHXnUdbiQgSlghODBS\\njehD/K6DOJ80/FVKSH/dAQKBgQDJ+apTzpZhJ2f5k6L2jDq3VEK2ACedZEm9Kt9T\\nc1wKFnL6r83kkuB3i0L9ycRMavixvwBfFDjuY4POs5Dh8ip/mPFCa0hqISZHvbzi\\ndDyePJO9zmXaTJPDJ42kfpkofVAnfohXFQEy+cguTk848J+MmMIKfyE0h0QMabr9\\n86BUsQKBgEVgoi4RXwmtGovtMew01ORPV9MOX3v+VnsCgD4/56URKOAngiS70xEP\\nONwNbTCWuuv43HGzJoVFiAMGnQP1BAJ7gkHkjSegOGKkiw12EPUWhFcMg+GkgPhc\\npOqNt/VMBPjJ/ysHJqmLfQK9A35JV6Cmdphe+OIl28bcKhAOz8Dw\\n-----END RSA PRIVATE KEY-----\\n\"", "1": "1", "fp": "NULL"}, "Value After Statement Execution": "1675", "Function Name": "fwrite", "Block_Size": 9, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_bind ssh_bind_new(void) {\n ssh_bind ptr;\n\n ptr = calloc(1, sizeof(struct ssh_bind_struct));\n if (ptr == NULL) {\n return NULL;\n }\n ptr->bindfd = SSH_INVALID_SOCKET;\n ptr->bindport = 22;\n ptr->common.log_verbosity = 0;\n\n return ptr;\n}", "Selected Statement": "ptr = calloc(1, sizeof(struct ssh_bind_struct));", "Function Input": {}, "Variable Values Before Statement": {"1": "1"}, "Value After Statement Execution": "ssh_bind", "Function Name": "calloc", "Block_Size": 2, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_bind ssh_bind_new(void) {\n ssh_bind ptr;\n\n ptr = calloc(1, sizeof(struct ssh_bind_struct));\n if (ptr == NULL) {\n return NULL;\n }\n ptr->bindfd = SSH_INVALID_SOCKET;\n ptr->bindport = 22;\n ptr->common.log_verbosity = 0;\n\n return ptr;\n}", "Selected Statement": "ptr->bindfd = SSH_INVALID_SOCKET;", "Function Input": {}, "Variable Values Before Statement": {"SSH_INVALID_SOCKET": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 6, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_bind ssh_bind_new(void) {\n ssh_bind ptr;\n\n ptr = calloc(1, sizeof(struct ssh_bind_struct));\n if (ptr == NULL) {\n return NULL;\n }\n ptr->bindfd = SSH_INVALID_SOCKET;\n ptr->bindport = 22;\n ptr->common.log_verbosity = 0;\n\n return ptr;\n}", "Selected Statement": "ptr->bindport = 22;", "Function Input": {}, "Variable Values Before Statement": {"constant": "22"}, "Value After Statement Execution": "22", "Block_Size": 7, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session = calloc(1, sizeof (struct ssh_session_struct));", "Function Input": {}, "Variable Values Before Statement": {"1": "1"}, "Value After Statement Execution": "ssh_session", "Function Name": "calloc", "Block_Size": 5, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->next_crypto = crypto_new();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "crypto_new", "Block_Size": 10, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->socket = ssh_socket_new(session);", "Function Input": {}, "Variable Values Before Statement": {"session": "ssh_session"}, "Value After Statement Execution": "NULL", "Function Name": "ssh_socket_new", "Block_Size": 15, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->out_buffer = ssh_buffer_new();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "ssh_buffer_new", "Block_Size": 20, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->in_buffer = ssh_buffer_new();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "ssh_buffer_new", "Block_Size": 25, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->out_queue = ssh_list_new();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "ssh_list_new", "Block_Size": 30, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->alive = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 35, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->auth.supported_methods = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 36, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->agent = ssh_agent_new(session);", "Function Input": {}, "Variable Values Before Statement": {"session": "ssh_session"}, "Value After Statement Execution": "NULL", "Function Name": "ssh_agent_new", "Block_Size": 40, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->opts.StrictHostKeyChecking = 1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 46, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->opts.port = 22;", "Function Input": {}, "Variable Values Before Statement": {"constant": "22"}, "Value After Statement Execution": "22", "Block_Size": 47, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->opts.fd = -1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 48, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->opts.compressionlevel = 7;", "Function Input": {}, "Variable Values Before Statement": {"constant": "7"}, "Value After Statement Execution": "7", "Block_Size": 49, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->opts.nodelay = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 50, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->opts.identity = ssh_list_new();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "ssh_list_new", "Block_Size": 61, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->opts.identity_non_exp = ssh_list_new();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "ssh_list_new", "Block_Size": 65, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->opts.certificate = ssh_list_new();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "ssh_list_new", "Block_Size": 70, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->opts.certificate_non_exp = ssh_list_new();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "ssh_list_new", "Block_Size": 74, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "id = strdup(\"%d/id_ed25519\");", "Function Input": {}, "Variable Values Before Statement": {"\"%d/id_ed25519\"": "\"%d/id_ed25519\""}, "Value After Statement Execution": "0x125ad20 \"%d/id_ed25519\"", "Function Name": "strdup", "Block_Size": 81, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "rc = ssh_list_append(session->opts.identity_non_exp, id);", "Function Input": {}, "Variable Values Before Statement": {"session->opts.identity_non_exp": "NULL", "id": "0x125ad20 \"%d/id_ed25519\""}, "Value After Statement Execution": "int", "Function Name": "ssh_list_append", "Block_Size": 86, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "id = strdup(\"%d/id_ecdsa\");", "Function Input": {}, "Variable Values Before Statement": {"\"%d/id_ecdsa\"": "\"%d/id_ecdsa\""}, "Value After Statement Execution": "0x125ad60 \"%d/id_ecdsa\"", "Function Name": "strdup", "Block_Size": 92, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "rc = ssh_list_append(session->opts.identity_non_exp, id);", "Function Input": {}, "Variable Values Before Statement": {"session->opts.identity_non_exp": "NULL", "id": "0x125ad60 \"%d/id_ecdsa\""}, "Value After Statement Execution": "int", "Function Name": "ssh_list_append", "Block_Size": 96, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "id = strdup(\"%d/id_rsa\");", "Function Input": {}, "Variable Values Before Statement": {"\"%d/id_rsa\"": "\"%d/id_rsa\""}, "Value After Statement Execution": "0x125ada0 \"%d/id_rsa\"", "Function Name": "strdup", "Block_Size": 102, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "rc = ssh_list_append(session->opts.identity_non_exp, id);", "Function Input": {}, "Variable Values Before Statement": {"session->opts.identity_non_exp": "NULL", "id": "0x125ada0 \"%d/id_rsa\""}, "Value After Statement Execution": "int", "Function Name": "ssh_list_append", "Block_Size": 106, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->session_state = SSH_SESSION_STATE_NONE;", "Function Input": {}, "Variable Values Before Statement": {"SSH_SESSION_STATE_NONE": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 112, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->pending_call_state = SSH_PENDING_CALL_NONE;", "Function Input": {}, "Variable Values Before Statement": {"SSH_PENDING_CALL_NONE": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 113, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->packet_state = PACKET_STATE_INIT;", "Function Input": {}, "Variable Values Before Statement": {"PACKET_STATE_INIT": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 114, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->dh_handshake_state = DH_STATE_INIT;", "Function Input": {}, "Variable Values Before Statement": {"DH_STATE_INIT": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 115, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_session ssh_new(void)\n{\n ssh_session session;\n char *id = NULL;\n int rc;\n\n session = calloc(1, sizeof (struct ssh_session_struct));\n if (session == NULL) {\n return NULL;\n }\n\n session->next_crypto = crypto_new();\n if (session->next_crypto == NULL) {\n goto err;\n }\n\n session->socket = ssh_socket_new(session);\n if (session->socket == NULL) {\n goto err;\n }\n\n session->out_buffer = ssh_buffer_new();\n if (session->out_buffer == NULL) {\n goto err;\n }\n\n session->in_buffer = ssh_buffer_new();\n if (session->in_buffer == NULL) {\n goto err;\n }\n\n session->out_queue = ssh_list_new();\n if (session->out_queue == NULL) {\n goto err;\n }\n\n session->alive = 0;\n session->auth.supported_methods = 0;\n ssh_set_blocking(session, 1);\n session->maxchannel = FIRST_CHANNEL;\n\n session->agent = ssh_agent_new(session);\n if (session->agent == NULL) {\n goto err;\n }\n\n \n session->opts.StrictHostKeyChecking = 1;\n session->opts.port = 22;\n session->opts.fd = -1;\n session->opts.compressionlevel = 7;\n session->opts.nodelay = 0;\n session->opts.identities_only = false;\n session->opts.control_master = SSH_CONTROL_MASTER_NO;\n\n session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH |\n SSH_OPT_FLAG_PUBKEY_AUTH |\n SSH_OPT_FLAG_KBDINT_AUTH |\n SSH_OPT_FLAG_GSSAPI_AUTH;\n\n session->opts.exp_flags = 0;\n\n session->opts.identity = ssh_list_new();\n if (session->opts.identity == NULL) {\n goto err;\n }\n session->opts.identity_non_exp = ssh_list_new();\n if (session->opts.identity_non_exp == NULL) {\n goto err;\n }\n\n session->opts.certificate = ssh_list_new();\n if (session->opts.certificate == NULL) {\n goto err;\n }\n session->opts.certificate_non_exp = ssh_list_new();\n if (session->opts.certificate_non_exp == NULL) {\n goto err;\n }\n \n\n id = strdup(\"%d/id_ed25519\");\n if (id == NULL) {\n goto err;\n }\n\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n#ifdef HAVE_ECC\n id = strdup(\"%d/id_ecdsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n#endif\n\n id = strdup(\"%d/id_rsa\");\n if (id == NULL) {\n goto err;\n }\n rc = ssh_list_append(session->opts.identity_non_exp, id);\n if (rc == SSH_ERROR) {\n goto err;\n }\n\n \n session->session_state = SSH_SESSION_STATE_NONE;\n session->pending_call_state = SSH_PENDING_CALL_NONE;\n session->packet_state = PACKET_STATE_INIT;\n session->dh_handshake_state = DH_STATE_INIT;\n session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;\n\n session->auth.state = SSH_AUTH_STATE_NONE;\n session->auth.service_state = SSH_AUTH_SERVICE_NONE;\n\n return session;\n\nerr:\n free(id);\n ssh_free(session);\n return NULL;\n}", "Selected Statement": "session->auth.state = SSH_AUTH_STATE_NONE;", "Function Input": {}, "Variable Values Before Statement": {"SSH_AUTH_STATE_NONE": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 118, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_socket ssh_socket_new(ssh_session session)\n{\n ssh_socket s;\n\n s = calloc(1, sizeof(struct ssh_socket_struct));\n if (s == NULL) {\n ssh_set_error_oom(session);\n return NULL;\n }\n s->fd = SSH_INVALID_SOCKET;\n s->last_errno = -1;\n s->fd_is_socket = 1;\n s->session = session;\n s->in_buffer = ssh_buffer_new();\n if (s->in_buffer == NULL) {\n ssh_set_error_oom(session);\n SAFE_FREE(s);\n return NULL;\n }\n s->out_buffer=ssh_buffer_new();\n if (s->out_buffer == NULL) {\n ssh_set_error_oom(session);\n SSH_BUFFER_FREE(s->in_buffer);\n SAFE_FREE(s);\n return NULL;\n }\n s->read_wontblock = 0;\n s->write_wontblock = 0;\n s->data_except = 0;\n s->poll_handle = NULL;\n s->state=SSH_SOCKET_NONE;\n return s;\n}", "Selected Statement": "s = calloc(1, sizeof(struct ssh_socket_struct));", "Function Input": {}, "Variable Values Before Statement": {"1": "1"}, "Value After Statement Execution": "ssh_socket", "Function Name": "calloc", "Block_Size": 3, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_socket ssh_socket_new(ssh_session session)\n{\n ssh_socket s;\n\n s = calloc(1, sizeof(struct ssh_socket_struct));\n if (s == NULL) {\n ssh_set_error_oom(session);\n return NULL;\n }\n s->fd = SSH_INVALID_SOCKET;\n s->last_errno = -1;\n s->fd_is_socket = 1;\n s->session = session;\n s->in_buffer = ssh_buffer_new();\n if (s->in_buffer == NULL) {\n ssh_set_error_oom(session);\n SAFE_FREE(s);\n return NULL;\n }\n s->out_buffer=ssh_buffer_new();\n if (s->out_buffer == NULL) {\n ssh_set_error_oom(session);\n SSH_BUFFER_FREE(s->in_buffer);\n SAFE_FREE(s);\n return NULL;\n }\n s->read_wontblock = 0;\n s->write_wontblock = 0;\n s->data_except = 0;\n s->poll_handle = NULL;\n s->state=SSH_SOCKET_NONE;\n return s;\n}", "Selected Statement": "s->fd = SSH_INVALID_SOCKET;", "Function Input": {}, "Variable Values Before Statement": {"SSH_INVALID_SOCKET": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 8, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_socket ssh_socket_new(ssh_session session)\n{\n ssh_socket s;\n\n s = calloc(1, sizeof(struct ssh_socket_struct));\n if (s == NULL) {\n ssh_set_error_oom(session);\n return NULL;\n }\n s->fd = SSH_INVALID_SOCKET;\n s->last_errno = -1;\n s->fd_is_socket = 1;\n s->session = session;\n s->in_buffer = ssh_buffer_new();\n if (s->in_buffer == NULL) {\n ssh_set_error_oom(session);\n SAFE_FREE(s);\n return NULL;\n }\n s->out_buffer=ssh_buffer_new();\n if (s->out_buffer == NULL) {\n ssh_set_error_oom(session);\n SSH_BUFFER_FREE(s->in_buffer);\n SAFE_FREE(s);\n return NULL;\n }\n s->read_wontblock = 0;\n s->write_wontblock = 0;\n s->data_except = 0;\n s->poll_handle = NULL;\n s->state=SSH_SOCKET_NONE;\n return s;\n}", "Selected Statement": "s->last_errno = -1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 9, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_socket ssh_socket_new(ssh_session session)\n{\n ssh_socket s;\n\n s = calloc(1, sizeof(struct ssh_socket_struct));\n if (s == NULL) {\n ssh_set_error_oom(session);\n return NULL;\n }\n s->fd = SSH_INVALID_SOCKET;\n s->last_errno = -1;\n s->fd_is_socket = 1;\n s->session = session;\n s->in_buffer = ssh_buffer_new();\n if (s->in_buffer == NULL) {\n ssh_set_error_oom(session);\n SAFE_FREE(s);\n return NULL;\n }\n s->out_buffer=ssh_buffer_new();\n if (s->out_buffer == NULL) {\n ssh_set_error_oom(session);\n SSH_BUFFER_FREE(s->in_buffer);\n SAFE_FREE(s);\n return NULL;\n }\n s->read_wontblock = 0;\n s->write_wontblock = 0;\n s->data_except = 0;\n s->poll_handle = NULL;\n s->state=SSH_SOCKET_NONE;\n return s;\n}", "Selected Statement": "s->fd_is_socket = 1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 10, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_socket ssh_socket_new(ssh_session session)\n{\n ssh_socket s;\n\n s = calloc(1, sizeof(struct ssh_socket_struct));\n if (s == NULL) {\n ssh_set_error_oom(session);\n return NULL;\n }\n s->fd = SSH_INVALID_SOCKET;\n s->last_errno = -1;\n s->fd_is_socket = 1;\n s->session = session;\n s->in_buffer = ssh_buffer_new();\n if (s->in_buffer == NULL) {\n ssh_set_error_oom(session);\n SAFE_FREE(s);\n return NULL;\n }\n s->out_buffer=ssh_buffer_new();\n if (s->out_buffer == NULL) {\n ssh_set_error_oom(session);\n SSH_BUFFER_FREE(s->in_buffer);\n SAFE_FREE(s);\n return NULL;\n }\n s->read_wontblock = 0;\n s->write_wontblock = 0;\n s->data_except = 0;\n s->poll_handle = NULL;\n s->state=SSH_SOCKET_NONE;\n return s;\n}", "Selected Statement": "s->session = session;", "Function Input": {}, "Variable Values Before Statement": {"session": "ssh_session"}, "Value After Statement Execution": "ssh_session", "Block_Size": 11, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_socket ssh_socket_new(ssh_session session)\n{\n ssh_socket s;\n\n s = calloc(1, sizeof(struct ssh_socket_struct));\n if (s == NULL) {\n ssh_set_error_oom(session);\n return NULL;\n }\n s->fd = SSH_INVALID_SOCKET;\n s->last_errno = -1;\n s->fd_is_socket = 1;\n s->session = session;\n s->in_buffer = ssh_buffer_new();\n if (s->in_buffer == NULL) {\n ssh_set_error_oom(session);\n SAFE_FREE(s);\n return NULL;\n }\n s->out_buffer=ssh_buffer_new();\n if (s->out_buffer == NULL) {\n ssh_set_error_oom(session);\n SSH_BUFFER_FREE(s->in_buffer);\n SAFE_FREE(s);\n return NULL;\n }\n s->read_wontblock = 0;\n s->write_wontblock = 0;\n s->data_except = 0;\n s->poll_handle = NULL;\n s->state=SSH_SOCKET_NONE;\n return s;\n}", "Selected Statement": "s->in_buffer = ssh_buffer_new();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "ssh_buffer_new", "Block_Size": 12, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_socket ssh_socket_new(ssh_session session)\n{\n ssh_socket s;\n\n s = calloc(1, sizeof(struct ssh_socket_struct));\n if (s == NULL) {\n ssh_set_error_oom(session);\n return NULL;\n }\n s->fd = SSH_INVALID_SOCKET;\n s->last_errno = -1;\n s->fd_is_socket = 1;\n s->session = session;\n s->in_buffer = ssh_buffer_new();\n if (s->in_buffer == NULL) {\n ssh_set_error_oom(session);\n SAFE_FREE(s);\n return NULL;\n }\n s->out_buffer=ssh_buffer_new();\n if (s->out_buffer == NULL) {\n ssh_set_error_oom(session);\n SSH_BUFFER_FREE(s->in_buffer);\n SAFE_FREE(s);\n return NULL;\n }\n s->read_wontblock = 0;\n s->write_wontblock = 0;\n s->data_except = 0;\n s->poll_handle = NULL;\n s->state=SSH_SOCKET_NONE;\n return s;\n}", "Selected Statement": "s->out_buffer=ssh_buffer_new();", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "ssh_buffer_new", "Block_Size": 18, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_socket ssh_socket_new(ssh_session session)\n{\n ssh_socket s;\n\n s = calloc(1, sizeof(struct ssh_socket_struct));\n if (s == NULL) {\n ssh_set_error_oom(session);\n return NULL;\n }\n s->fd = SSH_INVALID_SOCKET;\n s->last_errno = -1;\n s->fd_is_socket = 1;\n s->session = session;\n s->in_buffer = ssh_buffer_new();\n if (s->in_buffer == NULL) {\n ssh_set_error_oom(session);\n SAFE_FREE(s);\n return NULL;\n }\n s->out_buffer=ssh_buffer_new();\n if (s->out_buffer == NULL) {\n ssh_set_error_oom(session);\n SSH_BUFFER_FREE(s->in_buffer);\n SAFE_FREE(s);\n return NULL;\n }\n s->read_wontblock = 0;\n s->write_wontblock = 0;\n s->data_except = 0;\n s->poll_handle = NULL;\n s->state=SSH_SOCKET_NONE;\n return s;\n}", "Selected Statement": "s->read_wontblock = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 25, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_socket ssh_socket_new(ssh_session session)\n{\n ssh_socket s;\n\n s = calloc(1, sizeof(struct ssh_socket_struct));\n if (s == NULL) {\n ssh_set_error_oom(session);\n return NULL;\n }\n s->fd = SSH_INVALID_SOCKET;\n s->last_errno = -1;\n s->fd_is_socket = 1;\n s->session = session;\n s->in_buffer = ssh_buffer_new();\n if (s->in_buffer == NULL) {\n ssh_set_error_oom(session);\n SAFE_FREE(s);\n return NULL;\n }\n s->out_buffer=ssh_buffer_new();\n if (s->out_buffer == NULL) {\n ssh_set_error_oom(session);\n SSH_BUFFER_FREE(s->in_buffer);\n SAFE_FREE(s);\n return NULL;\n }\n s->read_wontblock = 0;\n s->write_wontblock = 0;\n s->data_except = 0;\n s->poll_handle = NULL;\n s->state=SSH_SOCKET_NONE;\n return s;\n}", "Selected Statement": "s->write_wontblock = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 26, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_socket ssh_socket_new(ssh_session session)\n{\n ssh_socket s;\n\n s = calloc(1, sizeof(struct ssh_socket_struct));\n if (s == NULL) {\n ssh_set_error_oom(session);\n return NULL;\n }\n s->fd = SSH_INVALID_SOCKET;\n s->last_errno = -1;\n s->fd_is_socket = 1;\n s->session = session;\n s->in_buffer = ssh_buffer_new();\n if (s->in_buffer == NULL) {\n ssh_set_error_oom(session);\n SAFE_FREE(s);\n return NULL;\n }\n s->out_buffer=ssh_buffer_new();\n if (s->out_buffer == NULL) {\n ssh_set_error_oom(session);\n SSH_BUFFER_FREE(s->in_buffer);\n SAFE_FREE(s);\n return NULL;\n }\n s->read_wontblock = 0;\n s->write_wontblock = 0;\n s->data_except = 0;\n s->poll_handle = NULL;\n s->state=SSH_SOCKET_NONE;\n return s;\n}", "Selected Statement": "s->data_except = 0;", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 27, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_socket ssh_socket_new(ssh_session session)\n{\n ssh_socket s;\n\n s = calloc(1, sizeof(struct ssh_socket_struct));\n if (s == NULL) {\n ssh_set_error_oom(session);\n return NULL;\n }\n s->fd = SSH_INVALID_SOCKET;\n s->last_errno = -1;\n s->fd_is_socket = 1;\n s->session = session;\n s->in_buffer = ssh_buffer_new();\n if (s->in_buffer == NULL) {\n ssh_set_error_oom(session);\n SAFE_FREE(s);\n return NULL;\n }\n s->out_buffer=ssh_buffer_new();\n if (s->out_buffer == NULL) {\n ssh_set_error_oom(session);\n SSH_BUFFER_FREE(s->in_buffer);\n SAFE_FREE(s);\n return NULL;\n }\n s->read_wontblock = 0;\n s->write_wontblock = 0;\n s->data_except = 0;\n s->poll_handle = NULL;\n s->state=SSH_SOCKET_NONE;\n return s;\n}", "Selected Statement": "s->state=SSH_SOCKET_NONE;", "Function Input": {}, "Variable Values Before Statement": {"SSH_SOCKET_NONE": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 29, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_agent ssh_agent_new(struct ssh_session_struct *session) {\n ssh_agent agent = NULL;\n\n agent = malloc(sizeof(struct ssh_agent_struct));\n if (agent == NULL) {\n return NULL;\n }\n ZERO_STRUCTP(agent);\n\n agent->count = 0;\n agent->sock = ssh_socket_new(session);\n if (agent->sock == NULL) {\n SAFE_FREE(agent);\n return NULL;\n }\n agent->channel = NULL;\n return agent;\n}", "Selected Statement": "agent = malloc(sizeof(struct ssh_agent_struct));", "Function Input": {"agent": {"value": "0x510b29 "}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "ssh_agent", "Function Name": "malloc", "Block_Size": 2, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_agent ssh_agent_new(struct ssh_session_struct *session) {\n ssh_agent agent = NULL;\n\n agent = malloc(sizeof(struct ssh_agent_struct));\n if (agent == NULL) {\n return NULL;\n }\n ZERO_STRUCTP(agent);\n\n agent->count = 0;\n agent->sock = ssh_socket_new(session);\n if (agent->sock == NULL) {\n SAFE_FREE(agent);\n return NULL;\n }\n agent->channel = NULL;\n return agent;\n}", "Selected Statement": "agent->count = 0;", "Function Input": {"agent": {"value": "0x510b29 "}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 8, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_agent ssh_agent_new(struct ssh_session_struct *session) {\n ssh_agent agent = NULL;\n\n agent = malloc(sizeof(struct ssh_agent_struct));\n if (agent == NULL) {\n return NULL;\n }\n ZERO_STRUCTP(agent);\n\n agent->count = 0;\n agent->sock = ssh_socket_new(session);\n if (agent->sock == NULL) {\n SAFE_FREE(agent);\n return NULL;\n }\n agent->channel = NULL;\n return agent;\n}", "Selected Statement": "agent->sock = ssh_socket_new(session);", "Function Input": {"agent": {"value": "0x510b29 "}}, "Variable Values Before Statement": {"session": {"common": null, "socket": null, "serverbanner": null, "clientbanner": null, "protoversion": "0", "server": "0", "client": "0", "openssh": "0", "send_seq": "0", "recv_seq": "0", "last_rekey_time": null, "connected": "0", "alive": "0", "flags": "1", "extensions": "0", "banner": null, "peer_discon_msg": null, "disconnect_message": null, "in_buffer": "0x125aaa0", "in_packet": null, "out_buffer": "0x125aa30", "out_queue": null, "pending_call_state": "SSH_PENDING_CALL_NONE", "session_state": "SSH_SESSION_STATE_NONE", "packet_state": "PACKET_STATE_INIT", "dh_handshake_state": "DH_STATE_INIT", "global_req_state": "SSH_CHANNEL_REQ_STATE_NONE", "agent_state": null, "auth": null, "send_first_kex_follows": "false", "first_kex_follows_guess_wrong": "false", "in_hashbuf": null, "out_hashbuf": null, "current_crypto": null, "next_crypto": null, "channels": null, "maxchannel": "42", "agent": null, "kbdint": null, "gssapi": null, "srv": null, "ssh_message_list": null, "ssh_message_callback": null, "ssh_message_callback_data": null, "server_callbacks": null, "ssh_connection_callback": null, "default_packet_callbacks": null, "packet_callbacks": null, "socket_callbacks": null, "default_poll_ctx": null, "pcap_ctx": null, "opts": null, "socket_counter": null, "raw_counter": null}}, "Value After Statement Execution": "NULL", "Function Name": "ssh_socket_new", "Block_Size": 9, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "void ssh_set_auth_methods(ssh_session session, int auth_methods)\n{\n \n session->auth.supported_methods = (uint32_t)auth_methods & 0x3fU;\n}", "Selected Statement": "session->auth.supported_methods = (uint32_t)auth_methods & 0x3fU;", "Function Input": {"session": {"value": "0x2dd9932e8a4d1d00"}}, "Variable Values Before Statement": {"auth_methods": "int"}, "Value After Statement Execution": "NULL", "Block_Size": 2, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_poll_handle\nssh_poll_new(socket_t fd, short events, ssh_poll_callback cb, void *userdata)\n{\n ssh_poll_handle p;\n\n p = malloc(sizeof(struct ssh_poll_handle_struct));\n if (p == NULL) {\n return NULL;\n }\n ZERO_STRUCTP(p);\n\n p->x.fd = fd;\n p->events = events;\n p->cb = cb;\n p->cb_data = userdata;\n\n return p;\n}", "Selected Statement": "p = malloc(sizeof(struct ssh_poll_handle_struct));", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "ssh_poll_handle", "Function Name": "malloc", "Block_Size": 3, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_poll_handle\nssh_poll_new(socket_t fd, short events, ssh_poll_callback cb, void *userdata)\n{\n ssh_poll_handle p;\n\n p = malloc(sizeof(struct ssh_poll_handle_struct));\n if (p == NULL) {\n return NULL;\n }\n ZERO_STRUCTP(p);\n\n p->x.fd = fd;\n p->events = events;\n p->cb = cb;\n p->cb_data = userdata;\n\n return p;\n}", "Selected Statement": "p->x.fd = fd;", "Function Input": {}, "Variable Values Before Statement": {"fd": "socket_t"}, "Value After Statement Execution": "socket_t", "Block_Size": 9, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_poll_handle\nssh_poll_new(socket_t fd, short events, ssh_poll_callback cb, void *userdata)\n{\n ssh_poll_handle p;\n\n p = malloc(sizeof(struct ssh_poll_handle_struct));\n if (p == NULL) {\n return NULL;\n }\n ZERO_STRUCTP(p);\n\n p->x.fd = fd;\n p->events = events;\n p->cb = cb;\n p->cb_data = userdata;\n\n return p;\n}", "Selected Statement": "p->events = events;", "Function Input": {}, "Variable Values Before Statement": {"events": "0"}, "Value After Statement Execution": "0", "Block_Size": 10, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "ssh_poll_handle\nssh_poll_new(socket_t fd, short events, ssh_poll_callback cb, void *userdata)\n{\n ssh_poll_handle p;\n\n p = malloc(sizeof(struct ssh_poll_handle_struct));\n if (p == NULL) {\n return NULL;\n }\n ZERO_STRUCTP(p);\n\n p->x.fd = fd;\n p->events = events;\n p->cb = cb;\n p->cb_data = userdata;\n\n return p;\n}", "Selected Statement": "p->cb = cb;", "Function Input": {}, "Variable Values Before Statement": {"cb": "ssh_poll_callback"}, "Value After Statement Execution": "ssh_poll_callback", "Block_Size": 11, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_send_banner(ssh_session session, int server)\n{\n const char *banner = CLIENT_BANNER_SSH2;\n const char *terminator = \"\\r\\n\";\n \n char buffer[256] = {0};\n size_t len;\n int rc = SSH_ERROR;\n\n if (server == 1) {\n if (session->opts.custombanner == NULL){\n session->serverbanner = strdup(banner);\n if (session->serverbanner == NULL) {\n goto end;\n }\n } else {\n len = strlen(session->opts.custombanner);\n session->serverbanner = malloc(len + 8 + 1);\n if(session->serverbanner == NULL) {\n goto end;\n }\n snprintf(session->serverbanner,\n len + 8 + 1,\n \"SSH-2.0-%s\",\n session->opts.custombanner);\n }\n\n snprintf(buffer,\n sizeof(buffer),\n \"%s%s\",\n session->serverbanner,\n terminator);\n } else {\n session->clientbanner = strdup(banner);\n if (session->clientbanner == NULL) {\n goto end;\n }\n\n snprintf(buffer,\n sizeof(buffer),\n \"%s%s\",\n session->clientbanner,\n terminator);\n }\n\n rc = ssh_socket_write(session->socket, buffer, strlen(buffer));\n if (rc == SSH_ERROR) {\n goto end;\n }\n#ifdef WITH_PCAP\n if (session->pcap_ctx != NULL) {\n ssh_pcap_context_write(session->pcap_ctx,\n SSH_PCAP_DIR_OUT,\n buffer,\n strlen(buffer),\n strlen(buffer));\n }\n#endif\n\n rc = SSH_OK;\nend:\n return rc;\n}", "Selected Statement": "const char *banner = CLIENT_BANNER_SSH2;", "Function Input": {}, "Variable Values Before Statement": {"CLIENT_BANNER_SSH2": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 1, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_send_banner(ssh_session session, int server)\n{\n const char *banner = CLIENT_BANNER_SSH2;\n const char *terminator = \"\\r\\n\";\n \n char buffer[256] = {0};\n size_t len;\n int rc = SSH_ERROR;\n\n if (server == 1) {\n if (session->opts.custombanner == NULL){\n session->serverbanner = strdup(banner);\n if (session->serverbanner == NULL) {\n goto end;\n }\n } else {\n len = strlen(session->opts.custombanner);\n session->serverbanner = malloc(len + 8 + 1);\n if(session->serverbanner == NULL) {\n goto end;\n }\n snprintf(session->serverbanner,\n len + 8 + 1,\n \"SSH-2.0-%s\",\n session->opts.custombanner);\n }\n\n snprintf(buffer,\n sizeof(buffer),\n \"%s%s\",\n session->serverbanner,\n terminator);\n } else {\n session->clientbanner = strdup(banner);\n if (session->clientbanner == NULL) {\n goto end;\n }\n\n snprintf(buffer,\n sizeof(buffer),\n \"%s%s\",\n session->clientbanner,\n terminator);\n }\n\n rc = ssh_socket_write(session->socket, buffer, strlen(buffer));\n if (rc == SSH_ERROR) {\n goto end;\n }\n#ifdef WITH_PCAP\n if (session->pcap_ctx != NULL) {\n ssh_pcap_context_write(session->pcap_ctx,\n SSH_PCAP_DIR_OUT,\n buffer,\n strlen(buffer),\n strlen(buffer));\n }\n#endif\n\n rc = SSH_OK;\nend:\n return rc;\n}", "Selected Statement": "session->serverbanner = strdup(banner);", "Function Input": {}, "Variable Values Before Statement": {"banner": "0x72e0a0 \"SSH-2.0-libssh_0.10.90\""}, "Value After Statement Execution": "NULL", "Function Name": "strdup", "Block_Size": 10, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_send_banner(ssh_session session, int server)\n{\n const char *banner = CLIENT_BANNER_SSH2;\n const char *terminator = \"\\r\\n\";\n \n char buffer[256] = {0};\n size_t len;\n int rc = SSH_ERROR;\n\n if (server == 1) {\n if (session->opts.custombanner == NULL){\n session->serverbanner = strdup(banner);\n if (session->serverbanner == NULL) {\n goto end;\n }\n } else {\n len = strlen(session->opts.custombanner);\n session->serverbanner = malloc(len + 8 + 1);\n if(session->serverbanner == NULL) {\n goto end;\n }\n snprintf(session->serverbanner,\n len + 8 + 1,\n \"SSH-2.0-%s\",\n session->opts.custombanner);\n }\n\n snprintf(buffer,\n sizeof(buffer),\n \"%s%s\",\n session->serverbanner,\n terminator);\n } else {\n session->clientbanner = strdup(banner);\n if (session->clientbanner == NULL) {\n goto end;\n }\n\n snprintf(buffer,\n sizeof(buffer),\n \"%s%s\",\n session->clientbanner,\n terminator);\n }\n\n rc = ssh_socket_write(session->socket, buffer, strlen(buffer));\n if (rc == SSH_ERROR) {\n goto end;\n }\n#ifdef WITH_PCAP\n if (session->pcap_ctx != NULL) {\n ssh_pcap_context_write(session->pcap_ctx,\n SSH_PCAP_DIR_OUT,\n buffer,\n strlen(buffer),\n strlen(buffer));\n }\n#endif\n\n rc = SSH_OK;\nend:\n return rc;\n}", "Selected Statement": "rc = ssh_socket_write(session->socket, buffer, strlen(buffer));", "Function Input": {}, "Variable Values Before Statement": {"session->socket": "NULL", "buffer": "\"SSH-2.0-libssh_0.10.90\\r\\n\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\""}, "Value After Statement Execution": "int", "Function Name": "ssh_socket_write", "Block_Size": 44, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "void _ssh_set_error(void *error,\n int code,\n const char *function,\n const char *descr, ...)\n{\n struct ssh_common_struct *err = error;\n va_list va;\n\n va_start(va, descr);\n vsnprintf(err->error.error_buffer, ERROR_BUFFERLEN, descr, va);\n va_end(va);\n\n err->error.error_code = code;\n if (ssh_get_log_level() == SSH_LOG_TRACE) {\n ssh_log_function(SSH_LOG_TRACE,\n function,\n err->error.error_buffer);\n }\n}", "Selected Statement": "err->error.error_code = code;", "Function Input": {"code": {"value": "0"}, "descr": {"value": "0x7ffff7e1c8a0 \"\""}, "error": {"value": null}, "function": {"value": "0x733100 \"Socket exception callback: %d (%d)\""}}, "Variable Values Before Statement": {"code": "int"}, "Value After Statement Execution": "int", "Block_Size": 11, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "void ssh_packet_register_socket_callback(ssh_session session, ssh_socket s)\n{\n struct ssh_socket_callbacks_struct *callbacks = &session->socket_callbacks;\n\n callbacks->data = ssh_packet_socket_callback;\n callbacks->connected = NULL;\n callbacks->controlflow = ssh_packet_socket_controlflow_callback;\n callbacks->userdata = session;\n ssh_socket_set_callbacks(s, callbacks);\n}", "Selected Statement": "callbacks->data = ssh_packet_socket_callback;", "Function Input": {"session": {"value": "0x222ed1fd0aa1f200"}}, "Variable Values Before Statement": {"ssh_packet_socket_callback": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 3, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "void ssh_packet_register_socket_callback(ssh_session session, ssh_socket s)\n{\n struct ssh_socket_callbacks_struct *callbacks = &session->socket_callbacks;\n\n callbacks->data = ssh_packet_socket_callback;\n callbacks->connected = NULL;\n callbacks->controlflow = ssh_packet_socket_controlflow_callback;\n callbacks->userdata = session;\n ssh_socket_set_callbacks(s, callbacks);\n}", "Selected Statement": "callbacks->controlflow = ssh_packet_socket_controlflow_callback;", "Function Input": {"session": {"value": "0x222ed1fd0aa1f200"}}, "Variable Values Before Statement": {"ssh_packet_socket_controlflow_callback": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 5, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "void ssh_packet_register_socket_callback(ssh_session session, ssh_socket s)\n{\n struct ssh_socket_callbacks_struct *callbacks = &session->socket_callbacks;\n\n callbacks->data = ssh_packet_socket_callback;\n callbacks->connected = NULL;\n callbacks->controlflow = ssh_packet_socket_controlflow_callback;\n callbacks->userdata = session;\n ssh_socket_set_callbacks(s, callbacks);\n}", "Selected Statement": "callbacks->userdata = session;", "Function Input": {"session": {"value": "0x222ed1fd0aa1f200"}}, "Variable Values Before Statement": {"session": "ssh_session"}, "Value After Statement Execution": "ssh_session", "Block_Size": 6, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_config_parse_uri(const char *tok,\n char **username,\n char **hostname,\n char **port,\n bool ignore_port)\n{\n char *endp = NULL;\n long port_n;\n int rc;\n\n \n if (username != NULL) {\n *username = NULL;\n }\n if (hostname != NULL) {\n *hostname = NULL;\n }\n if (port != NULL) {\n *port = NULL;\n }\n\n \n endp = strrchr(tok, '@');\n if (endp != NULL) {\n \n if (tok == endp) {\n goto error;\n }\n if (username != NULL) {\n *username = strndup(tok, endp - tok);\n if (*username == NULL) {\n goto error;\n }\n rc = ssh_check_username_syntax(*username);\n if (rc != SSH_OK) {\n goto error;\n }\n }\n tok = endp + 1;\n \n endp = strchr(tok, '@');\n if (endp != NULL) {\n goto error;\n }\n }\n\n \n if (*tok == '[') {\n \n tok++;\n endp = strchr(tok, ']');\n if (endp == NULL) {\n goto error;\n }\n } else if (!ignore_port) {\n \n endp = strrchr(tok, ':');\n if (endp == NULL) {\n endp = strchr(tok, '\\0');\n }\n } else {\n \n endp = strchr(tok, '\\0');\n }\n if (tok == endp) {\n \n goto error;\n }\n if (hostname != NULL) {\n *hostname = strndup(tok, endp - tok);\n if (*hostname == NULL) {\n goto error;\n }\n \n rc = ssh_is_ipaddr(*hostname);\n if (rc == 0) {\n rc = ssh_check_hostname_syntax(*hostname);\n if (rc != SSH_OK) {\n goto error;\n }\n }\n }\n \n if (*endp == ']') {\n endp++;\n }\n\n \n if (*endp != '\\0') {\n char *port_end = NULL;\n\n \n port_n = strtol(endp + 1, &port_end, 10);\n if (port_n < 1 || *port_end != '\\0') {\n SSH_LOG(SSH_LOG_TRACE, \"Failed to parse port number.\"\n \" The value '%ld' is invalid or there are some\"\n \" trailing characters: '%s'\", port_n, port_end);\n goto error;\n }\n if (port != NULL) {\n *port = strdup(endp + 1);\n if (*port == NULL) {\n goto error;\n }\n }\n }\n\n return SSH_OK;\n\nerror:\n if (username != NULL) {\n SAFE_FREE(*username);\n }\n if (hostname != NULL) {\n SAFE_FREE(*hostname);\n }\n if (port != NULL) {\n SAFE_FREE(*port);\n }\n return SSH_ERROR;\n}", "Selected Statement": "endp = strrchr(tok, '@');", "Function Input": {}, "Variable Values Before Statement": {"tok": "0x72995f \"example.com\""}, "Value After Statement Execution": "NULL", "Function Name": "strrchr", "Block_Size": 21, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_config_parse_uri(const char *tok,\n char **username,\n char **hostname,\n char **port,\n bool ignore_port)\n{\n char *endp = NULL;\n long port_n;\n int rc;\n\n \n if (username != NULL) {\n *username = NULL;\n }\n if (hostname != NULL) {\n *hostname = NULL;\n }\n if (port != NULL) {\n *port = NULL;\n }\n\n \n endp = strrchr(tok, '@');\n if (endp != NULL) {\n \n if (tok == endp) {\n goto error;\n }\n if (username != NULL) {\n *username = strndup(tok, endp - tok);\n if (*username == NULL) {\n goto error;\n }\n rc = ssh_check_username_syntax(*username);\n if (rc != SSH_OK) {\n goto error;\n }\n }\n tok = endp + 1;\n \n endp = strchr(tok, '@');\n if (endp != NULL) {\n goto error;\n }\n }\n\n \n if (*tok == '[') {\n \n tok++;\n endp = strchr(tok, ']');\n if (endp == NULL) {\n goto error;\n }\n } else if (!ignore_port) {\n \n endp = strrchr(tok, ':');\n if (endp == NULL) {\n endp = strchr(tok, '\\0');\n }\n } else {\n \n endp = strchr(tok, '\\0');\n }\n if (tok == endp) {\n \n goto error;\n }\n if (hostname != NULL) {\n *hostname = strndup(tok, endp - tok);\n if (*hostname == NULL) {\n goto error;\n }\n \n rc = ssh_is_ipaddr(*hostname);\n if (rc == 0) {\n rc = ssh_check_hostname_syntax(*hostname);\n if (rc != SSH_OK) {\n goto error;\n }\n }\n }\n \n if (*endp == ']') {\n endp++;\n }\n\n \n if (*endp != '\\0') {\n char *port_end = NULL;\n\n \n port_n = strtol(endp + 1, &port_end, 10);\n if (port_n < 1 || *port_end != '\\0') {\n SSH_LOG(SSH_LOG_TRACE, \"Failed to parse port number.\"\n \" The value '%ld' is invalid or there are some\"\n \" trailing characters: '%s'\", port_n, port_end);\n goto error;\n }\n if (port != NULL) {\n *port = strdup(endp + 1);\n if (*port == NULL) {\n goto error;\n }\n }\n }\n\n return SSH_OK;\n\nerror:\n if (username != NULL) {\n SAFE_FREE(*username);\n }\n if (hostname != NULL) {\n SAFE_FREE(*hostname);\n }\n if (port != NULL) {\n SAFE_FREE(*port);\n }\n return SSH_ERROR;\n}", "Selected Statement": "*hostname = strndup(tok, endp - tok);", "Function Input": {}, "Variable Values Before Statement": {"tok": "0x72995f \"example.com\""}, "Value After Statement Execution": "NULL", "Function Name": "strndup", "Block_Size": 70, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_config_parse_uri(const char *tok,\n char **username,\n char **hostname,\n char **port,\n bool ignore_port)\n{\n char *endp = NULL;\n long port_n;\n int rc;\n\n \n if (username != NULL) {\n *username = NULL;\n }\n if (hostname != NULL) {\n *hostname = NULL;\n }\n if (port != NULL) {\n *port = NULL;\n }\n\n \n endp = strrchr(tok, '@');\n if (endp != NULL) {\n \n if (tok == endp) {\n goto error;\n }\n if (username != NULL) {\n *username = strndup(tok, endp - tok);\n if (*username == NULL) {\n goto error;\n }\n rc = ssh_check_username_syntax(*username);\n if (rc != SSH_OK) {\n goto error;\n }\n }\n tok = endp + 1;\n \n endp = strchr(tok, '@');\n if (endp != NULL) {\n goto error;\n }\n }\n\n \n if (*tok == '[') {\n \n tok++;\n endp = strchr(tok, ']');\n if (endp == NULL) {\n goto error;\n }\n } else if (!ignore_port) {\n \n endp = strrchr(tok, ':');\n if (endp == NULL) {\n endp = strchr(tok, '\\0');\n }\n } else {\n \n endp = strchr(tok, '\\0');\n }\n if (tok == endp) {\n \n goto error;\n }\n if (hostname != NULL) {\n *hostname = strndup(tok, endp - tok);\n if (*hostname == NULL) {\n goto error;\n }\n \n rc = ssh_is_ipaddr(*hostname);\n if (rc == 0) {\n rc = ssh_check_hostname_syntax(*hostname);\n if (rc != SSH_OK) {\n goto error;\n }\n }\n }\n \n if (*endp == ']') {\n endp++;\n }\n\n \n if (*endp != '\\0') {\n char *port_end = NULL;\n\n \n port_n = strtol(endp + 1, &port_end, 10);\n if (port_n < 1 || *port_end != '\\0') {\n SSH_LOG(SSH_LOG_TRACE, \"Failed to parse port number.\"\n \" The value '%ld' is invalid or there are some\"\n \" trailing characters: '%s'\", port_n, port_end);\n goto error;\n }\n if (port != NULL) {\n *port = strdup(endp + 1);\n if (*port == NULL) {\n goto error;\n }\n }\n }\n\n return SSH_OK;\n\nerror:\n if (username != NULL) {\n SAFE_FREE(*username);\n }\n if (hostname != NULL) {\n SAFE_FREE(*hostname);\n }\n if (port != NULL) {\n SAFE_FREE(*port);\n }\n return SSH_ERROR;\n}", "Selected Statement": "rc = ssh_is_ipaddr(*hostname);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "int", "Function Name": "ssh_is_ipaddr", "Block_Size": 75, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_config_parse_uri(const char *tok,\n char **username,\n char **hostname,\n char **port,\n bool ignore_port)\n{\n char *endp = NULL;\n long port_n;\n int rc;\n\n \n if (username != NULL) {\n *username = NULL;\n }\n if (hostname != NULL) {\n *hostname = NULL;\n }\n if (port != NULL) {\n *port = NULL;\n }\n\n \n endp = strrchr(tok, '@');\n if (endp != NULL) {\n \n if (tok == endp) {\n goto error;\n }\n if (username != NULL) {\n *username = strndup(tok, endp - tok);\n if (*username == NULL) {\n goto error;\n }\n rc = ssh_check_username_syntax(*username);\n if (rc != SSH_OK) {\n goto error;\n }\n }\n tok = endp + 1;\n \n endp = strchr(tok, '@');\n if (endp != NULL) {\n goto error;\n }\n }\n\n \n if (*tok == '[') {\n \n tok++;\n endp = strchr(tok, ']');\n if (endp == NULL) {\n goto error;\n }\n } else if (!ignore_port) {\n \n endp = strrchr(tok, ':');\n if (endp == NULL) {\n endp = strchr(tok, '\\0');\n }\n } else {\n \n endp = strchr(tok, '\\0');\n }\n if (tok == endp) {\n \n goto error;\n }\n if (hostname != NULL) {\n *hostname = strndup(tok, endp - tok);\n if (*hostname == NULL) {\n goto error;\n }\n \n rc = ssh_is_ipaddr(*hostname);\n if (rc == 0) {\n rc = ssh_check_hostname_syntax(*hostname);\n if (rc != SSH_OK) {\n goto error;\n }\n }\n }\n \n if (*endp == ']') {\n endp++;\n }\n\n \n if (*endp != '\\0') {\n char *port_end = NULL;\n\n \n port_n = strtol(endp + 1, &port_end, 10);\n if (port_n < 1 || *port_end != '\\0') {\n SSH_LOG(SSH_LOG_TRACE, \"Failed to parse port number.\"\n \" The value '%ld' is invalid or there are some\"\n \" trailing characters: '%s'\", port_n, port_end);\n goto error;\n }\n if (port != NULL) {\n *port = strdup(endp + 1);\n if (*port == NULL) {\n goto error;\n }\n }\n }\n\n return SSH_OK;\n\nerror:\n if (username != NULL) {\n SAFE_FREE(*username);\n }\n if (hostname != NULL) {\n SAFE_FREE(*hostname);\n }\n if (port != NULL) {\n SAFE_FREE(*port);\n }\n return SSH_ERROR;\n}", "Selected Statement": "rc = ssh_check_hostname_syntax(*hostname);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "int", "Function Name": "ssh_check_hostname_syntax", "Block_Size": 77, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_config_parse_string(ssh_session session, const char *input)\n{\n char line[MAX_LINE_SIZE] = {0};\n const char *c = input, *line_start = input;\n unsigned int line_num = 0, line_len;\n int parsing, rv;\n\n SSH_LOG(SSH_LOG_DEBUG, \"Reading configuration data from string:\");\n SSH_LOG(SSH_LOG_DEBUG, \"START\\n%s\\nEND\", input);\n\n parsing = 1;\n while (1) {\n line_num++;\n line_start = c;\n c = strchr(line_start, '\\n');\n if (c == NULL) {\n \n c = strchr(line_start, '\\0');\n }\n if (c == NULL) {\n \n SSH_LOG(SSH_LOG_TRACE, \"No trailing '\\\\0' in config string\");\n return SSH_ERROR;\n }\n line_len = c - line_start;\n if (line_len > MAX_LINE_SIZE - 1) {\n SSH_LOG(SSH_LOG_TRACE, \"Line %u too long: %u characters\",\n line_num, line_len);\n return SSH_ERROR;\n }\n memcpy(line, line_start, line_len);\n line[line_len] = '\\0';\n SSH_LOG(SSH_LOG_DEBUG, \"Line %u: %s\", line_num, line);\n rv = ssh_config_parse_line(session, line, line_num, &parsing, 0, false);\n if (rv < 0) {\n return SSH_ERROR;\n }\n if (*c == '\\0') {\n break;\n }\n c++;\n }\n\n return SSH_OK;\n}", "Selected Statement": "const char *c = input, *line_start = input;", "Function Input": {}, "Variable Values Before Statement": {"input": "0x12548a0 \"\""}, "Value After Statement Execution": "0x12548a0 \"\"", "Block_Size": 2, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_config_parse_string(ssh_session session, const char *input)\n{\n char line[MAX_LINE_SIZE] = {0};\n const char *c = input, *line_start = input;\n unsigned int line_num = 0, line_len;\n int parsing, rv;\n\n SSH_LOG(SSH_LOG_DEBUG, \"Reading configuration data from string:\");\n SSH_LOG(SSH_LOG_DEBUG, \"START\\n%s\\nEND\", input);\n\n parsing = 1;\n while (1) {\n line_num++;\n line_start = c;\n c = strchr(line_start, '\\n');\n if (c == NULL) {\n \n c = strchr(line_start, '\\0');\n }\n if (c == NULL) {\n \n SSH_LOG(SSH_LOG_TRACE, \"No trailing '\\\\0' in config string\");\n return SSH_ERROR;\n }\n line_len = c - line_start;\n if (line_len > MAX_LINE_SIZE - 1) {\n SSH_LOG(SSH_LOG_TRACE, \"Line %u too long: %u characters\",\n line_num, line_len);\n return SSH_ERROR;\n }\n memcpy(line, line_start, line_len);\n line[line_len] = '\\0';\n SSH_LOG(SSH_LOG_DEBUG, \"Line %u: %s\", line_num, line);\n rv = ssh_config_parse_line(session, line, line_num, &parsing, 0, false);\n if (rv < 0) {\n return SSH_ERROR;\n }\n if (*c == '\\0') {\n break;\n }\n c++;\n }\n\n return SSH_OK;\n}", "Selected Statement": "line_start = c;", "Function Input": {}, "Variable Values Before Statement": {"c": "\"\""}, "Value After Statement Execution": "\"\"", "Block_Size": 12, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_config_parse_string(ssh_session session, const char *input)\n{\n char line[MAX_LINE_SIZE] = {0};\n const char *c = input, *line_start = input;\n unsigned int line_num = 0, line_len;\n int parsing, rv;\n\n SSH_LOG(SSH_LOG_DEBUG, \"Reading configuration data from string:\");\n SSH_LOG(SSH_LOG_DEBUG, \"START\\n%s\\nEND\", input);\n\n parsing = 1;\n while (1) {\n line_num++;\n line_start = c;\n c = strchr(line_start, '\\n');\n if (c == NULL) {\n \n c = strchr(line_start, '\\0');\n }\n if (c == NULL) {\n \n SSH_LOG(SSH_LOG_TRACE, \"No trailing '\\\\0' in config string\");\n return SSH_ERROR;\n }\n line_len = c - line_start;\n if (line_len > MAX_LINE_SIZE - 1) {\n SSH_LOG(SSH_LOG_TRACE, \"Line %u too long: %u characters\",\n line_num, line_len);\n return SSH_ERROR;\n }\n memcpy(line, line_start, line_len);\n line[line_len] = '\\0';\n SSH_LOG(SSH_LOG_DEBUG, \"Line %u: %s\", line_num, line);\n rv = ssh_config_parse_line(session, line, line_num, &parsing, 0, false);\n if (rv < 0) {\n return SSH_ERROR;\n }\n if (*c == '\\0') {\n break;\n }\n c++;\n }\n\n return SSH_OK;\n}", "Selected Statement": "c = strchr(line_start, '\\n');", "Function Input": {}, "Variable Values Before Statement": {"line_start": "0x12548a0 \"\""}, "Value After Statement Execution": "NULL", "Function Name": "strchr", "Block_Size": 13, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_config_parse_string(ssh_session session, const char *input)\n{\n char line[MAX_LINE_SIZE] = {0};\n const char *c = input, *line_start = input;\n unsigned int line_num = 0, line_len;\n int parsing, rv;\n\n SSH_LOG(SSH_LOG_DEBUG, \"Reading configuration data from string:\");\n SSH_LOG(SSH_LOG_DEBUG, \"START\\n%s\\nEND\", input);\n\n parsing = 1;\n while (1) {\n line_num++;\n line_start = c;\n c = strchr(line_start, '\\n');\n if (c == NULL) {\n \n c = strchr(line_start, '\\0');\n }\n if (c == NULL) {\n \n SSH_LOG(SSH_LOG_TRACE, \"No trailing '\\\\0' in config string\");\n return SSH_ERROR;\n }\n line_len = c - line_start;\n if (line_len > MAX_LINE_SIZE - 1) {\n SSH_LOG(SSH_LOG_TRACE, \"Line %u too long: %u characters\",\n line_num, line_len);\n return SSH_ERROR;\n }\n memcpy(line, line_start, line_len);\n line[line_len] = '\\0';\n SSH_LOG(SSH_LOG_DEBUG, \"Line %u: %s\", line_num, line);\n rv = ssh_config_parse_line(session, line, line_num, &parsing, 0, false);\n if (rv < 0) {\n return SSH_ERROR;\n }\n if (*c == '\\0') {\n break;\n }\n c++;\n }\n\n return SSH_OK;\n}", "Selected Statement": "line_len = c - line_start;", "Function Input": {}, "Variable Values Before Statement": {"c": "0x12548a0 \"\"", "line_start": "0x12548a0 \"\""}, "Value After Statement Execution": "unsigned int", "Block_Size": 23, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_config_parse_string(ssh_session session, const char *input)\n{\n char line[MAX_LINE_SIZE] = {0};\n const char *c = input, *line_start = input;\n unsigned int line_num = 0, line_len;\n int parsing, rv;\n\n SSH_LOG(SSH_LOG_DEBUG, \"Reading configuration data from string:\");\n SSH_LOG(SSH_LOG_DEBUG, \"START\\n%s\\nEND\", input);\n\n parsing = 1;\n while (1) {\n line_num++;\n line_start = c;\n c = strchr(line_start, '\\n');\n if (c == NULL) {\n \n c = strchr(line_start, '\\0');\n }\n if (c == NULL) {\n \n SSH_LOG(SSH_LOG_TRACE, \"No trailing '\\\\0' in config string\");\n return SSH_ERROR;\n }\n line_len = c - line_start;\n if (line_len > MAX_LINE_SIZE - 1) {\n SSH_LOG(SSH_LOG_TRACE, \"Line %u too long: %u characters\",\n line_num, line_len);\n return SSH_ERROR;\n }\n memcpy(line, line_start, line_len);\n line[line_len] = '\\0';\n SSH_LOG(SSH_LOG_DEBUG, \"Line %u: %s\", line_num, line);\n rv = ssh_config_parse_line(session, line, line_num, &parsing, 0, false);\n if (rv < 0) {\n return SSH_ERROR;\n }\n if (*c == '\\0') {\n break;\n }\n c++;\n }\n\n return SSH_OK;\n}", "Selected Statement": "rv = ssh_config_parse_line(session, line, line_num, &parsing, 0, false);", "Function Input": {}, "Variable Values Before Statement": {"session": "ssh_session", "line": "\"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\"", "line_num": "unsigned int", "0": "0"}, "Value After Statement Execution": "int", "Function Name": "ssh_config_parse_line", "Block_Size": 32, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_bind_config_parse_string(ssh_bind bind, const char *input)\n{\n char line[MAX_LINE_SIZE] = {0};\n const char *c = input, *line_start = input;\n unsigned int line_num = 0, line_len;\n uint32_t parser_flags;\n int rv;\n\n \n uint8_t seen[BIND_CFG_MAX] = {0};\n\n SSH_LOG(SSH_LOG_DEBUG, \"Reading bind configuration data from string:\");\n SSH_LOG(SSH_LOG_DEBUG, \"START\\n%s\\nEND\", input);\n\n parser_flags = PARSING;\n while (1) {\n line_num++;\n line_start = c;\n c = strchr(line_start, '\\n');\n if (c == NULL) {\n \n c = strchr(line_start, '\\0');\n }\n if (c == NULL) {\n \n SSH_LOG(SSH_LOG_WARN, \"No trailing '\\\\0' in config string\");\n return SSH_ERROR;\n }\n line_len = c - line_start;\n if (line_len > MAX_LINE_SIZE - 1) {\n SSH_LOG(SSH_LOG_WARN, \"Line %u too long: %u characters\",\n line_num, line_len);\n return SSH_ERROR;\n }\n memcpy(line, line_start, line_len);\n line[line_len] = '\\0';\n SSH_LOG(SSH_LOG_DEBUG, \"Line %u: %s\", line_num, line);\n rv = ssh_bind_config_parse_line(bind, line, line_num, &parser_flags, seen, 0);\n if (rv < 0) {\n return SSH_ERROR;\n }\n if (*c == '\\0') {\n break;\n }\n c++;\n }\n\n return SSH_OK;\n}", "Selected Statement": "const char *c = input, *line_start = input;", "Function Input": {"parser_flags": {"value": "8347536"}}, "Variable Values Before Statement": {"input": "0x12578a0 \"\""}, "Value After Statement Execution": "0x12578a0 \"\"", "Block_Size": 2, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_bind_config_parse_string(ssh_bind bind, const char *input)\n{\n char line[MAX_LINE_SIZE] = {0};\n const char *c = input, *line_start = input;\n unsigned int line_num = 0, line_len;\n uint32_t parser_flags;\n int rv;\n\n \n uint8_t seen[BIND_CFG_MAX] = {0};\n\n SSH_LOG(SSH_LOG_DEBUG, \"Reading bind configuration data from string:\");\n SSH_LOG(SSH_LOG_DEBUG, \"START\\n%s\\nEND\", input);\n\n parser_flags = PARSING;\n while (1) {\n line_num++;\n line_start = c;\n c = strchr(line_start, '\\n');\n if (c == NULL) {\n \n c = strchr(line_start, '\\0');\n }\n if (c == NULL) {\n \n SSH_LOG(SSH_LOG_WARN, \"No trailing '\\\\0' in config string\");\n return SSH_ERROR;\n }\n line_len = c - line_start;\n if (line_len > MAX_LINE_SIZE - 1) {\n SSH_LOG(SSH_LOG_WARN, \"Line %u too long: %u characters\",\n line_num, line_len);\n return SSH_ERROR;\n }\n memcpy(line, line_start, line_len);\n line[line_len] = '\\0';\n SSH_LOG(SSH_LOG_DEBUG, \"Line %u: %s\", line_num, line);\n rv = ssh_bind_config_parse_line(bind, line, line_num, &parser_flags, seen, 0);\n if (rv < 0) {\n return SSH_ERROR;\n }\n if (*c == '\\0') {\n break;\n }\n c++;\n }\n\n return SSH_OK;\n}", "Selected Statement": "line_start = c;", "Function Input": {"parser_flags": {"value": "8347536"}}, "Variable Values Before Statement": {"c": "\"\""}, "Value After Statement Execution": "\"\"", "Block_Size": 19, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_bind_config_parse_string(ssh_bind bind, const char *input)\n{\n char line[MAX_LINE_SIZE] = {0};\n const char *c = input, *line_start = input;\n unsigned int line_num = 0, line_len;\n uint32_t parser_flags;\n int rv;\n\n \n uint8_t seen[BIND_CFG_MAX] = {0};\n\n SSH_LOG(SSH_LOG_DEBUG, \"Reading bind configuration data from string:\");\n SSH_LOG(SSH_LOG_DEBUG, \"START\\n%s\\nEND\", input);\n\n parser_flags = PARSING;\n while (1) {\n line_num++;\n line_start = c;\n c = strchr(line_start, '\\n');\n if (c == NULL) {\n \n c = strchr(line_start, '\\0');\n }\n if (c == NULL) {\n \n SSH_LOG(SSH_LOG_WARN, \"No trailing '\\\\0' in config string\");\n return SSH_ERROR;\n }\n line_len = c - line_start;\n if (line_len > MAX_LINE_SIZE - 1) {\n SSH_LOG(SSH_LOG_WARN, \"Line %u too long: %u characters\",\n line_num, line_len);\n return SSH_ERROR;\n }\n memcpy(line, line_start, line_len);\n line[line_len] = '\\0';\n SSH_LOG(SSH_LOG_DEBUG, \"Line %u: %s\", line_num, line);\n rv = ssh_bind_config_parse_line(bind, line, line_num, &parser_flags, seen, 0);\n if (rv < 0) {\n return SSH_ERROR;\n }\n if (*c == '\\0') {\n break;\n }\n c++;\n }\n\n return SSH_OK;\n}", "Selected Statement": "c = strchr(line_start, '\\n');", "Function Input": {"parser_flags": {"value": "8347536"}}, "Variable Values Before Statement": {"line_start": "0x12578a0 \"\""}, "Value After Statement Execution": "NULL", "Function Name": "strchr", "Block_Size": 20, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_bind_config_parse_string(ssh_bind bind, const char *input)\n{\n char line[MAX_LINE_SIZE] = {0};\n const char *c = input, *line_start = input;\n unsigned int line_num = 0, line_len;\n uint32_t parser_flags;\n int rv;\n\n \n uint8_t seen[BIND_CFG_MAX] = {0};\n\n SSH_LOG(SSH_LOG_DEBUG, \"Reading bind configuration data from string:\");\n SSH_LOG(SSH_LOG_DEBUG, \"START\\n%s\\nEND\", input);\n\n parser_flags = PARSING;\n while (1) {\n line_num++;\n line_start = c;\n c = strchr(line_start, '\\n');\n if (c == NULL) {\n \n c = strchr(line_start, '\\0');\n }\n if (c == NULL) {\n \n SSH_LOG(SSH_LOG_WARN, \"No trailing '\\\\0' in config string\");\n return SSH_ERROR;\n }\n line_len = c - line_start;\n if (line_len > MAX_LINE_SIZE - 1) {\n SSH_LOG(SSH_LOG_WARN, \"Line %u too long: %u characters\",\n line_num, line_len);\n return SSH_ERROR;\n }\n memcpy(line, line_start, line_len);\n line[line_len] = '\\0';\n SSH_LOG(SSH_LOG_DEBUG, \"Line %u: %s\", line_num, line);\n rv = ssh_bind_config_parse_line(bind, line, line_num, &parser_flags, seen, 0);\n if (rv < 0) {\n return SSH_ERROR;\n }\n if (*c == '\\0') {\n break;\n }\n c++;\n }\n\n return SSH_OK;\n}", "Selected Statement": "line_len = c - line_start;", "Function Input": {"parser_flags": {"value": "8347536"}}, "Variable Values Before Statement": {"c": "0x12578a0 \"\"", "line_start": "0x12578a0 \"\""}, "Value After Statement Execution": "unsigned int", "Block_Size": 30, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "int ssh_bind_config_parse_string(ssh_bind bind, const char *input)\n{\n char line[MAX_LINE_SIZE] = {0};\n const char *c = input, *line_start = input;\n unsigned int line_num = 0, line_len;\n uint32_t parser_flags;\n int rv;\n\n \n uint8_t seen[BIND_CFG_MAX] = {0};\n\n SSH_LOG(SSH_LOG_DEBUG, \"Reading bind configuration data from string:\");\n SSH_LOG(SSH_LOG_DEBUG, \"START\\n%s\\nEND\", input);\n\n parser_flags = PARSING;\n while (1) {\n line_num++;\n line_start = c;\n c = strchr(line_start, '\\n');\n if (c == NULL) {\n \n c = strchr(line_start, '\\0');\n }\n if (c == NULL) {\n \n SSH_LOG(SSH_LOG_WARN, \"No trailing '\\\\0' in config string\");\n return SSH_ERROR;\n }\n line_len = c - line_start;\n if (line_len > MAX_LINE_SIZE - 1) {\n SSH_LOG(SSH_LOG_WARN, \"Line %u too long: %u characters\",\n line_num, line_len);\n return SSH_ERROR;\n }\n memcpy(line, line_start, line_len);\n line[line_len] = '\\0';\n SSH_LOG(SSH_LOG_DEBUG, \"Line %u: %s\", line_num, line);\n rv = ssh_bind_config_parse_line(bind, line, line_num, &parser_flags, seen, 0);\n if (rv < 0) {\n return SSH_ERROR;\n }\n if (*c == '\\0') {\n break;\n }\n c++;\n }\n\n return SSH_OK;\n}", "Selected Statement": "rv = ssh_bind_config_parse_line(bind, line, line_num, &parser_flags, seen, 0);", "Function Input": {"parser_flags": {"value": "8347536"}}, "Variable Values Before Statement": {"bind": "ssh_bind", "line": "\"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\"", "line_num": "unsigned int", "seen": "\"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\"", "0": "0"}, "Value After Statement Execution": "int", "Function Name": "ssh_bind_config_parse_line", "Block_Size": 39, "Project Information": "libssh"} +{"Programming Language": "C", "Source Code": "krb5_error_code\nndr_dec_delegation_info(krb5_data *data, struct pac_s4u_delegation_info **out)\n{\n krb5_error_code ret;\n struct pac_s4u_delegation_info *di = NULL;\n struct k5input in;\n uint32_t i, object_buffer_length, nservices;\n uint8_t version, endianness, common_header_length;\n\n *out = NULL;\n\n di = k5alloc(sizeof(*di), &ret);\n if (di == NULL)\n return ret;\n\n k5_input_init(&in, data->data, data->length);\n\n \n version = k5_input_get_byte(&in);\n endianness = k5_input_get_byte(&in);\n common_header_length = k5_input_get_uint16_le(&in);\n (void)k5_input_get_uint32_le(&in); \n if (version != 1 || endianness != 0x10 || common_header_length != 8) {\n ret = EINVAL;\n goto error;\n }\n\n \n object_buffer_length = k5_input_get_uint32_le(&in);\n if (data->length < 16 || object_buffer_length != data->length - 16) {\n ret = EINVAL;\n goto error;\n }\n\n (void)k5_input_get_uint32_le(&in); \n\n \n\n \n (void)k5_input_get_uint32_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n ret = dec_wchar_pointer(&in, &di->proxy_target);\n if (ret)\n goto error;\n nservices = k5_input_get_uint32_le(&in);\n\n \n if (nservices > data->length / 8) {\n ret = ERANGE;\n goto error;\n }\n (void)k5_input_get_bytes(&in, 8 * nservices);\n\n \n di->transited_services = k5calloc(nservices + 1, sizeof(char *), &ret);\n if (di->transited_services == NULL)\n goto error;\n\n for (i = 0; i < nservices; i++) {\n ret = dec_wchar_pointer(&in, &di->transited_services[i]);\n if (ret)\n goto error;\n di->transited_services_length++;\n }\n\n ret = in.status;\n if (ret)\n goto error;\n\n *out = di;\n return 0;\n\nerror:\n ndr_free_delegation_info(di);\n return ret;\n}", "Selected Statement": "di = k5alloc(sizeof(*di), &ret);", "Function Input": {"in": {"value": {"ptr": {"type_category": "string", "concrete_type": "NULL"}, "len": {"type_category": "unknown", "concrete_type": "size_t", "value": "4242681"}, "status": {"type_category": "unknown", "concrete_type": "int32_t", "value": "5350024"}}}, "out": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0xf3bbe0", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1332bcc00081001\n", "message": "Cannot access memory at address 0x1332bcc00081001"}}}}, "Variable Values Before Statement": {}, "Value After Statement Execution": {"proxy_target": null, "transited_services_length": "0", "transited_services": null}, "Function Name": "k5alloc", "Block_Size": 9, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "krb5_error_code\nndr_dec_delegation_info(krb5_data *data, struct pac_s4u_delegation_info **out)\n{\n krb5_error_code ret;\n struct pac_s4u_delegation_info *di = NULL;\n struct k5input in;\n uint32_t i, object_buffer_length, nservices;\n uint8_t version, endianness, common_header_length;\n\n *out = NULL;\n\n di = k5alloc(sizeof(*di), &ret);\n if (di == NULL)\n return ret;\n\n k5_input_init(&in, data->data, data->length);\n\n \n version = k5_input_get_byte(&in);\n endianness = k5_input_get_byte(&in);\n common_header_length = k5_input_get_uint16_le(&in);\n (void)k5_input_get_uint32_le(&in); \n if (version != 1 || endianness != 0x10 || common_header_length != 8) {\n ret = EINVAL;\n goto error;\n }\n\n \n object_buffer_length = k5_input_get_uint32_le(&in);\n if (data->length < 16 || object_buffer_length != data->length - 16) {\n ret = EINVAL;\n goto error;\n }\n\n (void)k5_input_get_uint32_le(&in); \n\n \n\n \n (void)k5_input_get_uint32_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n ret = dec_wchar_pointer(&in, &di->proxy_target);\n if (ret)\n goto error;\n nservices = k5_input_get_uint32_le(&in);\n\n \n if (nservices > data->length / 8) {\n ret = ERANGE;\n goto error;\n }\n (void)k5_input_get_bytes(&in, 8 * nservices);\n\n \n di->transited_services = k5calloc(nservices + 1, sizeof(char *), &ret);\n if (di->transited_services == NULL)\n goto error;\n\n for (i = 0; i < nservices; i++) {\n ret = dec_wchar_pointer(&in, &di->transited_services[i]);\n if (ret)\n goto error;\n di->transited_services_length++;\n }\n\n ret = in.status;\n if (ret)\n goto error;\n\n *out = di;\n return 0;\n\nerror:\n ndr_free_delegation_info(di);\n return ret;\n}", "Selected Statement": "version = k5_input_get_byte(&in);", "Function Input": {"in": {"value": {"ptr": {"type_category": "string", "concrete_type": "NULL"}, "len": {"type_category": "unknown", "concrete_type": "size_t", "value": "4242681"}, "status": {"type_category": "unknown", "concrete_type": "int32_t", "value": "5350024"}}}, "out": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0xf3bbe0", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1332bcc00081001\n", "message": "Cannot access memory at address 0x1332bcc00081001"}}}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "1 '\\001'", "Function Name": "k5_input_get_byte", "Block_Size": 16, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "krb5_error_code\nndr_dec_delegation_info(krb5_data *data, struct pac_s4u_delegation_info **out)\n{\n krb5_error_code ret;\n struct pac_s4u_delegation_info *di = NULL;\n struct k5input in;\n uint32_t i, object_buffer_length, nservices;\n uint8_t version, endianness, common_header_length;\n\n *out = NULL;\n\n di = k5alloc(sizeof(*di), &ret);\n if (di == NULL)\n return ret;\n\n k5_input_init(&in, data->data, data->length);\n\n \n version = k5_input_get_byte(&in);\n endianness = k5_input_get_byte(&in);\n common_header_length = k5_input_get_uint16_le(&in);\n (void)k5_input_get_uint32_le(&in); \n if (version != 1 || endianness != 0x10 || common_header_length != 8) {\n ret = EINVAL;\n goto error;\n }\n\n \n object_buffer_length = k5_input_get_uint32_le(&in);\n if (data->length < 16 || object_buffer_length != data->length - 16) {\n ret = EINVAL;\n goto error;\n }\n\n (void)k5_input_get_uint32_le(&in); \n\n \n\n \n (void)k5_input_get_uint32_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n ret = dec_wchar_pointer(&in, &di->proxy_target);\n if (ret)\n goto error;\n nservices = k5_input_get_uint32_le(&in);\n\n \n if (nservices > data->length / 8) {\n ret = ERANGE;\n goto error;\n }\n (void)k5_input_get_bytes(&in, 8 * nservices);\n\n \n di->transited_services = k5calloc(nservices + 1, sizeof(char *), &ret);\n if (di->transited_services == NULL)\n goto error;\n\n for (i = 0; i < nservices; i++) {\n ret = dec_wchar_pointer(&in, &di->transited_services[i]);\n if (ret)\n goto error;\n di->transited_services_length++;\n }\n\n ret = in.status;\n if (ret)\n goto error;\n\n *out = di;\n return 0;\n\nerror:\n ndr_free_delegation_info(di);\n return ret;\n}", "Selected Statement": "endianness = k5_input_get_byte(&in);", "Function Input": {"in": {"value": {"ptr": {"type_category": "string", "concrete_type": "NULL"}, "len": {"type_category": "unknown", "concrete_type": "size_t", "value": "4242681"}, "status": {"type_category": "unknown", "concrete_type": "int32_t", "value": "5350024"}}}, "out": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0xf3bbe0", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1332bcc00081001\n", "message": "Cannot access memory at address 0x1332bcc00081001"}}}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "16 '\\020'", "Function Name": "k5_input_get_byte", "Block_Size": 17, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "krb5_error_code\nndr_dec_delegation_info(krb5_data *data, struct pac_s4u_delegation_info **out)\n{\n krb5_error_code ret;\n struct pac_s4u_delegation_info *di = NULL;\n struct k5input in;\n uint32_t i, object_buffer_length, nservices;\n uint8_t version, endianness, common_header_length;\n\n *out = NULL;\n\n di = k5alloc(sizeof(*di), &ret);\n if (di == NULL)\n return ret;\n\n k5_input_init(&in, data->data, data->length);\n\n \n version = k5_input_get_byte(&in);\n endianness = k5_input_get_byte(&in);\n common_header_length = k5_input_get_uint16_le(&in);\n (void)k5_input_get_uint32_le(&in); \n if (version != 1 || endianness != 0x10 || common_header_length != 8) {\n ret = EINVAL;\n goto error;\n }\n\n \n object_buffer_length = k5_input_get_uint32_le(&in);\n if (data->length < 16 || object_buffer_length != data->length - 16) {\n ret = EINVAL;\n goto error;\n }\n\n (void)k5_input_get_uint32_le(&in); \n\n \n\n \n (void)k5_input_get_uint32_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n ret = dec_wchar_pointer(&in, &di->proxy_target);\n if (ret)\n goto error;\n nservices = k5_input_get_uint32_le(&in);\n\n \n if (nservices > data->length / 8) {\n ret = ERANGE;\n goto error;\n }\n (void)k5_input_get_bytes(&in, 8 * nservices);\n\n \n di->transited_services = k5calloc(nservices + 1, sizeof(char *), &ret);\n if (di->transited_services == NULL)\n goto error;\n\n for (i = 0; i < nservices; i++) {\n ret = dec_wchar_pointer(&in, &di->transited_services[i]);\n if (ret)\n goto error;\n di->transited_services_length++;\n }\n\n ret = in.status;\n if (ret)\n goto error;\n\n *out = di;\n return 0;\n\nerror:\n ndr_free_delegation_info(di);\n return ret;\n}", "Selected Statement": "common_header_length = k5_input_get_uint16_le(&in);", "Function Input": {"in": {"value": {"ptr": {"type_category": "string", "concrete_type": "NULL"}, "len": {"type_category": "unknown", "concrete_type": "size_t", "value": "4242681"}, "status": {"type_category": "unknown", "concrete_type": "int32_t", "value": "5350024"}}}, "out": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0xf3bbe0", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1332bcc00081001\n", "message": "Cannot access memory at address 0x1332bcc00081001"}}}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "8 '\\b'", "Function Name": "k5_input_get_uint16_le", "Block_Size": 18, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "krb5_error_code\nndr_dec_delegation_info(krb5_data *data, struct pac_s4u_delegation_info **out)\n{\n krb5_error_code ret;\n struct pac_s4u_delegation_info *di = NULL;\n struct k5input in;\n uint32_t i, object_buffer_length, nservices;\n uint8_t version, endianness, common_header_length;\n\n *out = NULL;\n\n di = k5alloc(sizeof(*di), &ret);\n if (di == NULL)\n return ret;\n\n k5_input_init(&in, data->data, data->length);\n\n \n version = k5_input_get_byte(&in);\n endianness = k5_input_get_byte(&in);\n common_header_length = k5_input_get_uint16_le(&in);\n (void)k5_input_get_uint32_le(&in); \n if (version != 1 || endianness != 0x10 || common_header_length != 8) {\n ret = EINVAL;\n goto error;\n }\n\n \n object_buffer_length = k5_input_get_uint32_le(&in);\n if (data->length < 16 || object_buffer_length != data->length - 16) {\n ret = EINVAL;\n goto error;\n }\n\n (void)k5_input_get_uint32_le(&in); \n\n \n\n \n (void)k5_input_get_uint32_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n ret = dec_wchar_pointer(&in, &di->proxy_target);\n if (ret)\n goto error;\n nservices = k5_input_get_uint32_le(&in);\n\n \n if (nservices > data->length / 8) {\n ret = ERANGE;\n goto error;\n }\n (void)k5_input_get_bytes(&in, 8 * nservices);\n\n \n di->transited_services = k5calloc(nservices + 1, sizeof(char *), &ret);\n if (di->transited_services == NULL)\n goto error;\n\n for (i = 0; i < nservices; i++) {\n ret = dec_wchar_pointer(&in, &di->transited_services[i]);\n if (ret)\n goto error;\n di->transited_services_length++;\n }\n\n ret = in.status;\n if (ret)\n goto error;\n\n *out = di;\n return 0;\n\nerror:\n ndr_free_delegation_info(di);\n return ret;\n}", "Selected Statement": "object_buffer_length = k5_input_get_uint32_le(&in);", "Function Input": {"in": {"value": {"ptr": {"type_category": "string", "concrete_type": "NULL"}, "len": {"type_category": "unknown", "concrete_type": "size_t", "value": "4242681"}, "status": {"type_category": "unknown", "concrete_type": "int32_t", "value": "5350024"}}}, "out": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0xf3bbe0", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1332bcc00081001\n", "message": "Cannot access memory at address 0x1332bcc00081001"}}}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "85", "Function Name": "k5_input_get_uint32_le", "Block_Size": 26, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "krb5_error_code\nndr_dec_delegation_info(krb5_data *data, struct pac_s4u_delegation_info **out)\n{\n krb5_error_code ret;\n struct pac_s4u_delegation_info *di = NULL;\n struct k5input in;\n uint32_t i, object_buffer_length, nservices;\n uint8_t version, endianness, common_header_length;\n\n *out = NULL;\n\n di = k5alloc(sizeof(*di), &ret);\n if (di == NULL)\n return ret;\n\n k5_input_init(&in, data->data, data->length);\n\n \n version = k5_input_get_byte(&in);\n endianness = k5_input_get_byte(&in);\n common_header_length = k5_input_get_uint16_le(&in);\n (void)k5_input_get_uint32_le(&in); \n if (version != 1 || endianness != 0x10 || common_header_length != 8) {\n ret = EINVAL;\n goto error;\n }\n\n \n object_buffer_length = k5_input_get_uint32_le(&in);\n if (data->length < 16 || object_buffer_length != data->length - 16) {\n ret = EINVAL;\n goto error;\n }\n\n (void)k5_input_get_uint32_le(&in); \n\n \n\n \n (void)k5_input_get_uint32_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n ret = dec_wchar_pointer(&in, &di->proxy_target);\n if (ret)\n goto error;\n nservices = k5_input_get_uint32_le(&in);\n\n \n if (nservices > data->length / 8) {\n ret = ERANGE;\n goto error;\n }\n (void)k5_input_get_bytes(&in, 8 * nservices);\n\n \n di->transited_services = k5calloc(nservices + 1, sizeof(char *), &ret);\n if (di->transited_services == NULL)\n goto error;\n\n for (i = 0; i < nservices; i++) {\n ret = dec_wchar_pointer(&in, &di->transited_services[i]);\n if (ret)\n goto error;\n di->transited_services_length++;\n }\n\n ret = in.status;\n if (ret)\n goto error;\n\n *out = di;\n return 0;\n\nerror:\n ndr_free_delegation_info(di);\n return ret;\n}", "Selected Statement": "ret = dec_wchar_pointer(&in, &di->proxy_target);", "Function Input": {"in": {"value": {"ptr": {"type_category": "string", "concrete_type": "NULL"}, "len": {"type_category": "unknown", "concrete_type": "size_t", "value": "4242681"}, "status": {"type_category": "unknown", "concrete_type": "int32_t", "value": "5350024"}}}, "out": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0xf3bbe0", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1332bcc00081001\n", "message": "Cannot access memory at address 0x1332bcc00081001"}}}}, "Variable Values Before Statement": {}, "Value After Statement Execution": "krb5_error_code", "Function Name": "dec_wchar_pointer", "Block_Size": 52, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "krb5_error_code\nndr_dec_delegation_info(krb5_data *data, struct pac_s4u_delegation_info **out)\n{\n krb5_error_code ret;\n struct pac_s4u_delegation_info *di = NULL;\n struct k5input in;\n uint32_t i, object_buffer_length, nservices;\n uint8_t version, endianness, common_header_length;\n\n *out = NULL;\n\n di = k5alloc(sizeof(*di), &ret);\n if (di == NULL)\n return ret;\n\n k5_input_init(&in, data->data, data->length);\n\n \n version = k5_input_get_byte(&in);\n endianness = k5_input_get_byte(&in);\n common_header_length = k5_input_get_uint16_le(&in);\n (void)k5_input_get_uint32_le(&in); \n if (version != 1 || endianness != 0x10 || common_header_length != 8) {\n ret = EINVAL;\n goto error;\n }\n\n \n object_buffer_length = k5_input_get_uint32_le(&in);\n if (data->length < 16 || object_buffer_length != data->length - 16) {\n ret = EINVAL;\n goto error;\n }\n\n (void)k5_input_get_uint32_le(&in); \n\n \n\n \n (void)k5_input_get_uint32_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint16_le(&in);\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n \n (void)k5_input_get_uint32_le(&in);\n\n ret = dec_wchar_pointer(&in, &di->proxy_target);\n if (ret)\n goto error;\n nservices = k5_input_get_uint32_le(&in);\n\n \n if (nservices > data->length / 8) {\n ret = ERANGE;\n goto error;\n }\n (void)k5_input_get_bytes(&in, 8 * nservices);\n\n \n di->transited_services = k5calloc(nservices + 1, sizeof(char *), &ret);\n if (di->transited_services == NULL)\n goto error;\n\n for (i = 0; i < nservices; i++) {\n ret = dec_wchar_pointer(&in, &di->transited_services[i]);\n if (ret)\n goto error;\n di->transited_services_length++;\n }\n\n ret = in.status;\n if (ret)\n goto error;\n\n *out = di;\n return 0;\n\nerror:\n ndr_free_delegation_info(di);\n return ret;\n}", "Selected Statement": "ret = ERANGE;", "Function Input": {"in": {"value": {"ptr": {"type_category": "string", "concrete_type": "NULL"}, "len": {"type_category": "unknown", "concrete_type": "size_t", "value": "4242681"}, "status": {"type_category": "unknown", "concrete_type": "int32_t", "value": "5350024"}}}, "out": {"value": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0xf3bbe0", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x1332bcc00081001\n", "message": "Cannot access memory at address 0x1332bcc00081001"}}}}, "Variable Values Before Statement": {"ERANGE": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 60, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "int\nk5_utf16le_to_utf8(const uint8_t *utf16bytes, size_t nbytes, char **utf8_out)\n{\n struct k5buf buf;\n struct k5input in;\n uint16_t ch1, ch2;\n krb5_ucs4 ch;\n size_t chlen;\n void *p;\n\n *utf8_out = NULL;\n\n if (nbytes % 2 != 0)\n return EINVAL;\n\n k5_buf_init_dynamic(&buf);\n k5_input_init(&in, utf16bytes, nbytes);\n while (!in.status && in.len > 0) {\n \n ch1 = k5_input_get_uint16_le(&in);\n if (IS_LOW_SURROGATE(ch1))\n goto invalid;\n if (IS_HIGH_SURROGATE(ch1)) {\n \n ch2 = k5_input_get_uint16_le(&in);\n if (!IS_LOW_SURROGATE(ch2))\n goto invalid;\n ch = COMPOSE(ch1, ch2);\n } else {\n ch = ch1;\n }\n\n chlen = krb5int_ucs4_to_utf8(ch, NULL);\n p = k5_buf_get_space(&buf, chlen);\n if (p == NULL)\n return ENOMEM;\n (void)krb5int_ucs4_to_utf8(ch, p);\n }\n\n if (in.status)\n goto invalid;\n\n *utf8_out = k5_buf_cstring(&buf);\n return (*utf8_out == NULL) ? ENOMEM : 0;\n\ninvalid:\n k5_buf_free(&buf);\n return EINVAL;\n}", "Selected Statement": "ch1 = k5_input_get_uint16_le(&in);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "12", "Function Name": "k5_input_get_uint16_le", "Block_Size": 18, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "int\nk5_utf16le_to_utf8(const uint8_t *utf16bytes, size_t nbytes, char **utf8_out)\n{\n struct k5buf buf;\n struct k5input in;\n uint16_t ch1, ch2;\n krb5_ucs4 ch;\n size_t chlen;\n void *p;\n\n *utf8_out = NULL;\n\n if (nbytes % 2 != 0)\n return EINVAL;\n\n k5_buf_init_dynamic(&buf);\n k5_input_init(&in, utf16bytes, nbytes);\n while (!in.status && in.len > 0) {\n \n ch1 = k5_input_get_uint16_le(&in);\n if (IS_LOW_SURROGATE(ch1))\n goto invalid;\n if (IS_HIGH_SURROGATE(ch1)) {\n \n ch2 = k5_input_get_uint16_le(&in);\n if (!IS_LOW_SURROGATE(ch2))\n goto invalid;\n ch = COMPOSE(ch1, ch2);\n } else {\n ch = ch1;\n }\n\n chlen = krb5int_ucs4_to_utf8(ch, NULL);\n p = k5_buf_get_space(&buf, chlen);\n if (p == NULL)\n return ENOMEM;\n (void)krb5int_ucs4_to_utf8(ch, p);\n }\n\n if (in.status)\n goto invalid;\n\n *utf8_out = k5_buf_cstring(&buf);\n return (*utf8_out == NULL) ? ENOMEM : 0;\n\ninvalid:\n k5_buf_free(&buf);\n return EINVAL;\n}", "Selected Statement": "chlen = krb5int_ucs4_to_utf8(ch, NULL);", "Function Input": {}, "Variable Values Before Statement": {"ch": "krb5_ucs4"}, "Value After Statement Execution": "1", "Function Name": "krb5int_ucs4_to_utf8", "Block_Size": 31, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "int\nk5_utf16le_to_utf8(const uint8_t *utf16bytes, size_t nbytes, char **utf8_out)\n{\n struct k5buf buf;\n struct k5input in;\n uint16_t ch1, ch2;\n krb5_ucs4 ch;\n size_t chlen;\n void *p;\n\n *utf8_out = NULL;\n\n if (nbytes % 2 != 0)\n return EINVAL;\n\n k5_buf_init_dynamic(&buf);\n k5_input_init(&in, utf16bytes, nbytes);\n while (!in.status && in.len > 0) {\n \n ch1 = k5_input_get_uint16_le(&in);\n if (IS_LOW_SURROGATE(ch1))\n goto invalid;\n if (IS_HIGH_SURROGATE(ch1)) {\n \n ch2 = k5_input_get_uint16_le(&in);\n if (!IS_LOW_SURROGATE(ch2))\n goto invalid;\n ch = COMPOSE(ch1, ch2);\n } else {\n ch = ch1;\n }\n\n chlen = krb5int_ucs4_to_utf8(ch, NULL);\n p = k5_buf_get_space(&buf, chlen);\n if (p == NULL)\n return ENOMEM;\n (void)krb5int_ucs4_to_utf8(ch, p);\n }\n\n if (in.status)\n goto invalid;\n\n *utf8_out = k5_buf_cstring(&buf);\n return (*utf8_out == NULL) ? ENOMEM : 0;\n\ninvalid:\n k5_buf_free(&buf);\n return EINVAL;\n}", "Selected Statement": "p = k5_buf_get_space(&buf, chlen);", "Function Input": {}, "Variable Values Before Statement": {"chlen": "1"}, "Value After Statement Execution": "VOID", "Function Name": "k5_buf_get_space", "Block_Size": 32, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "int\nk5_utf16le_to_utf8(const uint8_t *utf16bytes, size_t nbytes, char **utf8_out)\n{\n struct k5buf buf;\n struct k5input in;\n uint16_t ch1, ch2;\n krb5_ucs4 ch;\n size_t chlen;\n void *p;\n\n *utf8_out = NULL;\n\n if (nbytes % 2 != 0)\n return EINVAL;\n\n k5_buf_init_dynamic(&buf);\n k5_input_init(&in, utf16bytes, nbytes);\n while (!in.status && in.len > 0) {\n \n ch1 = k5_input_get_uint16_le(&in);\n if (IS_LOW_SURROGATE(ch1))\n goto invalid;\n if (IS_HIGH_SURROGATE(ch1)) {\n \n ch2 = k5_input_get_uint16_le(&in);\n if (!IS_LOW_SURROGATE(ch2))\n goto invalid;\n ch = COMPOSE(ch1, ch2);\n } else {\n ch = ch1;\n }\n\n chlen = krb5int_ucs4_to_utf8(ch, NULL);\n p = k5_buf_get_space(&buf, chlen);\n if (p == NULL)\n return ENOMEM;\n (void)krb5int_ucs4_to_utf8(ch, p);\n }\n\n if (in.status)\n goto invalid;\n\n *utf8_out = k5_buf_cstring(&buf);\n return (*utf8_out == NULL) ? ENOMEM : 0;\n\ninvalid:\n k5_buf_free(&buf);\n return EINVAL;\n}", "Selected Statement": "*utf8_out = k5_buf_cstring(&buf);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "NULL", "Function Name": "k5_buf_cstring", "Block_Size": 41, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "void\nk5_buf_init_dynamic(struct k5buf *buf)\n{\n buf->buftype = K5BUF_DYNAMIC;\n buf->space = 128;\n buf->data = malloc(buf->space);\n if (buf->data == NULL) {\n set_error(buf);\n return;\n }\n buf->len = 0;\n}", "Selected Statement": "buf->buftype = K5BUF_DYNAMIC;", "Function Input": {"buf": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x65cc6ead\n", "message": "Cannot access memory at address 0x65cc6ead"}}}, "Variable Values Before Statement": {"K5BUF_DYNAMIC": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 1, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "void\nk5_buf_init_dynamic(struct k5buf *buf)\n{\n buf->buftype = K5BUF_DYNAMIC;\n buf->space = 128;\n buf->data = malloc(buf->space);\n if (buf->data == NULL) {\n set_error(buf);\n return;\n }\n buf->len = 0;\n}", "Selected Statement": "buf->space = 128;", "Function Input": {"buf": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x65cc6ead\n", "message": "Cannot access memory at address 0x65cc6ead"}}}, "Variable Values Before Statement": {"constant": "128"}, "Value After Statement Execution": "128", "Block_Size": 2, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "void\nk5_buf_init_dynamic(struct k5buf *buf)\n{\n buf->buftype = K5BUF_DYNAMIC;\n buf->space = 128;\n buf->data = malloc(buf->space);\n if (buf->data == NULL) {\n set_error(buf);\n return;\n }\n buf->len = 0;\n}", "Selected Statement": "buf->data = malloc(buf->space);", "Function Input": {"buf": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x65cc6ead\n", "message": "Cannot access memory at address 0x65cc6ead"}}}, "Variable Values Before Statement": {"buf->space": "128"}, "Value After Statement Execution": "NULL", "Function Name": "malloc", "Block_Size": 3, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "void\nk5_buf_init_dynamic(struct k5buf *buf)\n{\n buf->buftype = K5BUF_DYNAMIC;\n buf->space = 128;\n buf->data = malloc(buf->space);\n if (buf->data == NULL) {\n set_error(buf);\n return;\n }\n buf->len = 0;\n}", "Selected Statement": "buf->len = 0;", "Function Input": {"buf": {"value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x65cc6ead\n", "message": "Cannot access memory at address 0x65cc6ead"}}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 8, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "size_t krb5int_ucs4_to_utf8(krb5_ucs4 c, char *buf)\n{\n size_t len = 0;\n unsigned char *p = (unsigned char *) buf;\n\n \n if (c > 0x10ffff)\n return 0;\n\n \n if (buf == NULL) {\n if (c < 0x80) return 1;\n else if (c < 0x800) return 2;\n else if (c < 0x10000) return 3;\n else return 4;\n }\n\n if (c < 0x80) {\n p[len++] = c;\n } else if (c < 0x800) {\n p[len++] = 0xc0 | ( c >> 6 );\n p[len++] = 0x80 | ( c & 0x3f );\n } else if (c < 0x10000) {\n p[len++] = 0xe0 | ( c >> 12 );\n p[len++] = 0x80 | ( (c >> 6) & 0x3f );\n p[len++] = 0x80 | ( c & 0x3f );\n } else {\n p[len++] = 0xf0 | ( c >> 18 );\n p[len++] = 0x80 | ( (c >> 12) & 0x3f );\n p[len++] = 0x80 | ( (c >> 6) & 0x3f );\n p[len++] = 0x80 | ( c & 0x3f );\n }\n\n return len;\n}", "Selected Statement": "size_t len = 0;", "Function Input": {"p": {"value": "0x73004c1cdf "}}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 1, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "OM_uint32 KRB5_CALLCONV\ngss_release_cred(OM_uint32 *minor_status, gss_cred_id_t *cred_handle)\n{\n OM_uint32\t\tstatus, temp_status;\n int\t\t\tj;\n gss_union_cred_t\tunion_cred;\n gss_mechanism\tmech;\n\n if (minor_status == NULL)\n\treturn (GSS_S_CALL_INACCESSIBLE_WRITE);\n\n *minor_status = 0;\n\n if (cred_handle == NULL)\n\treturn (GSS_S_NO_CRED | GSS_S_CALL_INACCESSIBLE_READ);\n\n \n\n union_cred = (gss_union_cred_t) *cred_handle;\n if (union_cred == (gss_union_cred_t)GSS_C_NO_CREDENTIAL)\n\treturn (GSS_S_COMPLETE);\n\n if (GSSINT_CHK_LOOP(union_cred))\n\treturn (GSS_S_NO_CRED | GSS_S_CALL_INACCESSIBLE_READ);\n *cred_handle = NULL;\n\n status = GSS_S_COMPLETE;\n\n for(j=0; j < union_cred->count; j++) {\n\n\tmech = gssint_get_mechanism (&union_cred->mechs_array[j]);\n\n\tif (union_cred->mechs_array[j].elements)\n\t\tfree(union_cred->mechs_array[j].elements);\n\tif (mech) {\n\t if (mech->gss_release_cred) {\n\t\ttemp_status = mech->gss_release_cred\n\t\t (\n\t\t minor_status,\n\t\t &union_cred->cred_array[j]);\n\n\t\tif (temp_status != GSS_S_COMPLETE) {\n\t\t map_error(minor_status, mech);\n\t\t status = GSS_S_NO_CRED;\n\t\t}\n\n\t } else\n\t\tstatus = GSS_S_UNAVAILABLE;\n\t} else\n\t status = GSS_S_DEFECTIVE_CREDENTIAL;\n }\n\n free(union_cred->cred_array);\n free(union_cred->mechs_array);\n free(union_cred);\n\n return(status);\n}", "Selected Statement": "union_cred = (gss_union_cred_t) *cred_handle;", "Function Input": {"cred_handle": {"value": {"type_category": "unknown", "concrete_type": "gss_cred_id_t"}}, "minor_status": {"value": {"type_category": "unknown", "concrete_type": "OM_uint32", "value": "0"}}}, "Variable Values Before Statement": {"gss_union_cred_t": "NULL", "cred_handle": "NULL"}, "Value After Statement Execution": "gss_union_cred_t", "Block_Size": 20, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "OM_uint32\ngssint_get_mech_type(gss_OID OID, gss_buffer_t token)\n{\n \n if (token->length >= sizeof(NTLMSSP_SIGNATURE) &&\n\tmemcmp(token->value, NTLMSSP_SIGNATURE,\n\t sizeof(NTLMSSP_SIGNATURE)) == 0) {\n\t*OID = gss_ntlm_mechanism_oid_desc;\n } else if (token->length != 0 &&\n\t ((char *)token->value)[0] == 0x6E) {\n \t\n\t*OID = gss_krb5_mechanism_oid_desc;\n } else if (token->length == 0) {\n\t*OID = gss_spnego_mechanism_oid_desc;\n } else {\n\treturn gssint_get_mech_type_oid(OID, token);\n }\n\n return (GSS_S_COMPLETE);\n}", "Selected Statement": "*OID = gss_ntlm_mechanism_oid_desc;", "Function Input": {"token": {"value": "0x7fffffffde20"}}, "Variable Values Before Statement": {"gss_ntlm_mechanism_oid_desc": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 5, "Project Information": "krb5"} +{"Programming Language": "C", "Source Code": "void fuzzer_init(struct fuzzer_context *fuzz_ctx)\n{\n\ti_zero(fuzz_ctx);\n\tif (!lib_is_initialized()) {\n\t\tlib_init();\n\t\tlib_signals_init();\n\t\tlib_signals_ignore(SIGPIPE, TRUE);\n\t}\n\tfuzz_ctx->fd = -1;\n}", "Selected Statement": "fuzz_ctx->fd = -1;", "Function Input": {"fuzz_ctx": {"value": {"type_category": "struct", "concrete_type": "STRUCT", "value": {"fd": {"type_category": "int", "concrete_type": "int", "value": "-2051002043"}, "fd_pump": {"type_category": "int", "concrete_type": "int", "value": "-1794162240"}, "pump": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cb63ce ", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x800003f7d8f741c0\n", "message": "Cannot access memory at address 0x800003f7d8f741c0"}}, "ioloop": {"type_category": "pointer", "concrete_type": "POINTER", "address": "0x7ffff7cb63d6 ", "value": {"type_category": "struct", "concrete_type": "error", "error_type": "gdb.MemoryError", "stacktrace": "Traceback (most recent call last):\n File \"/tracer/var_utils.py\", line 72, in serialize_value_to_json\n if str(value) == \"0x0\":\ngdb.MemoryError: Cannot access memory at address 0x88bb8b4829750000\n", "message": "Cannot access memory at address 0x88bb8b4829750000"}}}}}}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 7, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void data_stack_init(void)\n{\n\tif (data_stack_initialized) {\n\t\t\n\t\treturn;\n\t}\n\tdata_stack_initialized = TRUE;\n\tdata_stack_frame_id = 1;\n\n\toutofmem_area.block.size = outofmem_area.block.left =\n\t\tsizeof(outofmem_area) - sizeof(outofmem_area.block);\n\toutofmem_area.block.canary = BLOCK_CANARY;\n\n\tcurrent_block = mem_block_alloc(INITIAL_STACK_SIZE);\n\tcurrent_frame = NULL;\n\n\tlast_buffer_block = NULL;\n\tlast_buffer_size = 0;\n\n\troot_frame_id = t_push(\"data_stack_init\");\n}", "Selected Statement": "current_block = mem_block_alloc(INITIAL_STACK_SIZE);", "Function Input": {}, "Variable Values Before Statement": {"INITIAL_STACK_SIZE": "NULL"}, "Value After Statement Execution": {"prev": null, "next": null, "size": "32768", "left": "32768", "canary": null, "data": [{"type_category": "int", "concrete_type": "unsigned char", "value": "57 '9'"}]}, "Function Name": "mem_block_alloc", "Block_Size": 13, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void data_stack_init(void)\n{\n\tif (data_stack_initialized) {\n\t\t\n\t\treturn;\n\t}\n\tdata_stack_initialized = TRUE;\n\tdata_stack_frame_id = 1;\n\n\toutofmem_area.block.size = outofmem_area.block.left =\n\t\tsizeof(outofmem_area) - sizeof(outofmem_area.block);\n\toutofmem_area.block.canary = BLOCK_CANARY;\n\n\tcurrent_block = mem_block_alloc(INITIAL_STACK_SIZE);\n\tcurrent_frame = NULL;\n\n\tlast_buffer_block = NULL;\n\tlast_buffer_size = 0;\n\n\troot_frame_id = t_push(\"data_stack_init\");\n}", "Selected Statement": "root_frame_id = t_push(\"data_stack_init\");", "Function Input": {}, "Variable Values Before Statement": {"\"data_stack_init\"": "\"data_stack_init\""}, "Value After Statement Execution": "data_stack_frame_t", "Function Name": "t_push", "Block_Size": 19, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void hostpid_init(void)\n{\n\tstatic char pid[MAX_INT_STRLEN];\n\tchar hostname[256];\n\tconst char *value;\n\n\t\n\ti_free_and_null(my_hostname_dup);\n\ti_free_and_null(my_domain);\n\n\tvalue = getenv(MY_HOSTNAME_ENV);\n\tif (value == NULL) {\n\t\tif (gethostname(hostname, sizeof(hostname)-1) < 0)\n\t\t\ti_fatal(\"gethostname() failed: %m\");\n\t\thostname[sizeof(hostname)-1] = '\\0';\n\t\tvalue = hostname;\n\t}\n\n\tif (value[0] == '\\0' ||\n\t strcspn(value, HOSTNAME_DISALLOWED_CHARS) != strlen(value))\n\t\ti_fatal(\"Invalid system hostname: '%s'\", value);\n\tmy_hostname_dup = i_strdup(value);\n\tmy_hostname = my_hostname_dup;\n\n\ti_snprintf(pid, sizeof(pid), \"%lld\", (long long)getpid());\n\tmy_pid = pid;\n}", "Selected Statement": "value = getenv(MY_HOSTNAME_ENV);", "Function Input": {}, "Variable Values Before Statement": {"MY_HOSTNAME_ENV": "NULL"}, "Value After Statement Execution": "NULL", "Function Name": "getenv", "Block_Size": 9, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void hostpid_init(void)\n{\n\tstatic char pid[MAX_INT_STRLEN];\n\tchar hostname[256];\n\tconst char *value;\n\n\t\n\ti_free_and_null(my_hostname_dup);\n\ti_free_and_null(my_domain);\n\n\tvalue = getenv(MY_HOSTNAME_ENV);\n\tif (value == NULL) {\n\t\tif (gethostname(hostname, sizeof(hostname)-1) < 0)\n\t\t\ti_fatal(\"gethostname() failed: %m\");\n\t\thostname[sizeof(hostname)-1] = '\\0';\n\t\tvalue = hostname;\n\t}\n\n\tif (value[0] == '\\0' ||\n\t strcspn(value, HOSTNAME_DISALLOWED_CHARS) != strlen(value))\n\t\ti_fatal(\"Invalid system hostname: '%s'\", value);\n\tmy_hostname_dup = i_strdup(value);\n\tmy_hostname = my_hostname_dup;\n\n\ti_snprintf(pid, sizeof(pid), \"%lld\", (long long)getpid());\n\tmy_pid = pid;\n}", "Selected Statement": "my_hostname_dup = i_strdup(value);", "Function Input": {}, "Variable Values Before Statement": {"value": "0x7fffffffdd40 \"16e69046ca54\""}, "Value After Statement Execution": "0x1069380 \"16e69046ca54\"", "Function Name": "i_strdup", "Block_Size": 20, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void hostpid_init(void)\n{\n\tstatic char pid[MAX_INT_STRLEN];\n\tchar hostname[256];\n\tconst char *value;\n\n\t\n\ti_free_and_null(my_hostname_dup);\n\ti_free_and_null(my_domain);\n\n\tvalue = getenv(MY_HOSTNAME_ENV);\n\tif (value == NULL) {\n\t\tif (gethostname(hostname, sizeof(hostname)-1) < 0)\n\t\t\ti_fatal(\"gethostname() failed: %m\");\n\t\thostname[sizeof(hostname)-1] = '\\0';\n\t\tvalue = hostname;\n\t}\n\n\tif (value[0] == '\\0' ||\n\t strcspn(value, HOSTNAME_DISALLOWED_CHARS) != strlen(value))\n\t\ti_fatal(\"Invalid system hostname: '%s'\", value);\n\tmy_hostname_dup = i_strdup(value);\n\tmy_hostname = my_hostname_dup;\n\n\ti_snprintf(pid, sizeof(pid), \"%lld\", (long long)getpid());\n\tmy_pid = pid;\n}", "Selected Statement": "my_pid = pid;", "Function Input": {}, "Variable Values Before Statement": {"pid": "\"61\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\""}, "Value After Statement Execution": "\"61\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\"", "Block_Size": 24, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void fd_close_on_exec(int fd, bool set)\n{\n\tint flags;\n\n\tflags = fcntl(fd, F_GETFD, 0);\n\tif (flags < 0)\n\t\ti_fatal(\"fcntl(F_GETFD, %d) failed: %m\", fd);\n\n\tflags = set ? (flags | FD_CLOEXEC) : (flags & ~FD_CLOEXEC);\n\tif (fcntl(fd, F_SETFD, flags) < 0)\n\t\ti_fatal(\"fcntl(F_SETFD, %d) failed: %m\", fd);\n}", "Selected Statement": "flags = fcntl(fd, F_GETFD, 0);", "Function Input": {"fd": {"value": "32767"}, "set": {"value": "255"}}, "Variable Values Before Statement": {"fd": "int", "F_GETFD": "NULL", "0": "0"}, "Value After Statement Execution": "int", "Function Name": "fcntl", "Block_Size": 3, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void fd_close_on_exec(int fd, bool set)\n{\n\tint flags;\n\n\tflags = fcntl(fd, F_GETFD, 0);\n\tif (flags < 0)\n\t\ti_fatal(\"fcntl(F_GETFD, %d) failed: %m\", fd);\n\n\tflags = set ? (flags | FD_CLOEXEC) : (flags & ~FD_CLOEXEC);\n\tif (fcntl(fd, F_SETFD, flags) < 0)\n\t\ti_fatal(\"fcntl(F_SETFD, %d) failed: %m\", fd);\n}", "Selected Statement": "flags = set ? (flags | FD_CLOEXEC) : (flags & ~FD_CLOEXEC);", "Function Input": {"fd": {"value": "32767"}, "set": {"value": "255"}}, "Variable Values Before Statement": {"set": "_Bool"}, "Value After Statement Execution": "_Bool", "Block_Size": 7, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void var_expand_extensions_init(void)\n{\n\ti_array_init(&var_expand_extensions, 32);\n\n\t\n\tfor(const struct hash_method **meth = hash_methods;\n\t *meth != NULL;\n\t meth++) {\n\t\tstruct var_expand_extension_func_table *func =\n\t\t\tarray_append_space(&var_expand_extensions);\n\t\tfunc->key = (*meth)->name;\n\t\tfunc->func = var_expand_hash;\n\t}\n\n\t\n\tstruct var_expand_extension_func_table *func =\n\t\tarray_append_space(&var_expand_extensions);\n\tfunc->key = \"pkcs5\";\n\tfunc->func = var_expand_hash;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"if\";\n\tfunc->func = var_expand_if;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"system\";\n\tfunc->func = var_expand_system;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"process\";\n\tfunc->func = var_expand_process;\n}", "Selected Statement": "for(const struct hash_method **meth = hash_methods;", "Function Input": {}, "Variable Values Before Statement": {"hash_methods": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 4, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void var_expand_extensions_init(void)\n{\n\ti_array_init(&var_expand_extensions, 32);\n\n\t\n\tfor(const struct hash_method **meth = hash_methods;\n\t *meth != NULL;\n\t meth++) {\n\t\tstruct var_expand_extension_func_table *func =\n\t\t\tarray_append_space(&var_expand_extensions);\n\t\tfunc->key = (*meth)->name;\n\t\tfunc->func = var_expand_hash;\n\t}\n\n\t\n\tstruct var_expand_extension_func_table *func =\n\t\tarray_append_space(&var_expand_extensions);\n\tfunc->key = \"pkcs5\";\n\tfunc->func = var_expand_hash;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"if\";\n\tfunc->func = var_expand_if;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"system\";\n\tfunc->func = var_expand_system;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"process\";\n\tfunc->func = var_expand_process;\n}", "Selected Statement": "func->key = \"pkcs5\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"pkcs5\""}, "Value After Statement Execution": "\"pkcs5\"", "Block_Size": 16, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void var_expand_extensions_init(void)\n{\n\ti_array_init(&var_expand_extensions, 32);\n\n\t\n\tfor(const struct hash_method **meth = hash_methods;\n\t *meth != NULL;\n\t meth++) {\n\t\tstruct var_expand_extension_func_table *func =\n\t\t\tarray_append_space(&var_expand_extensions);\n\t\tfunc->key = (*meth)->name;\n\t\tfunc->func = var_expand_hash;\n\t}\n\n\t\n\tstruct var_expand_extension_func_table *func =\n\t\tarray_append_space(&var_expand_extensions);\n\tfunc->key = \"pkcs5\";\n\tfunc->func = var_expand_hash;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"if\";\n\tfunc->func = var_expand_if;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"system\";\n\tfunc->func = var_expand_system;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"process\";\n\tfunc->func = var_expand_process;\n}", "Selected Statement": "func = array_append_space(&var_expand_extensions);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": {"key": null, "func": null}, "Function Name": "array_append_space", "Block_Size": 20, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void var_expand_extensions_init(void)\n{\n\ti_array_init(&var_expand_extensions, 32);\n\n\t\n\tfor(const struct hash_method **meth = hash_methods;\n\t *meth != NULL;\n\t meth++) {\n\t\tstruct var_expand_extension_func_table *func =\n\t\t\tarray_append_space(&var_expand_extensions);\n\t\tfunc->key = (*meth)->name;\n\t\tfunc->func = var_expand_hash;\n\t}\n\n\t\n\tstruct var_expand_extension_func_table *func =\n\t\tarray_append_space(&var_expand_extensions);\n\tfunc->key = \"pkcs5\";\n\tfunc->func = var_expand_hash;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"if\";\n\tfunc->func = var_expand_if;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"system\";\n\tfunc->func = var_expand_system;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"process\";\n\tfunc->func = var_expand_process;\n}", "Selected Statement": "func->key = \"if\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"if\""}, "Value After Statement Execution": "\"if\"", "Block_Size": 21, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void var_expand_extensions_init(void)\n{\n\ti_array_init(&var_expand_extensions, 32);\n\n\t\n\tfor(const struct hash_method **meth = hash_methods;\n\t *meth != NULL;\n\t meth++) {\n\t\tstruct var_expand_extension_func_table *func =\n\t\t\tarray_append_space(&var_expand_extensions);\n\t\tfunc->key = (*meth)->name;\n\t\tfunc->func = var_expand_hash;\n\t}\n\n\t\n\tstruct var_expand_extension_func_table *func =\n\t\tarray_append_space(&var_expand_extensions);\n\tfunc->key = \"pkcs5\";\n\tfunc->func = var_expand_hash;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"if\";\n\tfunc->func = var_expand_if;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"system\";\n\tfunc->func = var_expand_system;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"process\";\n\tfunc->func = var_expand_process;\n}", "Selected Statement": "func = array_append_space(&var_expand_extensions);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": {"key": null, "func": null}, "Function Name": "array_append_space", "Block_Size": 25, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void var_expand_extensions_init(void)\n{\n\ti_array_init(&var_expand_extensions, 32);\n\n\t\n\tfor(const struct hash_method **meth = hash_methods;\n\t *meth != NULL;\n\t meth++) {\n\t\tstruct var_expand_extension_func_table *func =\n\t\t\tarray_append_space(&var_expand_extensions);\n\t\tfunc->key = (*meth)->name;\n\t\tfunc->func = var_expand_hash;\n\t}\n\n\t\n\tstruct var_expand_extension_func_table *func =\n\t\tarray_append_space(&var_expand_extensions);\n\tfunc->key = \"pkcs5\";\n\tfunc->func = var_expand_hash;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"if\";\n\tfunc->func = var_expand_if;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"system\";\n\tfunc->func = var_expand_system;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"process\";\n\tfunc->func = var_expand_process;\n}", "Selected Statement": "func->key = \"system\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"system\""}, "Value After Statement Execution": "\"system\"", "Block_Size": 26, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void var_expand_extensions_init(void)\n{\n\ti_array_init(&var_expand_extensions, 32);\n\n\t\n\tfor(const struct hash_method **meth = hash_methods;\n\t *meth != NULL;\n\t meth++) {\n\t\tstruct var_expand_extension_func_table *func =\n\t\t\tarray_append_space(&var_expand_extensions);\n\t\tfunc->key = (*meth)->name;\n\t\tfunc->func = var_expand_hash;\n\t}\n\n\t\n\tstruct var_expand_extension_func_table *func =\n\t\tarray_append_space(&var_expand_extensions);\n\tfunc->key = \"pkcs5\";\n\tfunc->func = var_expand_hash;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"if\";\n\tfunc->func = var_expand_if;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"system\";\n\tfunc->func = var_expand_system;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"process\";\n\tfunc->func = var_expand_process;\n}", "Selected Statement": "func = array_append_space(&var_expand_extensions);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": {"key": null, "func": null}, "Function Name": "array_append_space", "Block_Size": 30, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void var_expand_extensions_init(void)\n{\n\ti_array_init(&var_expand_extensions, 32);\n\n\t\n\tfor(const struct hash_method **meth = hash_methods;\n\t *meth != NULL;\n\t meth++) {\n\t\tstruct var_expand_extension_func_table *func =\n\t\t\tarray_append_space(&var_expand_extensions);\n\t\tfunc->key = (*meth)->name;\n\t\tfunc->func = var_expand_hash;\n\t}\n\n\t\n\tstruct var_expand_extension_func_table *func =\n\t\tarray_append_space(&var_expand_extensions);\n\tfunc->key = \"pkcs5\";\n\tfunc->func = var_expand_hash;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"if\";\n\tfunc->func = var_expand_if;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"system\";\n\tfunc->func = var_expand_system;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"process\";\n\tfunc->func = var_expand_process;\n}", "Selected Statement": "func->key = \"process\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"process\""}, "Value After Statement Execution": "\"process\"", "Block_Size": 31, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void var_expand_extensions_init(void)\n{\n\ti_array_init(&var_expand_extensions, 32);\n\n\t\n\tfor(const struct hash_method **meth = hash_methods;\n\t *meth != NULL;\n\t meth++) {\n\t\tstruct var_expand_extension_func_table *func =\n\t\t\tarray_append_space(&var_expand_extensions);\n\t\tfunc->key = (*meth)->name;\n\t\tfunc->func = var_expand_hash;\n\t}\n\n\t\n\tstruct var_expand_extension_func_table *func =\n\t\tarray_append_space(&var_expand_extensions);\n\tfunc->key = \"pkcs5\";\n\tfunc->func = var_expand_hash;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"if\";\n\tfunc->func = var_expand_if;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"system\";\n\tfunc->func = var_expand_system;\n\n\t\n\tfunc = array_append_space(&var_expand_extensions);\n\tfunc->key = \"process\";\n\tfunc->func = var_expand_process;\n}", "Selected Statement": "func->func = var_expand_process;", "Function Input": {}, "Variable Values Before Statement": {"var_expand_process": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 32, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void lib_signals_init(void)\n{\n\tint i;\n\n\tsignals_initialized = TRUE;\n\tio_loop_add_switch_callback(lib_signals_ioloop_switched);\n\tio_loop_add_destroy_callback(lib_signals_ioloop_destroyed);\n\n\t\n\tfor (i = 0; i < MAX_SIGNAL_VALUE; i++) {\n\t\tif (signal_handlers[i] != NULL)\n\t\t\tlib_signals_set(i, signal_handlers[i]->flags);\n\t}\n}", "Selected Statement": "for (i = 0; i < MAX_SIGNAL_VALUE; i++) {", "Function Input": {}, "Variable Values Before Statement": {"constant": "0"}, "Value After Statement Execution": "0", "Block_Size": 8, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void io_stream_init(struct iostream_private *stream)\n{\n\tif (stream->close == NULL)\n\t\tstream->close = io_stream_default_close;\n\tif (stream->destroy == NULL)\n\t\tstream->destroy = io_stream_default_destroy;\n\tstream->ioloop = current_ioloop;\n\n\tstream->refcount = 1;\n}", "Selected Statement": "stream->close = io_stream_default_close;", "Function Input": {}, "Variable Values Before Statement": {"io_stream_default_close": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 2, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void io_stream_init(struct iostream_private *stream)\n{\n\tif (stream->close == NULL)\n\t\tstream->close = io_stream_default_close;\n\tif (stream->destroy == NULL)\n\t\tstream->destroy = io_stream_default_destroy;\n\tstream->ioloop = current_ioloop;\n\n\tstream->refcount = 1;\n}", "Selected Statement": "stream->destroy = io_stream_default_destroy;", "Function Input": {}, "Variable Values Before Statement": {"io_stream_default_destroy": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 4, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "void io_stream_init(struct iostream_private *stream)\n{\n\tif (stream->close == NULL)\n\t\tstream->close = io_stream_default_close;\n\tif (stream->destroy == NULL)\n\t\tstream->destroy = io_stream_default_destroy;\n\tstream->ioloop = current_ioloop;\n\n\tstream->refcount = 1;\n}", "Selected Statement": "stream->refcount = 1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 7, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "pool_t pool_alloconly_create(const char *name ATTR_UNUSED, size_t size)\n{\n\tstruct alloconly_pool apool, *new_apool;\n\tsize_t min_alloc = SIZEOF_POOLBLOCK +\n\t\tMEM_ALIGN(sizeof(struct alloconly_pool) + SENTRY_COUNT);\n\n\t(void) COMPILE_ERROR_IF_TRUE(POOL_ALLOCONLY_MAX_EXTRA >\n\t\t\t\t (SSIZE_T_MAX - POOL_MAX_ALLOC_SIZE));\n\n#ifdef DEBUG\n\tmin_alloc += MEM_ALIGN(strlen(name) + 1 + SENTRY_COUNT) +\n\t\tsizeof(size_t)*2;\n#endif\n\n\t\n\ti_zero(&apool);\n\tapool.pool = static_alloconly_pool;\n\tapool.refcount = 1;\n\n\tif (size < min_alloc)\n\t\tsize = nearest_power(size + min_alloc);\n\tblock_alloc(&apool, size);\n\n\t\n\tnew_apool = p_new(&apool.pool, struct alloconly_pool, 1);\n\t*new_apool = apool;\n#ifdef DEBUG\n\tif (str_begins(name, MEMPOOL_GROWING, &name) ||\n\t getenv(\"DEBUG_SILENT\") != NULL)\n\t\tnew_apool->disable_warning = TRUE;\n\tnew_apool->name = p_strdup(&new_apool->pool, name);\n\n\t\n\tnew_apool->base_size = new_apool->block->size - new_apool->block->left;\n\tnew_apool->block->last_alloc_size = 0;\n#endif\n\t\n\ti_assert(new_apool->block->prev == NULL);\n\n\treturn &new_apool->pool;\n}", "Selected Statement": "apool.pool = static_alloconly_pool;", "Function Input": {}, "Variable Values Before Statement": {"static_alloconly_pool": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 15, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "pool_t pool_alloconly_create(const char *name ATTR_UNUSED, size_t size)\n{\n\tstruct alloconly_pool apool, *new_apool;\n\tsize_t min_alloc = SIZEOF_POOLBLOCK +\n\t\tMEM_ALIGN(sizeof(struct alloconly_pool) + SENTRY_COUNT);\n\n\t(void) COMPILE_ERROR_IF_TRUE(POOL_ALLOCONLY_MAX_EXTRA >\n\t\t\t\t (SSIZE_T_MAX - POOL_MAX_ALLOC_SIZE));\n\n#ifdef DEBUG\n\tmin_alloc += MEM_ALIGN(strlen(name) + 1 + SENTRY_COUNT) +\n\t\tsizeof(size_t)*2;\n#endif\n\n\t\n\ti_zero(&apool);\n\tapool.pool = static_alloconly_pool;\n\tapool.refcount = 1;\n\n\tif (size < min_alloc)\n\t\tsize = nearest_power(size + min_alloc);\n\tblock_alloc(&apool, size);\n\n\t\n\tnew_apool = p_new(&apool.pool, struct alloconly_pool, 1);\n\t*new_apool = apool;\n#ifdef DEBUG\n\tif (str_begins(name, MEMPOOL_GROWING, &name) ||\n\t getenv(\"DEBUG_SILENT\") != NULL)\n\t\tnew_apool->disable_warning = TRUE;\n\tnew_apool->name = p_strdup(&new_apool->pool, name);\n\n\t\n\tnew_apool->base_size = new_apool->block->size - new_apool->block->left;\n\tnew_apool->block->last_alloc_size = 0;\n#endif\n\t\n\ti_assert(new_apool->block->prev == NULL);\n\n\treturn &new_apool->pool;\n}", "Selected Statement": "size = nearest_power(size + min_alloc);", "Function Input": {}, "Variable Values Before Statement": {}, "Value After Statement Execution": "1024", "Function Name": "nearest_power", "Block_Size": 19, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "pool_t pool_alloconly_create(const char *name ATTR_UNUSED, size_t size)\n{\n\tstruct alloconly_pool apool, *new_apool;\n\tsize_t min_alloc = SIZEOF_POOLBLOCK +\n\t\tMEM_ALIGN(sizeof(struct alloconly_pool) + SENTRY_COUNT);\n\n\t(void) COMPILE_ERROR_IF_TRUE(POOL_ALLOCONLY_MAX_EXTRA >\n\t\t\t\t (SSIZE_T_MAX - POOL_MAX_ALLOC_SIZE));\n\n#ifdef DEBUG\n\tmin_alloc += MEM_ALIGN(strlen(name) + 1 + SENTRY_COUNT) +\n\t\tsizeof(size_t)*2;\n#endif\n\n\t\n\ti_zero(&apool);\n\tapool.pool = static_alloconly_pool;\n\tapool.refcount = 1;\n\n\tif (size < min_alloc)\n\t\tsize = nearest_power(size + min_alloc);\n\tblock_alloc(&apool, size);\n\n\t\n\tnew_apool = p_new(&apool.pool, struct alloconly_pool, 1);\n\t*new_apool = apool;\n#ifdef DEBUG\n\tif (str_begins(name, MEMPOOL_GROWING, &name) ||\n\t getenv(\"DEBUG_SILENT\") != NULL)\n\t\tnew_apool->disable_warning = TRUE;\n\tnew_apool->name = p_strdup(&new_apool->pool, name);\n\n\t\n\tnew_apool->base_size = new_apool->block->size - new_apool->block->left;\n\tnew_apool->block->last_alloc_size = 0;\n#endif\n\t\n\ti_assert(new_apool->block->prev == NULL);\n\n\treturn &new_apool->pool;\n}", "Selected Statement": "new_apool = p_new(&apool.pool, struct alloconly_pool, 1);", "Function Input": {}, "Variable Values Before Statement": {"alloconly_pool": "NULL", "1": "1"}, "Value After Statement Execution": {"pool": null, "refcount": "0", "block": null, "clean_frees": "false"}, "Function Name": "p_new", "Block_Size": 23, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "uint32_t i_rand_limit(uint32_t upper_bound)\n{\n\ti_assert(upper_bound > 0);\n\n\tuint32_t val;\n\tuint32_t min = UNSIGNED_MINUS(upper_bound) % upper_bound;\n\twhile((val = i_rand()) < min);\n\treturn val % upper_bound;\n}", "Selected Statement": "uint32_t min = UNSIGNED_MINUS(upper_bound) % upper_bound;", "Function Input": {}, "Variable Values Before Statement": {"UNSIGNED_MINUS": "NULL", "upper_bound": "128"}, "Value After Statement Execution": "0", "Block_Size": 4, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "pool_t pool_datastack_create(void)\n{\n\tstruct datastack_pool *dpool;\n\n\tdpool = t_new(struct datastack_pool, 1);\n\tdpool->pool = static_data_stack_pool;\n\tdpool->refcount = 1;\n\tdpool->data_stack_frame = data_stack_frame_id;\n\treturn &dpool->pool;\n}", "Selected Statement": "dpool = t_new(struct datastack_pool, 1);", "Function Input": {}, "Variable Values Before Statement": {"datastack_pool": "NULL", "1": "1"}, "Value After Statement Execution": {"pool": null, "refcount": "0", "data_stack_frame": "0"}, "Function Name": "t_new", "Block_Size": 3, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "pool_t pool_datastack_create(void)\n{\n\tstruct datastack_pool *dpool;\n\n\tdpool = t_new(struct datastack_pool, 1);\n\tdpool->pool = static_data_stack_pool;\n\tdpool->refcount = 1;\n\tdpool->data_stack_frame = data_stack_frame_id;\n\treturn &dpool->pool;\n}", "Selected Statement": "dpool->pool = static_data_stack_pool;", "Function Input": {}, "Variable Values Before Statement": {"static_data_stack_pool": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 4, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "pool_t pool_datastack_create(void)\n{\n\tstruct datastack_pool *dpool;\n\n\tdpool = t_new(struct datastack_pool, 1);\n\tdpool->pool = static_data_stack_pool;\n\tdpool->refcount = 1;\n\tdpool->data_stack_frame = data_stack_frame_id;\n\treturn &dpool->pool;\n}", "Selected Statement": "dpool->refcount = 1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "1"}, "Value After Statement Execution": "1", "Block_Size": 5, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "pool_t pool_datastack_create(void)\n{\n\tstruct datastack_pool *dpool;\n\n\tdpool = t_new(struct datastack_pool, 1);\n\tdpool->pool = static_data_stack_pool;\n\tdpool->refcount = 1;\n\tdpool->data_stack_frame = data_stack_frame_id;\n\treturn &dpool->pool;\n}", "Selected Statement": "dpool->data_stack_frame = data_stack_frame_id;", "Function Input": {}, "Variable Values Before Statement": {"data_stack_frame_id": "NULL"}, "Value After Statement Execution": "NULL", "Block_Size": 6, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "int imap_bodystructure_parse_full(const char *bodystructure,\n\tpool_t pool, struct message_part **parts,\n\tconst char **error_r)\n{\n\tstruct istream *input;\n\tstruct imap_parser *parser;\n\tconst struct imap_arg *args;\n\tint ret;\n\n\ti_assert(*parts == NULL || (*parts)->next == NULL);\n\n\tinput = i_stream_create_from_data(bodystructure, strlen(bodystructure));\n\t(void)i_stream_read(input);\n\n\tparser = imap_parser_create(input, NULL, SIZE_MAX);\n\tret = imap_parser_finish_line(parser, 0,\n\t\t\t\t IMAP_PARSE_FLAG_LITERAL_TYPE, &args);\n\tif (ret < 0) {\n\t\t*error_r = t_strdup_printf(\"IMAP parser failed: %s\",\n\t\t\t\t\t imap_parser_get_error(parser, NULL));\n\t} else if (ret == 0) {\n\t\t*error_r = \"Empty bodystructure\";\n\t\tret = -1;\n\t} else {\n\t\tT_BEGIN {\n\t\t\tret = imap_bodystructure_parse_args\n\t\t\t\t(args, pool, parts, error_r);\n\t\t} T_END_PASS_STR_IF(ret < 0, error_r);\n\t}\n\n\tif (ret < 0) {\n\t\t\n\t\timap_bodystructure_reset_data(*parts);\n\t}\n\n\timap_parser_unref(&parser);\n\ti_stream_destroy(&input);\n\treturn ret;\n}", "Selected Statement": "input = i_stream_create_from_data(bodystructure, strlen(bodystructure));", "Function Input": {}, "Variable Values Before Statement": {"bodystructure": "0x103c098 \"\""}, "Value After Statement Execution": {"v_offset": "0", "stream_errno": "0", "mmaped": "false", "blocking": "true", "closed": "false", "readable_fd": "false", "seekable": "true", "eof": "false", "real_stream": null}, "Function Name": "i_stream_create_from_data", "Block_Size": 10, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "int imap_bodystructure_parse_full(const char *bodystructure,\n\tpool_t pool, struct message_part **parts,\n\tconst char **error_r)\n{\n\tstruct istream *input;\n\tstruct imap_parser *parser;\n\tconst struct imap_arg *args;\n\tint ret;\n\n\ti_assert(*parts == NULL || (*parts)->next == NULL);\n\n\tinput = i_stream_create_from_data(bodystructure, strlen(bodystructure));\n\t(void)i_stream_read(input);\n\n\tparser = imap_parser_create(input, NULL, SIZE_MAX);\n\tret = imap_parser_finish_line(parser, 0,\n\t\t\t\t IMAP_PARSE_FLAG_LITERAL_TYPE, &args);\n\tif (ret < 0) {\n\t\t*error_r = t_strdup_printf(\"IMAP parser failed: %s\",\n\t\t\t\t\t imap_parser_get_error(parser, NULL));\n\t} else if (ret == 0) {\n\t\t*error_r = \"Empty bodystructure\";\n\t\tret = -1;\n\t} else {\n\t\tT_BEGIN {\n\t\t\tret = imap_bodystructure_parse_args\n\t\t\t\t(args, pool, parts, error_r);\n\t\t} T_END_PASS_STR_IF(ret < 0, error_r);\n\t}\n\n\tif (ret < 0) {\n\t\t\n\t\timap_bodystructure_reset_data(*parts);\n\t}\n\n\timap_parser_unref(&parser);\n\ti_stream_destroy(&input);\n\treturn ret;\n}", "Selected Statement": "parser = imap_parser_create(input, NULL, SIZE_MAX);", "Function Input": {}, "Variable Values Before Statement": {"input": {"v_offset": "0", "stream_errno": "0", "mmaped": "false", "blocking": "true", "closed": "false", "readable_fd": "false", "seekable": "true", "eof": "true", "real_stream": null}, "SIZE_MAX": "NULL"}, "Value After Statement Execution": "NULL", "Function Name": "imap_parser_create", "Block_Size": 13, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "int imap_bodystructure_parse_full(const char *bodystructure,\n\tpool_t pool, struct message_part **parts,\n\tconst char **error_r)\n{\n\tstruct istream *input;\n\tstruct imap_parser *parser;\n\tconst struct imap_arg *args;\n\tint ret;\n\n\ti_assert(*parts == NULL || (*parts)->next == NULL);\n\n\tinput = i_stream_create_from_data(bodystructure, strlen(bodystructure));\n\t(void)i_stream_read(input);\n\n\tparser = imap_parser_create(input, NULL, SIZE_MAX);\n\tret = imap_parser_finish_line(parser, 0,\n\t\t\t\t IMAP_PARSE_FLAG_LITERAL_TYPE, &args);\n\tif (ret < 0) {\n\t\t*error_r = t_strdup_printf(\"IMAP parser failed: %s\",\n\t\t\t\t\t imap_parser_get_error(parser, NULL));\n\t} else if (ret == 0) {\n\t\t*error_r = \"Empty bodystructure\";\n\t\tret = -1;\n\t} else {\n\t\tT_BEGIN {\n\t\t\tret = imap_bodystructure_parse_args\n\t\t\t\t(args, pool, parts, error_r);\n\t\t} T_END_PASS_STR_IF(ret < 0, error_r);\n\t}\n\n\tif (ret < 0) {\n\t\t\n\t\timap_bodystructure_reset_data(*parts);\n\t}\n\n\timap_parser_unref(&parser);\n\ti_stream_destroy(&input);\n\treturn ret;\n}", "Selected Statement": "*error_r = \"Empty bodystructure\";", "Function Input": {}, "Variable Values Before Statement": {"constant": "\"Empty bodystructure\""}, "Value After Statement Execution": "\"Empty bodystructure\"", "Block_Size": 20, "Project Information": "dovecot"} +{"Programming Language": "C", "Source Code": "int imap_bodystructure_parse_full(const char *bodystructure,\n\tpool_t pool, struct message_part **parts,\n\tconst char **error_r)\n{\n\tstruct istream *input;\n\tstruct imap_parser *parser;\n\tconst struct imap_arg *args;\n\tint ret;\n\n\ti_assert(*parts == NULL || (*parts)->next == NULL);\n\n\tinput = i_stream_create_from_data(bodystructure, strlen(bodystructure));\n\t(void)i_stream_read(input);\n\n\tparser = imap_parser_create(input, NULL, SIZE_MAX);\n\tret = imap_parser_finish_line(parser, 0,\n\t\t\t\t IMAP_PARSE_FLAG_LITERAL_TYPE, &args);\n\tif (ret < 0) {\n\t\t*error_r = t_strdup_printf(\"IMAP parser failed: %s\",\n\t\t\t\t\t imap_parser_get_error(parser, NULL));\n\t} else if (ret == 0) {\n\t\t*error_r = \"Empty bodystructure\";\n\t\tret = -1;\n\t} else {\n\t\tT_BEGIN {\n\t\t\tret = imap_bodystructure_parse_args\n\t\t\t\t(args, pool, parts, error_r);\n\t\t} T_END_PASS_STR_IF(ret < 0, error_r);\n\t}\n\n\tif (ret < 0) {\n\t\t\n\t\timap_bodystructure_reset_data(*parts);\n\t}\n\n\timap_parser_unref(&parser);\n\ti_stream_destroy(&input);\n\treturn ret;\n}", "Selected Statement": "ret = -1;", "Function Input": {}, "Variable Values Before Statement": {"constant": "-1"}, "Value After Statement Execution": "-1", "Block_Size": 21, "Project Information": "dovecot"}