ian 1a16baceaa Avoid unaligned memory accesses when encoding netbios names in libsmb.
The current code for encoding a netbios name converts each byte to a 16-bit
value and stores the result by casting a char* to u_short*, resulting in
alignment faults on strict-alignment platforms.

This change reimplements the encoding routine using only byte accesses to
memory. There is no particular reason to work with 16-bit values just
because the encoding process creates two bytes of output for every byte of
input. Working a byte at at time also avoids endian problems for big-endian
platforms.

PR:		180438
PR:		189415
Differential Revision:	https://reviews.freebsd.org/D4622
2015-12-21 17:17:00 +00:00
..
2015-08-09 05:14:25 +00:00
2015-12-08 01:29:07 +00:00
2015-10-11 17:45:20 +00:00
2015-09-23 05:39:20 +00:00
2015-10-12 02:05:25 +00:00
2015-08-20 21:49:59 +00:00
2015-07-28 18:41:28 +00:00
2015-11-05 07:43:15 +00:00
2015-09-27 07:04:16 +00:00
2015-10-22 19:42:57 +00:00
2015-07-08 23:57:58 +00:00
2015-10-08 11:42:15 +00:00
2015-11-12 03:25:04 +00:00
2015-12-14 13:01:51 +00:00
2015-11-21 09:09:25 +00:00