8238 xdr_callmsg() should clear residual bytes

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

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
Toomas Soome
Yuri Pankov
Marcel Telka
Review request changed

Status: Closed (submitted)

Change Summary:

commit 45681b8b0e59cad83c1547d78e25d4b7f218d635
Author:     Marcel Telka <marcel@telka.sk>
AuthorDate: Sat May 20 07:22:06 2017 +0200
Commit:     Robert Mustacchi <rm@joyent.com>
CommitDate: Mon May 29 16:28:55 2017 +0000

    8238 xdr_callmsg() should clear residual bytes
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Approved by: Robert Mustacchi <rm@joyent.com>

:100644 100644 20dcf02... 3a0e885... M	usr/src/lib/libnsl/rpc/rpc_callmsg.c
:100644 100644 aab72d1... 0094de6... M	usr/src/uts/common/rpc/rpc_calmsg.c
Loading...