You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rb-readline library has a pretty serious bug though that causes an MSVC instrumented build (I find it easiest to find bugs this way) to blow up. Its uses the cdecl calling convention to call the windows api. That causes the stack to get corrupted. Instead, it should use the stdcall calling convention.
rb-readline library has a pretty serious bug though that causes an MSVC instrumented build (I find it easiest to find bugs this way) to blow up. Its uses the cdecl calling convention to call the windows api. That causes the stack to get corrupted. Instead, it should use the stdcall calling convention.
diff --git a/lib/rbreadline.rb b/lib/rbreadline.rb
index 43894aa..b215aff 100644
--- a/lib/rbreadline.rb
+++ b/lib/rbreadline.rb
@@ -4288,7 +4288,7 @@ module RbReadline
def initialize(dllname, func, import, export = "0")
@proto = [import].join.tr("VPpNnLlIi", "0SSI").sub(/^(.)0*$/, '\1')
handle = DLL[dllname] ||= DL.dlopen(dllname)
-- 1.7.0.4.360.g11766c.dirty
The text was updated successfully, but these errors were encountered: