Use file mapping to marshall message data

GlobalAlloc() is no longer supported for this purpose.
Also split out leash message marshalling code into a separate function
acquire_tkt_send_message_leash and improve string copy safety.

Signed-off-by: Kevin Wasserman <kevin.wasser...@painless-security.com>

(cherry picked from commit e2ad5d74adbf3edc8a7026cad8283c0077377e81)

https://github.com/krb5/krb5/commit/2a6c16566111f0e830ba4661c0614beb0f5476da
Author: Kevin Wasserman <kevin.wasser...@painless-security.com>
Committer: Tom Yu <t...@mit.edu>
Commit: 2a6c16566111f0e830ba4661c0614beb0f5476da
Branch: krb5-1.10
 src/windows/leash/LeashView.cpp |   15 +++-
 src/windows/leashdll/lshfunc.c  |  160 +++++++++++++++++++++++++++-----------
 2 files changed, 126 insertions(+), 49 deletions(-)
_______________________________________________
kfwdev mailing list
kfwdev@mit.edu
http://mailman.mit.edu/mailman/listinfo/kfwdev

Reply via email to