Navigation


Changeset 1414:f6f12521c2aa in freeDiameter for extensions


Ignore:
Timestamp:
Feb 18, 2020, 5:01:49 PM (4 years ago)
Author:
Luke Mewburn <luke@mewburn.net>
Branch:
default
Phase:
public
committer:
Luke Mewburn <luke@mewburn.net> 1582020002 -39600
Message:

Fix strict-aliasing warnings with gcc 4.8

Rewrite IN6_ADDR_V4MAP() to not rely upon aliasing rules.
Add test for IN6_ADDR_V4MAP() and IN6_ADDR_V4UNMAP().

Rewrite MD5Final() to not rely upon aliasing rules. (Not tested)

Location:
extensions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/md5.c

    r1291 r1414  
    287287
    288288    /* Append length in bits and transform */
    289     ((u32 *) ctx->in)[14] = ctx->bits[0];
    290     ((u32 *) ctx->in)[15] = ctx->bits[1];
     289    os_memcpy(&ctx->in[56], &ctx->bits[0], 8);
    291290
    292291    MD5Transform(ctx->buf, (u32 *) ctx->in);
  • extensions/app_sip/md5.c

    r1291 r1414  
    310310
    311311    /* Append length in bits and transform */
    312     ((u32 *) ctx->in)[14] = ctx->bits[0];
    313     ((u32 *) ctx->in)[15] = ctx->bits[1];
     312    os_memcpy(&ctx->in[56], &ctx->bits[0], 8);
    314313
    315314    MD5Transform(ctx->buf, (u32 *) ctx->in);
Note: See TracChangeset for help on using the changeset viewer.