Text   |  XML   |  ReML   |   Visible Warnings:

Cast Alters Value  at packet-isakmp.c:451

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

scan_pluto_log

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-isakmp.c)expand/collapse
Show more  
 423  scan_pluto_log(void) {
 424  #define MAX_PLUTO_LINE 500
 425    decrypt_data_t *decr;
 426    gchar    line[MAX_PLUTO_LINE];
 427    guint8   i_cookie[COOKIE_SIZE], *ic_key;
 428    gboolean got_cookie = FALSE;
 429    guchar   secret[MAX_KEY_SIZE];
 430    guint    secret_len = 0;
 431    gchar   *icookie_pfx = "| ICOOKIE: ";
 432    gchar   *enc_key_pfx = "| enc key: ";
 433    gchar   *pos, *endpos;
 434    gint     icpfx_len = strlen(icookie_pfx);
 435    gint     ec_len = strlen(enc_key_pfx);
 436    gint     i;
 437    address  null_addr;
 438    unsigned long hexval;
 439   
 440    SET_ADDRESS(&null_addr, AT_NONE, 0, NULL);
 441   
 442    if (logf) {
 443      while (fgets(line, MAX_PLUTO_LINE, logf)) {
 444        if (strncmp(line, icookie_pfx, icpfx_len) == 0) {
 445          secret_len = 0;
 446          pos = line + icpfx_len;
 447          for (i = 0; i < COOKIE_SIZE; i++) {
 448            hexval = strtoul(pos, &endpos, 16);
 449            if (endpos == pos)
 450              break;
 451            i_cookie[i] = (guint8) hexval;
 452            pos = endpos;
Show more  




Change Warning 1195.29789 : Cast Alters Value

Priority:
State:
Finding:
Owner:
Note: