[OpenSIPS-Devel] [OpenSIPS/opensips] 7dc20e: Fix wrong memcpy()

Bogdan Andrei IANCU noreply at github.com
Thu Jan 14 13:29:15 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 7dc20e471bf89eef0e4586adae26744d38c38c01
      https://github.com/OpenSIPS/opensips/commit/7dc20e471bf89eef0e4586adae26744d38c38c01
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2021-01-14 (Thu, 14 Jan 2021)

  Changed paths:
    M xlog.c

  Log Message:
  -----------
  Fix wrong memcpy()

To get the memcpy working correctly, we should have:
	memcpy(&xlp, &lev, sizeof(xl_level_p));
NOTE: xl_level_p == xl_level_t *
The above change was introduced in fff57ac955

But I prefer to try to use an extra cast (via 'void*') here (following the initial model), let's see if this holds on ARM





More information about the Devel mailing list