Show
Ignore:
Timestamp:
03/17/09 21:10:22 (10 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1237324222 +0000
git-parent:

[f99cf462c3bf905a727087a97e5c305a52256d5e]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1237324222 +0000
Message:

various changes to avoid dereferencing type-punned pointers and breaking strict-aliasing rules, refs #34

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_filters.c

    r057e0c6 r6210da7  
    157157   * a filterset other than check->filterset.. You never know. 
    158158   */ 
    159   filterset_t *fs; 
     159  void *vfs; 
    160160  if(!filtersets || !filterset) return noit_true; 
    161161 
    162   if(noit_hash_retrieve(filtersets, filterset, strlen(filterset), 
    163                         (void **)&fs)) { 
     162  if(noit_hash_retrieve(filtersets, filterset, strlen(filterset), &vfs)) { 
     163    filterset_t *fs = (filterset_t *)vfs; 
    164164    filterrule_t *r; 
    165165#define MATCHES(rname, value) noit_apply_filterrule(r->rname, r->rname##_e, value)