- Fixed incorrect init_connections() call in test_etcp_simple_traffic.c (was calling server_instance instead of client_instance) - Fixed double free in timeout_heap_pop() when handling deleted elements - Enhanced NULL pointer safety in uasync_print_resources() by removing complex heap manipulation - Added debug logging to timeout_heap_pop() for better error tracking Test results: test_etcp_simple_traffic now passes without double free errors
19 lines
479 B
C
Executable File
19 lines
479 B
C
Executable File
#ifndef CRC32_H
|
|
#define CRC32_H
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
// Initialize CRC32 table (called automatically on first use)
|
|
void crc32_init(void);
|
|
|
|
// Calculate CRC32 checksum
|
|
uint32_t crc32_calc(const uint8_t *data, size_t len);
|
|
|
|
// Calculate CRC32 with initial value
|
|
uint32_t crc32_calc_ex(const uint8_t *data, size_t len, uint32_t initial_crc);
|
|
|
|
// Update CRC32 incrementally
|
|
uint32_t crc32_update(uint32_t crc, const uint8_t *data, size_t len);
|
|
|
|
#endif // CRC32_H
|