Text   |  XML   |  ReML   |   Visible Warnings:

Buffer Overrun  at daintree-sna.c:205

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

daintree_sna_seek_read

(/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/daintree-sna.c)expand/collapse
Show more  
 186  daintree_sna_seek_read(wtap *wth, gint64 seek_off, union wtap_pseudo_header
 187          *pseudo_header _U_, guchar *pd, int len, int *err,
 188          gchar **err_info _U_)
 189  {
 190          guint pkt_len;
 191   
 192[+]         if(file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1)
 193                  return FALSE;
 194   
 195          /* It appears only file header lines start with '#', but 
 196           * if we find any others, we toss them */
 197          do {
 198                  if (file_gets(seekLine, DAINTREE_MAX_LINE_SIZE, wth->random_fh) == NULL) {
 199                          *err = file_error(wth->random_fh);
 200                          return FALSE; /* all done */
 201                  }
 202          } while (seekLine[0] == COMMENT_LINE);
 203   
 204          /* ignore all but packet data, since the sequential read pass stored everything else */
 205          if (sscanf(seekLine, "%*s %*u.%*u %*u %s", seekData) != 1) {
Show more  




Change Warning 991.30040 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: