Pull in error handling from fast_xor
SamSaffron opened this issue · 2 comments
SamSaffron commented
see: https://github.com/CodeMonkeySteve/fast_xor/blob/master/ext/xor/xor.c
irb(main):004:0> class A; end
=> nil
irb(main):005:0> Xorcist.xor(A,A)
=> #<Class:0x00007f1d3fed92f8>
This is a security issue cause you could causing segfaults here.
fny commented
The type checks have been added (see https://github.com/fny/xorcist/blob/master/ext/xorcist/xorcist.c#L15-L23), and a new gem will be cut shortly.
SamSaffron commented
wow, awesome, thanks
…On Tue, Feb 27, 2018 at 11:07 AM, Faraz Yashar ***@***.***> wrote:
The type checks have been added (see https://github.com/fny/
xorcist/blob/master/ext/xorcist/xorcist.c#L15-L23), and a new gem will be
cut shortly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAUXX9ZODPim9bIu1arrbIfnilIXYAyks5tY0c8gaJpZM4SSgvN>
.