My code runs fine with test A or test B commented out, but both are run the program crashes

Advertisements #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <math.h> void ip2array(const char* ip_str, uint8_t* ip_int) { int i = 0; char* p = (char*)ip_str; while (*p != ‘\0’) { ip_int[i++] = (uint8_t)strtoul(p, &p, 10); p++; } } uint32_t ips_between (const char* start, const char* end) { uint8_t ip[2][4]; ip2array(start, ip[0]); ip2array(end, ip[1]); uint32_t total =… Read More My code runs fine with test A or test B commented out, but both are run the program crashes