Subject: | Insecure implementation of the croak_sv |
Current implementation in perlblead cpan/Socket/Socket.xs file is:
#ifndef croak_sv
# define croak_sv(sv) croak(SvPVx_nolen(sv))
#endif
But function croak is variadic which expects as a first parameter printf-style format. Passing arbitrary and string from the caller as a printf format leads to the security problem CWE-134: Use of Externally-Controlled Format String.
But croak_sv is not used at all, so rather remove this insecure implementation.