Changeset 172481 in git


Ignore:
Timestamp:
Jul 17, 2022, 12:57:45 PM (21 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
b270e373653dc77b9432cdf0f42316bc9219157f
Parents:
b3fc09200960b1c430b13caf5383a14e9918d85732d544c08aef0445d878dff8b37cf0c13dd8c8bf
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2022-07-17 12:57:45+02:00
git-committer:
GitHub <noreply@github.com>2022-07-17 12:57:45+02:00
Message:
Merge pull request #1148 from jengelh/walias

src: resolve strict-aliasing violation in ndbm.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/links/ndbm.cc

    rb3fc092 r172481  
    281281#endif
    282282    }
    283     if (((short *)db->dbm_pagbuf)[0] != 0)
     283    short tmp;
     284    memcpy(&tmp, db->dbm_pagbuf, sizeof(tmp));
     285    if (tmp != 0)
    284286    {
    285287      item = makdatum(db->dbm_pagbuf, db->dbm_keyptr);
Note: See TracChangeset for help on using the changeset viewer.