mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
rb: Validate struct _after_ read. [THRIFT-206]
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@714069 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
159383f789
commit
713623bee6
@ -82,7 +82,6 @@ module Thrift
|
||||
end
|
||||
|
||||
def read(iprot)
|
||||
validate
|
||||
# TODO(kevinclark): Make sure transport is C readable
|
||||
if iprot.respond_to?(:decode_binary)
|
||||
iprot.decode_binary(self, iprot.trans)
|
||||
@ -96,6 +95,7 @@ module Thrift
|
||||
end
|
||||
iprot.read_struct_end
|
||||
end
|
||||
validate
|
||||
end
|
||||
|
||||
def write(oprot)
|
||||
|
Loading…
Reference in New Issue
Block a user