[asterisk-bugs] [JIRA] Created: (ASTERISK-20249) alignment of MD5Context in buffer not enforced (theoretical issue only)

Rusty Newton (JIRA) noreply at issues.asterisk.org
Thu Aug 16 18:39:07 CDT 2012


alignment of MD5Context in buffer not enforced (theoretical issue only)
-----------------------------------------------------------------------

                 Key: ASTERISK-20249
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20249
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: General
    Affects Versions: 1.8.15.0
            Reporter: Walter Doekes
            Severity: Trivial


Hi,

the struct MD5Context character buffer is cast to an int32_t* without making sure that said buffer is aligned.

Since the buffer follows two uint32_t's, the chance of 'in' being (32 bits) unaligned is nil in practice. But adding code to ensure that 'in' stays aligned costs nothing and removes all doubts about the casts being safe.

Regards,
Walter

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list