8238 xdr_callmsg() should clear residual bytes

Review Request #519 - Created May 16, 2017 and updated

Information
Marcel Telka
illumos-gate
master
8238
8144dc5...
Reviewers
general
This fixes both kernel and libnsl xdr_callmsg() implementations to properly
clear residual bytes during the encoding.
I ran the test attached to the bug report:

$ ./test 
11223344
00000000
00000002
00000005
00000006
00000007
00000008
00000005
66666666
66eeeeee
00000009
00000005
77777777
77eeeeee
$

$ LD_PRELOAD=$CODEMGR_WS/proto/root_i386/usr/lib/libnsl.so.1 ./test
11223344
00000000
00000002
00000005
00000006
00000007
00000008
00000005
66666666
66000000
00000009
00000005
77777777
77000000
$

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Marcel Telka
Toomas Soome
Marcel Telka
Review request changed

Change Summary:

Removed mid statement assignments.

Commit:

-a3abb4a179adab6a6733a8342e94bcec5d304e8d
+8144dc5f578d2f4b3b45b2eee1c0dbc817f01b56

Diff:

Revision 3 (+36 -26)

Show changes

Toomas Soome
Ship It!
Yuri Pankov
Ship It!
Loading...