[*] Binary protection state of xmldb

  	RELRO          CANARY            NX           PIE          RPATH        RUNPATH      SYMBOLS      
  	No RELRO       No Canary found   NX disabled  No PIE       No RPATH     No RUNPATH   No Symbols




[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00402660_00402660.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        14 - memset(&DAT_00433d70 + param_1 * 0xd,0,0x34)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004029e0_004029e0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
        Issue description:
    The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

        12 - )



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004029e0_004029e0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        12 - );   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00402e18_00402e18.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        15 - vfprintf(_stdout,param_1,&local_res4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00402c70_00402c70.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        6 - lxmldbc_system(&DAT_00421cfc)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00402c70_00402c70.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        9 - memset(&DAT_004343f0 + param_1 * 0x28,0,0x28)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00403e44_00403e44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        15 - vfprintf(_stdout,param_1,&local_res4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/client_printf_00402d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unsafe-ret-snprintf-vsnprintf
        Issue description:
    The snprintf() and vsnprintf() functions return the total length of the string they tried to create. Therefore, this return value can be larger than the size of the destination buffer. If it is used unsafely, e.g. as an index to write to the destination buffer, memory corruption might occur.

        13 - iVar1 = vsnprintf(acStack_214,0x200,param_2,&local_res8)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/client_printf_00402d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        13 - iVar1 = vsnprintf(acStack_214,0x200,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/client_printf_00402d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        13 - iVar1 = vsnprintf(acStack_214,0x200,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/client_printf_00402d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        13 - iVar1 = vsnprintf(acStack_214,0x200,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004023c0_004023c0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-access-stat
        Issue description:
    The software checks the state of a resource before using it, but the  resource's state can change between the check and the use in a way that  invalidates the results of the check. This can cause the software to  perform invalid actions when the resource is in an unexpected state.

        17 - iVar2 = stat(DAT_00433ce0,&sStack_b0)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004023c0_004023c0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        17 - iVar2 = stat(DAT_00433ce0,&sStack_b0);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004023c0_004023c0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        40 - snprintf(local_120[0].sa_data,0x6c,"%s",DAT_00433ce0)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004023c0_004023c0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        40 - snprintf(local_120[0].sa_data,0x6c,"%s",DAT_00433ce0);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004023c0_004023c0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        44 - chmod(local_120[0].sa_data,0x1ff)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404d30_00404d30.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        5 - memset(&DAT_00434934,0,0x80)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404e3c_00404e3c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        31 - pcVar3 = strdup(param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00405030_00405030.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        34 - pcVar2 = strdup(param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404fb0_00404fb0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        7 - __s = malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404fb0_00404fb0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        7 - __s = malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404fb0_00404fb0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        9 - memset(__s,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404d94_00404d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        10 - pvVar2 = malloc(0x10)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404d94_00404d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        10 - pvVar2 = malloc(0x10);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404d94_00404d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        14 - pcVar1 = strdup(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404d94_00404d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        20 - pcVar1 = strdup(param_2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_set_anchor_004051c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        7 - puVar1 = (undefined4 *)malloc(0xc)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_set_anchor_004051c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        7 - puVar1 = (undefined4 *)malloc(0xc);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_get_value_0040592c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        69 - sprintf(&DAT_00434924,"%d",iVar3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404bf4_00404bf4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        15 - vsnprintf(acStack_414,0x400,param_2,&local_res8)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404bf4_00404bf4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        15 - vsnprintf(acStack_414,0x400,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404bf4_00404bf4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        15 - vsnprintf(acStack_414,0x400,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404bf4_00404bf4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-command-injection
        Issue description:
    The software constructs an OS command using externally-influenced input,  but it does not neutralize or incorrectly neutralizes special elements  that could modify the intended OS command.

        16 - __stream = popen(acStack_414,"r")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404bf4_00404bf4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        16 - __stream = popen(acStack_414,"r");   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404bf4_00404bf4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        19 - while (iVar2 = fgetc(__stream), iVar2 != -1) {



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        15 - iVar1 = getopt(param_1,param_2,"hvts:p:n:")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-sprintf-vsprintf
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        24 - sprintf(&DAT_00433ce4,"%s_%s.pid",DAT_00433ce0,o_rootname)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        24 - sprintf(&DAT_00433ce4,"%s_%s.pid",DAT_00433ce0,o_rootname);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        31 - __stream = fopen(DAT_00433cd8,"w")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        48 - memset(puVar4,0,0x34)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        54 - memset(&DAT_004343f0,0,0x500)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        75 - memset(__s,0,0x34)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        83 - unlink(DAT_00433ce0)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        84 - unlink(DAT_00433cd8)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        95 - memset(&DAT_004343f0,0,0x500)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00406970_00406970.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        42 - iVar13 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_set_value_00405e24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        20 - pcVar3 = strdup(param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_set_value_00405e24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        25 - lxmldbc_system("%s %s",iVar1,param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_set_value_00405e24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        32 - pcVar3 = strdup(*(char **)(iVar1 + 0x1c))



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_set_value_00405e24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        35 - pcVar3 = strdup(param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004078e8_004078e8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        34 - __s = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004078e8_004078e8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        34 - __s = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004078e8_004078e8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        36 - memset(__s,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00408ba4_00408ba4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        14 - __ptr = (int *)malloc(0x10)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00408ba4_00408ba4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        14 - __ptr = (int *)malloc(0x10);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00408e6c_00408e6c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        16 - __s = (int *)malloc(0x20)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00408e6c_00408e6c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        16 - __s = (int *)malloc(0x20);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00408e6c_00408e6c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        24 - memset(__s,0,0x20)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        18 - iVar1 = getopt(param_1,param_2,"hHvg:s:a:d:D:l:L:r:R:w:W:S:P:V:x:t:k:X:")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        51 - sVar3 = sVar3 + 2



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        54 - sVar3 = sVar3 + sVar4 + 1



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
        Issue description:
    The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

        56 - DAT_0043490c = (char *)realloc(pcVar6,sVar3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        56 - DAT_0043490c = (char *)realloc(pcVar6,sVar3);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        58 - strcat(DAT_0043490c,"
    ")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        59 - strcat(DAT_0043490c,_optarg)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        59 - strcat(DAT_0043490c,_optarg);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        135 - pcVar6 = strdup((char *)DAT_004348f0)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        139 - pcVar7 = strdup((char *)DAT_004348f4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
        Issue description:
    The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

        182 - pcVar6 = (char *)malloc(sVar3 + sVar4 + 2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        182 - pcVar6 = (char *)malloc(sVar3 + sVar4 + 2);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        184 - strcpy(pcVar6,DAT_00434910)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        184 - strcpy(pcVar6,DAT_00434910);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        185 - strcat(pcVar6,DAT_0043490c)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        185 - strcat(pcVar6,DAT_0043490c);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b3ec_0040b3ec.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        85 - iVar4 = xs_fopen(__ptr,&DAT_00422c14)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004093c8_004093c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        23 - __s = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004093c8_004093c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        23 - __s = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004093c8_004093c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        32 - memset(__s,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004093c8_004093c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        34 - pcVar2 = strdup(param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409800_00409800.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        13 - __s = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409800_00409800.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        13 - __s = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409800_00409800.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        16 - memset(__s,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409800_00409800.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        21 - __s_00 = (undefined4 *)malloc(0x20)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409800_00409800.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        21 - __s_00 = (undefined4 *)malloc(0x20);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409800_00409800.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        27 - memset(__s_00,0,0x20)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c744_0040c744.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        10 - __ptr = (int *)malloc(0x10)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c744_0040c744.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        10 - __ptr = (int *)malloc(0x10);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c744_0040c744.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        16 - pcVar1 = strdup(param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040aa44_0040aa44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        16 - __s = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040aa44_0040aa44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        16 - __s = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040aa44_0040aa44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        24 - memset(__s,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040aa44_0040aa44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        43 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040aa44_0040aa44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        46 - xs_ungets(uVar3,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040aa44_0040aa44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        48 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        14 - iVar3 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        33 - iVar4 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        45 - iVar3 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        49 - iVar3 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        62 - xs_ungetc(iVar3,param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        68 - iVar3 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        80 - iVar5 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        94 - iVar5 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        101 - iVar5 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        124 - xs_ungetc(iVar3,param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        125 - iVar3 = sobj_xstream_read(param_1,param_2,"/+-=&|?*%^<>.,(){}[]:;!@#",param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        135 - xs_ungetc(iVar3,param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b870_0040b870.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        55 - piVar4 = (int *)malloc(0x1c)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b870_0040b870.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        55 - piVar4 = (int *)malloc(0x1c);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b870_0040b870.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        55 - piVar4 = (int *)malloc(0x1c);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b870_0040b870.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        138 - puVar13 = (undefined4 *)malloc(0x20)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b870_0040b870.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        138 - puVar13 = (undefined4 *)malloc(0x20);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b870_0040b870.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        147 - memset(puVar13,0,0x20)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_ephp_load_0040d41c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        20 - iVar1 = xs_fopen(param_2,&DAT_00422c14)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c9e4_0040c9e4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        58 - sprintf(local_2c,"%lld",(int)lVar16,(int)((ulonglong)lVar16 >> 0x20))



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c9e4_0040c9e4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        161 - sprintf(local_30,"%d",iVar4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040d858_0040d858.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        90 - strcpy(acStack_a8," !! DIV 0 ERROR !! ")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040d858_0040d858.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        97 - sprintf(acStack_a8,"%lld",(int)lVar12,(int)((ulonglong)lVar12 >> 0x20))



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e9cc_0040e9cc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        16 - local_a0 = tVar2 - (local_5c.uptime - lVar1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e9cc_0040e9cc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        17 - memset(acStack_9c,0,0x40)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040eb9c_0040eb9c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        55 - strcpy(s__m__d__Y__T_004335a0,__s)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040eb9c_0040eb9c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        55 - strcpy(s__m__d__Y__T_004335a0,__s);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_ephp_0040e12c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        54 - memset(&local_88,0,0x50)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_ephp_0040e12c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        75 - local_84 = xs_fopen(param_2,&DAT_00422c14)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040f7e0_0040f7e0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-access-stat
        Issue description:
    The software checks the state of a resource before using it, but the  resource's state can change between the check and the use in a way that  invalidates the results of the check. This can cause the software to  perform invalid actions when the resource is in an unexpected state.

        27 - iVar4 = stat(pcVar3,&sStack_b8)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040f7e0_0040f7e0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        27 - iVar4 = stat(pcVar3,&sStack_b8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e650_0040e650.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        64 - iVar3 = snprintf(acStack_ac,0x80,pcVar4,lVar5)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e650_0040e650.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unsafe-ret-snprintf-vsnprintf
        Issue description:
    The snprintf() and vsnprintf() functions return the total length of the string they tried to create. Therefore, this return value can be larger than the size of the destination buffer. If it is used unsafely, e.g. as an index to write to the destination buffer, memory corruption might occur.

        64 - iVar3 = snprintf(acStack_ac,0x80,pcVar4,lVar5);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e650_0040e650.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        64 - iVar3 = snprintf(acStack_ac,0x80,pcVar4,lVar5);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e650_0040e650.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        64 - iVar3 = snprintf(acStack_ac,0x80,pcVar4,lVar5);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e650_0040e650.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        64 - iVar3 = snprintf(acStack_ac,0x80,pcVar4,lVar5);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        25 - __s = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        25 - __s = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        37 - memset(__s,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        59 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        62 - xs_ungets(uVar8,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        64 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        98 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        101 - xs_ungets(uVar8,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        103 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        116 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        119 - xs_ungets(uVar8,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        121 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00411860_00411860.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        50 - __stream = fopen(__filename,"r")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00411860_00411860.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        57 - while (iVar3 = fgetc(__stream), 1 < iVar3 + 1U) {



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00412750_00412750.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        28 - strcpy((char *)(*(int *)(param_2 + 0x14) + *(int *)(param_2 + 0x10)),param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00412750_00412750.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        28 - strcpy((char *)(*(int *)(param_2 + 0x14) + *(int *)(param_2 + 0x10)),param_3);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00419b44_00419b44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        61 - sprintf(acStack_48,"%lu",uVar4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        20 - iVar2 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        21 - iVar3 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        22 - iVar4 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        25 - xs_ungetc(iVar4,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        28 - xs_ungetc(iVar3,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        31 - xs_ungetc(iVar2,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        38 - iVar2 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        51 - iVar3 = xs_getc(param_1[1],0x3c)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        68 - iVar2 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        70 - iVar2 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        71 - iVar3 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        72 - iVar4 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        74 - xs_ungetc(iVar4,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        75 - xs_ungetc(iVar3,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        76 - xs_ungetc(iVar2,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        89 - xs_ungetc(iVar2,uVar5)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        94 - iVar2 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        59 - piVar4 = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        59 - piVar4 = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        67 - memset(piVar4,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        124 - pcVar8 = strdup(pcVar8 + 1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        189 - piVar4 = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        189 - piVar4 = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        199 - memset(piVar4,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        221 - piVar4 = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        221 - piVar4 = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        223 - memset(piVar4,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        301 - piVar4 = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        301 - piVar4 = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        311 - memset(piVar4,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        333 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        336 - xs_ungets(uVar7,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        338 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00414d24_00414d24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        71 - iVar9 = snprintf((char *)&local_38,10,"%lx",lVar2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00414d24_00414d24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        71 - iVar9 = snprintf((char *)&local_38,10,"%lx",lVar2);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00414d24_00414d24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        71 - iVar9 = snprintf((char *)&local_38,10,"%lx",lVar2);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_register_signal_0041c0e4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-signal
        Issue description:
    The signal() API should be regarded as deprecated. When possible, sigaction() should be used instead, because it allows to precisely specify the desired behavior in case two signals arrive shortly after each other thus preventing many race conditions.

        25 - signal(param_1,FUN_0041c190)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c410_0041c410.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        12 - while ((bVar2 = 1 < (int)sVar3, sVar3 = sVar3 - 1, bVar2 &&



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041b9b4_0041b9b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-signal
        Issue description:
    The signal() API should be regarded as deprecated. When possible, sigaction() should be used instead, because it allows to precisely specify the desired behavior in case two signals arrive shortly after each other thus preventing many race conditions.

        12 - signal(DAT_004365c8[3],(__sighandler_t)0x0)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041b9b4_0041b9b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-signal
        Issue description:
    The signal() API should be regarded as deprecated. When possible, sigaction() should be used instead, because it allows to precisely specify the desired behavior in case two signals arrive shortly after each other thus preventing many race conditions.

        27 - signal(param_1[3],(__sighandler_t)0x0)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_run_0041bad8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        100 - ((sVar4 = read(DAT_00436594,&local_178,4), -1 < sVar4 &&



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_run_0041bad8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        100 - ((sVar4 = read(DAT_00436594,&local_178,4), -1 < sVar4 &&   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c648_0041c648.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        9 - __ptr = strdup(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c648_0041c648.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        14 - pcVar1 = strdup(pcVar2 + 1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_reatwhite_0041c740.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        12 - (sVar2 = sVar2 - 1, -1 < (int)sVar2 &&



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_reatwhite_0041c740.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        13 - ((((cVar1 = pcVar3[-1], cVar1 == ' ' || (cVar1 == '	')) || (cVar1 == '
    ')) ||



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c7dc_0041c7dc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        19 - snprintf(local_80[0].sa_data,0x6c,"%s",param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c7dc_0041c7dc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        19 - snprintf(local_80[0].sa_data,0x6c,"%s",param_1);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/make_valid_path_0041c53c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-access-stat
        Issue description:
    The software checks the state of a resource before using it, but the  resource's state can change between the check and the use in a way that  invalidates the results of the check. This can cause the software to  perform invalid actions when the resource is in an unexpected state.

        13 - iVar2 = stat(pcVar1,&sStack_a8)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/make_valid_path_0041c53c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        13 - iVar2 = stat(pcVar1,&sStack_a8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/make_valid_path_0041c53c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        25 - iVar2 = mkdir(pcVar1,param_2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c95c_0041c95c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        19 - read(__fd,auStack_28,0xc)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c95c_0041c95c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        19 - read(__fd,auStack_28,0xc);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_init_0041c1d0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        10 - memset(&DAT_00436590,0,0x48)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_init_0041c1d0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        26 - memset(&DAT_00434a10,0,0xc00)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_init_0041c1d0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        27 - memset(&DAT_00435610,0,0xe00)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_init_0041c1d0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        28 - memset(&DAT_00436410,0,0x180)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_init_0041c1d0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        67 - pipe(&DAT_00436594)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041ce00_0041ce00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        27 - sVar3 = read(param_1,(void *)(param_2 + uVar4),param_3 - uVar4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_setext_0041ccc0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        9 - snprintf(acStack_210,0x1ff,"%s %s",param_3,param_4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_setext_0041ccc0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        9 - snprintf(acStack_210,0x1ff,"%s %s",param_3,param_4);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041cf34_0041cf34.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        16 - iVar2 = FUN_0041c8c0(__fd,10,param_2,param_3,sVar1 + 1 & 0xffff)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d008_0041d008.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        16 - iVar2 = FUN_0041c8c0(__fd,1,param_2,param_3,sVar1 + 1 & 0xffff)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_set_0041cd60.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        9 - snprintf(acStack_210,0x1ff,"%s %s",param_3,param_4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_set_0041cd60.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        9 - snprintf(acStack_210,0x1ff,"%s %s",param_3,param_4);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xs_ungets_0041d6a8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        14 - sVar2 = sVar2 - 1



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d0dc_0041d0dc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        28 - sVar2 = read(param_1,__s,0x400)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d0dc_0041d0dc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        28 - sVar2 = read(param_1,__s,0x400);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d0dc_0041d0dc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        28 - sVar2 = read(param_1,__s,0x400);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xs_getc_0041d754.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        26 - uVar3 = fgetc((FILE *)param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d90c_0041d90c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        11 - __s = (undefined4 *)malloc(0x214)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d90c_0041d90c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        11 - __s = (undefined4 *)malloc(0x214);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d90c_0041d90c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        13 - memset(__s,0,0x214)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_system_0041d4b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        13 - vsnprintf(acStack_40c,0x400,param_1,&local_res4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_system_0041d4b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        13 - vsnprintf(acStack_40c,0x400,param_1,&local_res4);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_system_0041d4b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        13 - vsnprintf(acStack_40c,0x400,param_1,&local_res4);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_system_0041d4b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-command-injection
        Issue description:
    The software constructs an OS command using externally-influenced input,  but it does not neutralize or incorrectly neutralizes special elements  that could modify the intended OS command.

        14 - system(acStack_40c)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_system_0041d4b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        14 - system(acStack_40c);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d9ac_0041d9ac.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        8 - __s = (undefined4 *)malloc(0x214)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d9ac_0041d9ac.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        8 - __s = (undefined4 *)malloc(0x214);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d9ac_0041d9ac.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        10 - memset(__s,0,0x214)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d9ac_0041d9ac.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        11 - pFVar1 = fdopen(param_1,param_2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xs_fopen_0041da74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        8 - __stream = fopen(param_1,param_2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xs_fopen_0041da74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        11 - __s = (undefined4 *)malloc(0x214)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xs_fopen_0041da74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        11 - __s = (undefined4 *)malloc(0x214);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xs_fopen_0041da74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        17 - memset(__s,0,0x214)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_strstr_0041df48.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-pointer-subtraction
        Issue description:
    The software subtracts one pointer from another in order to determine size, but this calculation can be incorrect if the pointers do not exist in the same memory chunk.

        15 - return (int)pcVar1 - (int)__haystack



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_strrchr_0041dfac.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-pointer-subtraction
        Issue description:
    The software subtracts one pointer from another in order to determine size, but this calculation can be incorrect if the pointers do not exist in the same memory chunk.

        15 - return (int)pcVar1 - (int)__s



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_strchr_0041e010.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-pointer-subtraction
        Issue description:
    The software subtracts one pointer from another in order to determine size, but this calculation can be incorrect if the pointers do not exist in the same memory chunk.

        15 - return (int)pcVar1 - (int)__s



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_xstream_eatwhite_0041ddc8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        9 - iVar2 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_xstream_eatwhite_0041ddc8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        10 - cVar1 = (char)iVar2



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_xstream_eatwhite_0041ddc8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        15 - xs_ungetc(iVar2,param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        14 - vsnprintf(acStack_41c,0x400,param_3,&local_resc)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        14 - vsnprintf(acStack_41c,0x400,param_3,&local_resc);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        14 - vsnprintf(acStack_41c,0x400,param_3,&local_resc);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-command-injection
        Issue description:
    The software constructs an OS command using externally-influenced input,  but it does not neutralize or incorrectly neutralizes special elements  that could modify the intended OS command.

        15 - __stream = popen(acStack_41c,"r")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        15 - __stream = popen(acStack_41c,"r");   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        22 - iVar1 = fgetc(__stream)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-off-by-one
        Issue description:
    The software calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.

        30 - if (param_1[sVar2 - 1] == '
    ') {



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-off-by-one
        Issue description:
    The software calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.

        31 - param_1[sVar2 - 1] = ''



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_add_string_0041e350.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        22 - strcpy((char *)(*(int *)(param_1 + 0x14) + *(int *)(param_1 + 0x10)),param_2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_add_string_0041e350.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        22 - strcpy((char *)(*(int *)(param_1 + 0x14) + *(int *)(param_1 + 0x10)),param_2);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e4c8_0041e4c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        18 - vsnprintf(acStack_414,0x400,param_2,&local_res8)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e4c8_0041e4c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        18 - vsnprintf(acStack_414,0x400,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e4c8_0041e4c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        18 - vsnprintf(acStack_414,0x400,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041ecbc_0041ecbc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        20 - uVar7 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041ecbc_0041ecbc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        30 - xs_ungetc(uVar7,param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_xstream_read_tokens_0041f200.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        37 - iVar4 = sobj_xstream_read(param_1,piVar5,pcVar8,local_30)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_split_0041f3f0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        20 - sVar3 = strlen(*(char **)(param_1 + 0x14))



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/solist_new_0041ef74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        7 - pvVar1 = malloc(0xc)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/solist_new_0041ef74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        7 - pvVar1 = malloc(0xc);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_new_0041efc0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        7 - pvVar1 = malloc(0x18)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_new_0041efc0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        7 - pvVar1 = malloc(0x18);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_eat_indent_0041f4c0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        22 - (sVar2 = sVar2 - 1, -1 < (int)sVar2 &&



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041f018_0041f018.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        27 - cVar1 = pcVar4[1]



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041f018_0041f018.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        30 - cVar2 = *(char *)(*(int *)(param_1 + 0x14) + uVar11)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_eat_all_white_0041f60c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        25 - (sVar3 = sVar3 - 1, pcVar7 = __s, -1 < (int)sVar3 &&



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_eat_all_white_0041f60c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        26 - ((((cVar1 = pcVar5[-1], cVar1 == ' ' || (cVar1 == '	')) || (cVar1 == '
    ')) ||



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        11 - pvVar1 = malloc(0x21)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        11 - pvVar1 = malloc(0x21);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        11 - pvVar1 = malloc(0x21);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        17 - pvVar1 = realloc(*(void **)(param_1 + 0x14),iVar2 + 0x21)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
        Issue description:
    The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

        17 - pvVar1 = realloc(*(void **)(param_1 + 0x14),iVar2 + 0x21);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        17 - pvVar1 = realloc(*(void **)(param_1 + 0x14),iVar2 + 0x21);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        17 - pvVar1 = realloc(*(void **)(param_1 + 0x14),iVar2 + 0x21);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004023c0_004023c0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-access-stat
        Issue description:
    The software checks the state of a resource before using it, but the  resource's state can change between the check and the use in a way that  invalidates the results of the check. This can cause the software to  perform invalid actions when the resource is in an unexpected state.

        17 - iVar2 = stat(DAT_00433ce0,&sStack_b0)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004023c0_004023c0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        17 - iVar2 = stat(DAT_00433ce0,&sStack_b0);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004023c0_004023c0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        40 - snprintf(local_120[0].sa_data,0x6c,"%s",DAT_00433ce0)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004023c0_004023c0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        40 - snprintf(local_120[0].sa_data,0x6c,"%s",DAT_00433ce0);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004023c0_004023c0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        44 - chmod(local_120[0].sa_data,0x1ff)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00402660_00402660.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        14 - memset(&DAT_00433d70 + param_1 * 0xd,0,0x34)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004029e0_004029e0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
        Issue description:
    The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

        12 - )



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004029e0_004029e0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        12 - );   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00402c70_00402c70.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        6 - lxmldbc_system(&DAT_00421cfc)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00402c70_00402c70.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        9 - memset(&DAT_004343f0 + param_1 * 0x28,0,0x28)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00402e18_00402e18.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        15 - vfprintf(_stdout,param_1,&local_res4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00403e44_00403e44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        15 - vfprintf(_stdout,param_1,&local_res4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404bf4_00404bf4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        15 - vsnprintf(acStack_414,0x400,param_2,&local_res8)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404bf4_00404bf4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        15 - vsnprintf(acStack_414,0x400,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404bf4_00404bf4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        15 - vsnprintf(acStack_414,0x400,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404bf4_00404bf4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-command-injection
        Issue description:
    The software constructs an OS command using externally-influenced input,  but it does not neutralize or incorrectly neutralizes special elements  that could modify the intended OS command.

        16 - __stream = popen(acStack_414,"r")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404bf4_00404bf4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        16 - __stream = popen(acStack_414,"r");   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404bf4_00404bf4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        19 - while (iVar2 = fgetc(__stream), iVar2 != -1) {



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404d30_00404d30.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        5 - memset(&DAT_00434934,0,0x80)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404d94_00404d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        10 - pvVar2 = malloc(0x10)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404d94_00404d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        10 - pvVar2 = malloc(0x10);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404d94_00404d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        14 - pcVar1 = strdup(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404d94_00404d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        20 - pcVar1 = strdup(param_2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404e3c_00404e3c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        31 - pcVar3 = strdup(param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404fb0_00404fb0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        7 - __s = malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404fb0_00404fb0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        7 - __s = malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00404fb0_00404fb0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        9 - memset(__s,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00405030_00405030.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        34 - pcVar2 = strdup(param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00406970_00406970.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        42 - iVar13 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        14 - iVar3 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        33 - iVar4 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        45 - iVar3 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        49 - iVar3 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        62 - xs_ungetc(iVar3,param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        68 - iVar3 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        80 - iVar5 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        94 - iVar5 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        101 - iVar5 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        124 - xs_ungetc(iVar3,param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        125 - iVar3 = sobj_xstream_read(param_1,param_2,"/+-=&|?*%^<>.,(){}[]:;!@#",param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00407458_00407458.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        135 - xs_ungetc(iVar3,param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004078e8_004078e8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        34 - __s = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004078e8_004078e8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        34 - __s = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004078e8_004078e8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        36 - memset(__s,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00408ba4_00408ba4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        14 - __ptr = (int *)malloc(0x10)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00408ba4_00408ba4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        14 - __ptr = (int *)malloc(0x10);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00408e6c_00408e6c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        16 - __s = (int *)malloc(0x20)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00408e6c_00408e6c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        16 - __s = (int *)malloc(0x20);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00408e6c_00408e6c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        24 - memset(__s,0,0x20)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004093c8_004093c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        23 - __s = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004093c8_004093c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        23 - __s = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004093c8_004093c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        32 - memset(__s,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_004093c8_004093c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        34 - pcVar2 = strdup(param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409800_00409800.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        13 - __s = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409800_00409800.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        13 - __s = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409800_00409800.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        16 - memset(__s,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409800_00409800.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        21 - __s_00 = (undefined4 *)malloc(0x20)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409800_00409800.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        21 - __s_00 = (undefined4 *)malloc(0x20);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409800_00409800.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        27 - memset(__s_00,0,0x20)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        59 - piVar4 = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        59 - piVar4 = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        67 - memset(piVar4,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        124 - pcVar8 = strdup(pcVar8 + 1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        189 - piVar4 = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        189 - piVar4 = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        199 - memset(piVar4,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        221 - piVar4 = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        221 - piVar4 = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        223 - memset(piVar4,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        301 - piVar4 = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        301 - piVar4 = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        311 - memset(piVar4,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        333 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        336 - xs_ungets(uVar7,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00409a00_00409a00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        338 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040aa44_0040aa44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        16 - __s = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040aa44_0040aa44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        16 - __s = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040aa44_0040aa44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        24 - memset(__s,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040aa44_0040aa44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        43 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040aa44_0040aa44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        46 - xs_ungets(uVar3,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040aa44_0040aa44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        48 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        20 - iVar2 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        21 - iVar3 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        22 - iVar4 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        25 - xs_ungetc(iVar4,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        28 - xs_ungetc(iVar3,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        31 - xs_ungetc(iVar2,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        38 - iVar2 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        51 - iVar3 = xs_getc(param_1[1],0x3c)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        68 - iVar2 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        70 - iVar2 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        71 - iVar3 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        72 - iVar4 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        74 - xs_ungetc(iVar4,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        75 - xs_ungetc(iVar3,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        76 - xs_ungetc(iVar2,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        89 - xs_ungetc(iVar2,uVar5)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040ad5c_0040ad5c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        94 - iVar2 = xs_getc(param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b3ec_0040b3ec.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        85 - iVar4 = xs_fopen(__ptr,&DAT_00422c14)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b870_0040b870.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        55 - piVar4 = (int *)malloc(0x1c)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b870_0040b870.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        55 - piVar4 = (int *)malloc(0x1c);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b870_0040b870.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        55 - piVar4 = (int *)malloc(0x1c);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b870_0040b870.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        138 - puVar13 = (undefined4 *)malloc(0x20)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b870_0040b870.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        138 - puVar13 = (undefined4 *)malloc(0x20);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040b870_0040b870.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        147 - memset(puVar13,0,0x20)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        25 - __s = (int *)malloc(0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        25 - __s = (int *)malloc(0x24);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        37 - memset(__s,0,0x24)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        59 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        62 - xs_ungets(uVar8,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        64 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        98 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        101 - xs_ungets(uVar8,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        103 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        116 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        119 - xs_ungets(uVar8,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c158_0040c158.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        121 - xs_ungetc(0x22,param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c744_0040c744.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        10 - __ptr = (int *)malloc(0x10)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c744_0040c744.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        10 - __ptr = (int *)malloc(0x10);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c744_0040c744.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        16 - pcVar1 = strdup(param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c9e4_0040c9e4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        58 - sprintf(local_2c,"%lld",(int)lVar16,(int)((ulonglong)lVar16 >> 0x20))



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040c9e4_0040c9e4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        161 - sprintf(local_30,"%d",iVar4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040d858_0040d858.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        90 - strcpy(acStack_a8," !! DIV 0 ERROR !! ")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040d858_0040d858.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        97 - sprintf(acStack_a8,"%lld",(int)lVar12,(int)((ulonglong)lVar12 >> 0x20))



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e650_0040e650.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        64 - iVar3 = snprintf(acStack_ac,0x80,pcVar4,lVar5)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e650_0040e650.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unsafe-ret-snprintf-vsnprintf
        Issue description:
    The snprintf() and vsnprintf() functions return the total length of the string they tried to create. Therefore, this return value can be larger than the size of the destination buffer. If it is used unsafely, e.g. as an index to write to the destination buffer, memory corruption might occur.

        64 - iVar3 = snprintf(acStack_ac,0x80,pcVar4,lVar5);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e650_0040e650.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        64 - iVar3 = snprintf(acStack_ac,0x80,pcVar4,lVar5);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e650_0040e650.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        64 - iVar3 = snprintf(acStack_ac,0x80,pcVar4,lVar5);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e650_0040e650.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        64 - iVar3 = snprintf(acStack_ac,0x80,pcVar4,lVar5);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e9cc_0040e9cc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        16 - local_a0 = tVar2 - (local_5c.uptime - lVar1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040e9cc_0040e9cc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        17 - memset(acStack_9c,0,0x40)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040eb9c_0040eb9c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        55 - strcpy(s__m__d__Y__T_004335a0,__s)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040eb9c_0040eb9c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        55 - strcpy(s__m__d__Y__T_004335a0,__s);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040f7e0_0040f7e0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-access-stat
        Issue description:
    The software checks the state of a resource before using it, but the  resource's state can change between the check and the use in a way that  invalidates the results of the check. This can cause the software to  perform invalid actions when the resource is in an unexpected state.

        27 - iVar4 = stat(pcVar3,&sStack_b8)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0040f7e0_0040f7e0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        27 - iVar4 = stat(pcVar3,&sStack_b8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00411860_00411860.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        50 - __stream = fopen(__filename,"r")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00411860_00411860.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        57 - while (iVar3 = fgetc(__stream), 1 < iVar3 + 1U) {



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00412750_00412750.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        28 - strcpy((char *)(*(int *)(param_2 + 0x14) + *(int *)(param_2 + 0x10)),param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00412750_00412750.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        28 - strcpy((char *)(*(int *)(param_2 + 0x14) + *(int *)(param_2 + 0x10)),param_3);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00414d24_00414d24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        71 - iVar9 = snprintf((char *)&local_38,10,"%lx",lVar2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00414d24_00414d24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        71 - iVar9 = snprintf((char *)&local_38,10,"%lx",lVar2);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00414d24_00414d24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        71 - iVar9 = snprintf((char *)&local_38,10,"%lx",lVar2);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_00419b44_00419b44.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        61 - sprintf(acStack_48,"%lu",uVar4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041b9b4_0041b9b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-signal
        Issue description:
    The signal() API should be regarded as deprecated. When possible, sigaction() should be used instead, because it allows to precisely specify the desired behavior in case two signals arrive shortly after each other thus preventing many race conditions.

        12 - signal(DAT_004365c8[3],(__sighandler_t)0x0)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041b9b4_0041b9b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-signal
        Issue description:
    The signal() API should be regarded as deprecated. When possible, sigaction() should be used instead, because it allows to precisely specify the desired behavior in case two signals arrive shortly after each other thus preventing many race conditions.

        27 - signal(param_1[3],(__sighandler_t)0x0)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c410_0041c410.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        12 - while ((bVar2 = 1 < (int)sVar3, sVar3 = sVar3 - 1, bVar2 &&



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c648_0041c648.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        9 - __ptr = strdup(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c648_0041c648.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        14 - pcVar1 = strdup(pcVar2 + 1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c7dc_0041c7dc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        19 - snprintf(local_80[0].sa_data,0x6c,"%s",param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c7dc_0041c7dc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        19 - snprintf(local_80[0].sa_data,0x6c,"%s",param_1);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c95c_0041c95c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        19 - read(__fd,auStack_28,0xc)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041c95c_0041c95c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        19 - read(__fd,auStack_28,0xc);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041ce00_0041ce00.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        27 - sVar3 = read(param_1,(void *)(param_2 + uVar4),param_3 - uVar4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041cf34_0041cf34.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        16 - iVar2 = FUN_0041c8c0(__fd,10,param_2,param_3,sVar1 + 1 & 0xffff)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d008_0041d008.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        16 - iVar2 = FUN_0041c8c0(__fd,1,param_2,param_3,sVar1 + 1 & 0xffff)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d0dc_0041d0dc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        28 - sVar2 = read(param_1,__s,0x400)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d0dc_0041d0dc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        28 - sVar2 = read(param_1,__s,0x400);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d0dc_0041d0dc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        28 - sVar2 = read(param_1,__s,0x400);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        14 - vsnprintf(acStack_41c,0x400,param_3,&local_resc)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        14 - vsnprintf(acStack_41c,0x400,param_3,&local_resc);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        14 - vsnprintf(acStack_41c,0x400,param_3,&local_resc);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-command-injection
        Issue description:
    The software constructs an OS command using externally-influenced input,  but it does not neutralize or incorrectly neutralizes special elements  that could modify the intended OS command.

        15 - __stream = popen(acStack_41c,"r")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        15 - __stream = popen(acStack_41c,"r");   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        22 - iVar1 = fgetc(__stream)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-off-by-one
        Issue description:
    The software calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.

        30 - if (param_1[sVar2 - 1] == '
    ') {



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d528_0041d528.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-off-by-one
        Issue description:
    The software calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.

        31 - param_1[sVar2 - 1] = ''



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d90c_0041d90c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        11 - __s = (undefined4 *)malloc(0x214)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d90c_0041d90c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        11 - __s = (undefined4 *)malloc(0x214);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d90c_0041d90c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        13 - memset(__s,0,0x214)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d9ac_0041d9ac.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        8 - __s = (undefined4 *)malloc(0x214)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d9ac_0041d9ac.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        8 - __s = (undefined4 *)malloc(0x214);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d9ac_0041d9ac.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        10 - memset(__s,0,0x214)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041d9ac_0041d9ac.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        11 - pFVar1 = fdopen(param_1,param_2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        11 - pvVar1 = malloc(0x21)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        11 - pvVar1 = malloc(0x21);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        11 - pvVar1 = malloc(0x21);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        17 - pvVar1 = realloc(*(void **)(param_1 + 0x14),iVar2 + 0x21)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
        Issue description:
    The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

        17 - pvVar1 = realloc(*(void **)(param_1 + 0x14),iVar2 + 0x21);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        17 - pvVar1 = realloc(*(void **)(param_1 + 0x14),iVar2 + 0x21);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e2c4_0041e2c4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        17 - pvVar1 = realloc(*(void **)(param_1 + 0x14),iVar2 + 0x21);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e4c8_0041e4c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        18 - vsnprintf(acStack_414,0x400,param_2,&local_res8)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e4c8_0041e4c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        18 - vsnprintf(acStack_414,0x400,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041e4c8_0041e4c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        18 - vsnprintf(acStack_414,0x400,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041ecbc_0041ecbc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        20 - uVar7 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041ecbc_0041ecbc.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        30 - xs_ungetc(uVar7,param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041f018_0041f018.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        27 - cVar1 = pcVar4[1]



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/FUN_0041f018_0041f018.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        30 - cVar2 = *(char *)(*(int *)(param_1 + 0x14) + uVar11)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/client_printf_00402d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unsafe-ret-snprintf-vsnprintf
        Issue description:
    The snprintf() and vsnprintf() functions return the total length of the string they tried to create. Therefore, this return value can be larger than the size of the destination buffer. If it is used unsafely, e.g. as an index to write to the destination buffer, memory corruption might occur.

        13 - iVar1 = vsnprintf(acStack_214,0x200,param_2,&local_res8)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/client_printf_00402d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        13 - iVar1 = vsnprintf(acStack_214,0x200,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/client_printf_00402d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        13 - iVar1 = vsnprintf(acStack_214,0x200,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/client_printf_00402d94.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        13 - iVar1 = vsnprintf(acStack_214,0x200,param_2,&local_res8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_reatwhite_0041c740.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        12 - (sVar2 = sVar2 - 1, -1 < (int)sVar2 &&



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_reatwhite_0041c740.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        13 - ((((cVar1 = pcVar3[-1], cVar1 == ' ' || (cVar1 == '	')) || (cVar1 == '
    ')) ||



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_system_0041d4b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
        Issue description:
    The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead  to buffer overflows, denial of service, or data representation problems.

        13 - vsnprintf(acStack_40c,0x400,param_1,&local_res4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_system_0041d4b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        13 - vsnprintf(acStack_40c,0x400,param_1,&local_res4);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_system_0041d4b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        13 - vsnprintf(acStack_40c,0x400,param_1,&local_res4);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_system_0041d4b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-command-injection
        Issue description:
    The software constructs an OS command using externally-influenced input,  but it does not neutralize or incorrectly neutralizes special elements  that could modify the intended OS command.

        14 - system(acStack_40c)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/lxmldbc_system_0041d4b4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        14 - system(acStack_40c);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/make_valid_path_0041c53c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-access-stat
        Issue description:
    The software checks the state of a resource before using it, but the  resource's state can change between the check and the use in a way that  invalidates the results of the check. This can cause the software to  perform invalid actions when the resource is in an unexpected state.

        13 - iVar2 = stat(pcVar1,&sStack_a8)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/make_valid_path_0041c53c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        13 - iVar2 = stat(pcVar1,&sStack_a8);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/make_valid_path_0041c53c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        25 - iVar2 = mkdir(pcVar1,param_2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_init_0041c1d0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        10 - memset(&DAT_00436590,0,0x48)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_init_0041c1d0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        26 - memset(&DAT_00434a10,0,0xc00)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_init_0041c1d0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        27 - memset(&DAT_00435610,0,0xe00)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_init_0041c1d0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        28 - memset(&DAT_00436410,0,0x180)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_init_0041c1d0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        67 - pipe(&DAT_00436594)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_register_signal_0041c0e4.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-signal
        Issue description:
    The signal() API should be regarded as deprecated. When possible, sigaction() should be used instead, because it allows to precisely specify the desired behavior in case two signals arrive shortly after each other thus preventing many race conditions.

        25 - signal(param_1,FUN_0041c190)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_run_0041bad8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        100 - ((sVar4 = read(DAT_00436594,&local_178,4), -1 < sVar4 &&



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sloop_run_0041bad8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        100 - ((sVar4 = read(DAT_00436594,&local_178,4), -1 < sVar4 &&   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_add_string_0041e350.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        22 - strcpy((char *)(*(int *)(param_1 + 0x14) + *(int *)(param_1 + 0x10)),param_2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_add_string_0041e350.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        22 - strcpy((char *)(*(int *)(param_1 + 0x14) + *(int *)(param_1 + 0x10)),param_2);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_eat_all_white_0041f60c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        25 - (sVar3 = sVar3 - 1, pcVar7 = __s, -1 < (int)sVar3 &&



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_eat_all_white_0041f60c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        26 - ((((cVar1 = pcVar5[-1], cVar1 == ' ' || (cVar1 == '	')) || (cVar1 == '
    ')) ||



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_eat_indent_0041f4c0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        22 - (sVar2 = sVar2 - 1, -1 < (int)sVar2 &&



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_new_0041efc0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        7 - pvVar1 = malloc(0x18)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_new_0041efc0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        7 - pvVar1 = malloc(0x18);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_split_0041f3f0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        20 - sVar3 = strlen(*(char **)(param_1 + 0x14))



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_strchr_0041e010.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-pointer-subtraction
        Issue description:
    The software subtracts one pointer from another in order to determine size, but this calculation can be incorrect if the pointers do not exist in the same memory chunk.

        15 - return (int)pcVar1 - (int)__s



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_strrchr_0041dfac.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-pointer-subtraction
        Issue description:
    The software subtracts one pointer from another in order to determine size, but this calculation can be incorrect if the pointers do not exist in the same memory chunk.

        15 - return (int)pcVar1 - (int)__s



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_strstr_0041df48.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-pointer-subtraction
        Issue description:
    The software subtracts one pointer from another in order to determine size, but this calculation can be incorrect if the pointers do not exist in the same memory chunk.

        15 - return (int)pcVar1 - (int)__haystack



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_xstream_eatwhite_0041ddc8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        9 - iVar2 = xs_getc(param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_xstream_eatwhite_0041ddc8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-truncation
        Issue description:
    Truncation errors occur when a primitive is cast to a primitive of a  smaller size and data is lost in the conversion. The value cannot be  trusted and the application will be in an undefined state.

        10 - cVar1 = (char)iVar2



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_xstream_eatwhite_0041ddc8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        15 - xs_ungetc(iVar2,param_1)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/sobj_xstream_read_tokens_0041f200.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        37 - iVar4 = sobj_xstream_read(param_1,piVar5,pcVar8,local_30)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/solist_new_0041ef74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        7 - pvVar1 = malloc(0xc)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/solist_new_0041ef74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        7 - pvVar1 = malloc(0xc);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_ephp_0040e12c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        54 - memset(&local_88,0,0x50)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_ephp_0040e12c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        75 - local_84 = xs_fopen(param_2,&DAT_00422c14)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_ephp_load_0040d41c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        20 - iVar1 = xs_fopen(param_2,&DAT_00422c14)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_get_value_0040592c.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        69 - sprintf(&DAT_00434924,"%d",iVar3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        15 - iVar1 = getopt(param_1,param_2,"hvts:p:n:")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-sprintf-vsprintf
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        24 - sprintf(&DAT_00433ce4,"%s_%s.pid",DAT_00433ce0,o_rootname)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        24 - sprintf(&DAT_00433ce4,"%s_%s.pid",DAT_00433ce0,o_rootname);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        31 - __stream = fopen(DAT_00433cd8,"w")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        48 - memset(puVar4,0,0x34)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        54 - memset(&DAT_004343f0,0,0x500)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        75 - memset(__s,0,0x34)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        83 - unlink(DAT_00433ce0)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        84 - unlink(DAT_00433cd8)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_main_00402e74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        95 - memset(&DAT_004343f0,0,0x500)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_set_anchor_004051c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        7 - puVar1 = (undefined4 *)malloc(0xc)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_set_anchor_004051c8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        7 - puVar1 = (undefined4 *)malloc(0xc);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_set_value_00405e24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        20 - pcVar3 = strdup(param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_set_value_00405e24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        25 - lxmldbc_system("%s %s",iVar1,param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_set_value_00405e24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        32 - pcVar3 = strdup(*(char **)(iVar1 + 0x1c))



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldb_set_value_00405e24.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        35 - pcVar3 = strdup(param_3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        18 - iVar1 = getopt(param_1,param_2,"hHvg:s:a:d:D:l:L:r:R:w:W:S:P:V:x:t:k:X:")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        51 - sVar3 = sVar3 + 2



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        54 - sVar3 = sVar3 + sVar4 + 1



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
        Issue description:
    The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

        56 - DAT_0043490c = (char *)realloc(pcVar6,sVar3)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        56 - DAT_0043490c = (char *)realloc(pcVar6,sVar3);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        58 - strcat(DAT_0043490c,"
    ")



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        59 - strcat(DAT_0043490c,_optarg)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        59 - strcat(DAT_0043490c,_optarg);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        135 - pcVar6 = strdup((char *)DAT_004348f0)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unchecked-ret-malloc
        Issue description:
    The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

        139 - pcVar7 = strdup((char *)DAT_004348f4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
        Issue description:
    The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

        182 - pcVar6 = (char *)malloc(sVar3 + sVar4 + 2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        182 - pcVar6 = (char *)malloc(sVar3 + sVar4 + 2);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        184 - strcpy(pcVar6,DAT_00434910)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        184 - strcpy(pcVar6,DAT_00434910);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
        Issue description:
    A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

        185 - strcat(pcVar6,DAT_0043490c)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_main_00403f50.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        185 - strcat(pcVar6,DAT_0043490c);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_set_0041cd60.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        9 - snprintf(acStack_210,0x1ff,"%s %s",param_3,param_4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_set_0041cd60.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        9 - snprintf(acStack_210,0x1ff,"%s %s",param_3,param_4);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_setext_0041ccc0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        9 - snprintf(acStack_210,0x1ff,"%s %s",param_3,param_4)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xmldbc_setext_0041ccc0.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        9 - snprintf(acStack_210,0x1ff,"%s %s",param_3,param_4);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xs_fopen_0041da74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        8 - __stream = fopen(param_1,param_2)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xs_fopen_0041da74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        11 - __s = (undefined4 *)malloc(0x214)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xs_fopen_0041da74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        11 - __s = (undefined4 *)malloc(0x214);   //possible issue identified - semgrep



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xs_fopen_0041da74.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        17 - memset(__s,0,0x214)



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xs_getc_0041d754.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
        Issue description:
    Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.

        26 - uVar3 = fgetc((FILE *)param_1[1])



[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_xmldb/xs_ungets_0041d6a8.c


        Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
        Issue description:
    The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be  the precursor to buffer underwrite conditions. Buffer underwrites  occur frequently when large unsigned values are cast to signed values,  and then used as indexes into a buffer or for pointer arithmetic.

        14 - sVar2 = sVar2 - 1