zeroc-ice 3.7.11 → 3.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. checksums.yaml +4 -4
  2. data/dist/IceRuby/Communicator.cpp +11 -2
  3. data/dist/IceRuby/Properties.cpp +2 -2
  4. data/dist/IceRuby/Types.cpp +3 -3
  5. data/dist/ice/cpp/include/Ice/InputStream.h +7 -4
  6. data/dist/ice/cpp/include/IceDiscovery/IceDiscovery.h +2 -2
  7. data/dist/ice/cpp/include/IceLocatorDiscovery/IceLocatorDiscovery.h +2 -2
  8. data/dist/ice/cpp/include/IceUtil/Config.h +2 -2
  9. data/dist/ice/cpp/include/IceUtil/ResourceConfig.h +2 -2
  10. data/dist/ice/cpp/include/generated/Glacier2/Metrics.h +2 -2
  11. data/dist/ice/cpp/include/generated/Glacier2/PermissionsVerifier.h +2 -2
  12. data/dist/ice/cpp/include/generated/Glacier2/PermissionsVerifierF.h +2 -2
  13. data/dist/ice/cpp/include/generated/Glacier2/Router.h +2 -2
  14. data/dist/ice/cpp/include/generated/Glacier2/RouterF.h +2 -2
  15. data/dist/ice/cpp/include/generated/Glacier2/SSLInfo.h +2 -2
  16. data/dist/ice/cpp/include/generated/Glacier2/Session.h +2 -2
  17. data/dist/ice/cpp/include/generated/Ice/BuiltinSequences.h +2 -2
  18. data/dist/ice/cpp/include/generated/Ice/Communicator.h +2 -2
  19. data/dist/ice/cpp/include/generated/Ice/CommunicatorF.h +2 -2
  20. data/dist/ice/cpp/include/generated/Ice/Connection.h +2 -2
  21. data/dist/ice/cpp/include/generated/Ice/ConnectionF.h +2 -2
  22. data/dist/ice/cpp/include/generated/Ice/Current.h +2 -2
  23. data/dist/ice/cpp/include/generated/Ice/Endpoint.h +2 -2
  24. data/dist/ice/cpp/include/generated/Ice/EndpointF.h +2 -2
  25. data/dist/ice/cpp/include/generated/Ice/EndpointTypes.h +2 -2
  26. data/dist/ice/cpp/include/generated/Ice/FacetMap.h +2 -2
  27. data/dist/ice/cpp/include/generated/Ice/Identity.h +2 -2
  28. data/dist/ice/cpp/include/generated/Ice/ImplicitContext.h +2 -2
  29. data/dist/ice/cpp/include/generated/Ice/ImplicitContextF.h +2 -2
  30. data/dist/ice/cpp/include/generated/Ice/Instrumentation.h +2 -2
  31. data/dist/ice/cpp/include/generated/Ice/InstrumentationF.h +2 -2
  32. data/dist/ice/cpp/include/generated/Ice/LocalException.h +2 -2
  33. data/dist/ice/cpp/include/generated/Ice/Locator.h +2 -2
  34. data/dist/ice/cpp/include/generated/Ice/LocatorF.h +2 -2
  35. data/dist/ice/cpp/include/generated/Ice/Logger.h +2 -2
  36. data/dist/ice/cpp/include/generated/Ice/LoggerF.h +2 -2
  37. data/dist/ice/cpp/include/generated/Ice/Metrics.h +2 -2
  38. data/dist/ice/cpp/include/generated/Ice/ObjectAdapter.h +2 -2
  39. data/dist/ice/cpp/include/generated/Ice/ObjectAdapterF.h +2 -2
  40. data/dist/ice/cpp/include/generated/Ice/ObjectFactory.h +2 -2
  41. data/dist/ice/cpp/include/generated/Ice/Plugin.h +2 -2
  42. data/dist/ice/cpp/include/generated/Ice/PluginF.h +2 -2
  43. data/dist/ice/cpp/include/generated/Ice/Process.h +2 -2
  44. data/dist/ice/cpp/include/generated/Ice/ProcessF.h +2 -2
  45. data/dist/ice/cpp/include/generated/Ice/Properties.h +2 -2
  46. data/dist/ice/cpp/include/generated/Ice/PropertiesAdmin.h +2 -2
  47. data/dist/ice/cpp/include/generated/Ice/PropertiesF.h +2 -2
  48. data/dist/ice/cpp/include/generated/Ice/RemoteLogger.h +2 -2
  49. data/dist/ice/cpp/include/generated/Ice/Router.h +2 -2
  50. data/dist/ice/cpp/include/generated/Ice/RouterF.h +2 -2
  51. data/dist/ice/cpp/include/generated/Ice/ServantLocator.h +2 -2
  52. data/dist/ice/cpp/include/generated/Ice/ServantLocatorF.h +2 -2
  53. data/dist/ice/cpp/include/generated/Ice/SliceChecksumDict.h +2 -2
  54. data/dist/ice/cpp/include/generated/Ice/ValueFactory.h +2 -2
  55. data/dist/ice/cpp/include/generated/Ice/Version.h +2 -2
  56. data/dist/ice/cpp/include/generated/IceBox/IceBox.h +2 -2
  57. data/dist/ice/cpp/include/generated/IceGrid/Admin.h +2 -2
  58. data/dist/ice/cpp/include/generated/IceGrid/Descriptor.h +2 -2
  59. data/dist/ice/cpp/include/generated/IceGrid/Exception.h +2 -2
  60. data/dist/ice/cpp/include/generated/IceGrid/FileParser.h +2 -2
  61. data/dist/ice/cpp/include/generated/IceGrid/PluginFacade.h +2 -2
  62. data/dist/ice/cpp/include/generated/IceGrid/Registry.h +2 -2
  63. data/dist/ice/cpp/include/generated/IceGrid/Session.h +2 -2
  64. data/dist/ice/cpp/include/generated/IceGrid/UserAccountMapper.h +2 -2
  65. data/dist/ice/cpp/include/generated/IcePatch2/FileInfo.h +2 -2
  66. data/dist/ice/cpp/include/generated/IcePatch2/FileServer.h +2 -2
  67. data/dist/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +2 -2
  68. data/dist/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +2 -2
  69. data/dist/ice/cpp/include/generated/IceSSL/EndpointInfo.h +2 -2
  70. data/dist/ice/cpp/include/generated/IceStorm/IceStorm.h +2 -2
  71. data/dist/ice/cpp/include/generated/IceStorm/Metrics.h +2 -2
  72. data/dist/ice/cpp/src/Ice/BatchRequestQueue.cpp +31 -12
  73. data/dist/ice/cpp/src/Ice/BatchRequestQueue.h +7 -0
  74. data/dist/ice/cpp/src/Ice/CommunicatorI.cpp +10 -0
  75. data/dist/ice/cpp/src/Ice/ConnectionI.cpp +45 -0
  76. data/dist/ice/cpp/src/Ice/IPEndpointI.cpp +6 -0
  77. data/dist/ice/cpp/src/Ice/InputStream.cpp +25 -8
  78. data/dist/ice/cpp/src/Ice/Network.cpp +37 -24
  79. data/dist/ice/cpp/src/Ice/NetworkProxy.cpp +15 -4
  80. data/dist/ice/cpp/src/Ice/ObjectAdapterI.cpp +1 -0
  81. data/dist/ice/cpp/src/Ice/Reference.cpp +6 -0
  82. data/dist/ice/cpp/src/Ice/ReferenceFactory.cpp +3 -1
  83. data/dist/ice/cpp/src/Ice/Selector.cpp +13 -5
  84. data/dist/ice/cpp/src/Ice/Timer.cpp +8 -2
  85. data/dist/ice/cpp/src/Ice/UdpTransceiver.cpp +52 -34
  86. data/dist/ice/cpp/src/Ice/WSTransceiver.cpp +79 -13
  87. data/dist/ice/cpp/src/Ice/generated/BuiltinSequences.cpp +2 -2
  88. data/dist/ice/cpp/src/Ice/generated/Communicator.cpp +2 -2
  89. data/dist/ice/cpp/src/Ice/generated/CommunicatorF.cpp +2 -2
  90. data/dist/ice/cpp/src/Ice/generated/Connection.cpp +2 -2
  91. data/dist/ice/cpp/src/Ice/generated/ConnectionF.cpp +2 -2
  92. data/dist/ice/cpp/src/Ice/generated/Current.cpp +2 -2
  93. data/dist/ice/cpp/src/Ice/generated/Endpoint.cpp +2 -2
  94. data/dist/ice/cpp/src/Ice/generated/EndpointF.cpp +2 -2
  95. data/dist/ice/cpp/src/Ice/generated/EndpointTypes.cpp +2 -2
  96. data/dist/ice/cpp/src/Ice/generated/FacetMap.cpp +2 -2
  97. data/dist/ice/cpp/src/Ice/generated/Identity.cpp +2 -2
  98. data/dist/ice/cpp/src/Ice/generated/ImplicitContext.cpp +2 -2
  99. data/dist/ice/cpp/src/Ice/generated/ImplicitContextF.cpp +2 -2
  100. data/dist/ice/cpp/src/Ice/generated/Instrumentation.cpp +2 -2
  101. data/dist/ice/cpp/src/Ice/generated/InstrumentationF.cpp +2 -2
  102. data/dist/ice/cpp/src/Ice/generated/LocalException.cpp +2 -2
  103. data/dist/ice/cpp/src/Ice/generated/Locator.cpp +2 -2
  104. data/dist/ice/cpp/src/Ice/generated/LocatorF.cpp +2 -2
  105. data/dist/ice/cpp/src/Ice/generated/Logger.cpp +2 -2
  106. data/dist/ice/cpp/src/Ice/generated/LoggerF.cpp +2 -2
  107. data/dist/ice/cpp/src/Ice/generated/Metrics.cpp +2 -2
  108. data/dist/ice/cpp/src/Ice/generated/ObjectAdapter.cpp +2 -2
  109. data/dist/ice/cpp/src/Ice/generated/ObjectAdapterF.cpp +2 -2
  110. data/dist/ice/cpp/src/Ice/generated/ObjectFactory.cpp +2 -2
  111. data/dist/ice/cpp/src/Ice/generated/Plugin.cpp +2 -2
  112. data/dist/ice/cpp/src/Ice/generated/PluginF.cpp +2 -2
  113. data/dist/ice/cpp/src/Ice/generated/Process.cpp +2 -2
  114. data/dist/ice/cpp/src/Ice/generated/ProcessF.cpp +2 -2
  115. data/dist/ice/cpp/src/Ice/generated/Properties.cpp +2 -2
  116. data/dist/ice/cpp/src/Ice/generated/PropertiesAdmin.cpp +2 -2
  117. data/dist/ice/cpp/src/Ice/generated/PropertiesF.cpp +2 -2
  118. data/dist/ice/cpp/src/Ice/generated/RemoteLogger.cpp +2 -2
  119. data/dist/ice/cpp/src/Ice/generated/Router.cpp +2 -2
  120. data/dist/ice/cpp/src/Ice/generated/RouterF.cpp +2 -2
  121. data/dist/ice/cpp/src/Ice/generated/ServantLocator.cpp +2 -2
  122. data/dist/ice/cpp/src/Ice/generated/ServantLocatorF.cpp +2 -2
  123. data/dist/ice/cpp/src/Ice/generated/SliceChecksumDict.cpp +2 -2
  124. data/dist/ice/cpp/src/Ice/generated/ValueFactory.cpp +2 -2
  125. data/dist/ice/cpp/src/Ice/generated/Version.cpp +2 -2
  126. data/dist/ice/cpp/src/IceDiscovery/generated/IceDiscovery/IceDiscovery.h +2 -2
  127. data/dist/ice/cpp/src/IceDiscovery/generated/IceDiscovery.cpp +2 -2
  128. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/IceLocatorDiscovery/IceLocatorDiscovery.h +2 -2
  129. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/IceLocatorDiscovery.cpp +2 -2
  130. data/dist/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +17 -9
  131. data/dist/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +1 -0
  132. data/dist/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +2 -0
  133. data/dist/ice/cpp/src/IceSSL/RFC2253.cpp +1 -1
  134. data/dist/ice/cpp/src/IceSSL/SChannelEngine.cpp +12 -2
  135. data/dist/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +2 -1
  136. data/dist/ice/cpp/src/IceSSL/SSLEngine.cpp +16 -1
  137. data/dist/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +107 -2
  138. data/dist/ice/cpp/src/IceSSL/SecureTransportEngine.h +7 -0
  139. data/dist/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +2 -0
  140. data/dist/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +1 -1
  141. data/dist/ice/cpp/src/IceSSL/TrustManager.cpp +12 -1
  142. data/dist/ice/cpp/src/IceSSL/generated/ConnectionInfo.cpp +2 -2
  143. data/dist/ice/cpp/src/IceSSL/generated/ConnectionInfoF.cpp +2 -2
  144. data/dist/ice/cpp/src/IceSSL/generated/EndpointInfo.cpp +2 -2
  145. data/dist/ice/cpp/src/IceUtil/ConvertUTF.cpp +4 -0
  146. data/dist/ice/cpp/src/IceUtil/FileUtil.cpp +1 -1
  147. data/dist/ice/cpp/src/IceUtil/Time.cpp +4 -4
  148. data/dist/ice/cpp/src/Slice/JavaUtil.cpp +4 -4
  149. data/dist/lib/Glacier2/Metrics.rb +1 -1
  150. data/dist/lib/Glacier2/PermissionsVerifier.rb +1 -1
  151. data/dist/lib/Glacier2/PermissionsVerifierF.rb +1 -1
  152. data/dist/lib/Glacier2/Router.rb +1 -1
  153. data/dist/lib/Glacier2/RouterF.rb +1 -1
  154. data/dist/lib/Glacier2/SSLInfo.rb +1 -1
  155. data/dist/lib/Glacier2/Session.rb +1 -1
  156. data/dist/lib/Ice/BuiltinSequences.rb +1 -1
  157. data/dist/lib/Ice/Communicator.rb +1 -1
  158. data/dist/lib/Ice/CommunicatorF.rb +1 -1
  159. data/dist/lib/Ice/Connection.rb +1 -1
  160. data/dist/lib/Ice/ConnectionF.rb +1 -1
  161. data/dist/lib/Ice/Current.rb +1 -1
  162. data/dist/lib/Ice/Endpoint.rb +1 -1
  163. data/dist/lib/Ice/EndpointF.rb +1 -1
  164. data/dist/lib/Ice/EndpointTypes.rb +1 -1
  165. data/dist/lib/Ice/FacetMap.rb +1 -1
  166. data/dist/lib/Ice/Identity.rb +1 -1
  167. data/dist/lib/Ice/ImplicitContext.rb +1 -1
  168. data/dist/lib/Ice/ImplicitContextF.rb +1 -1
  169. data/dist/lib/Ice/Instrumentation.rb +1 -1
  170. data/dist/lib/Ice/InstrumentationF.rb +1 -1
  171. data/dist/lib/Ice/LocalException.rb +1 -1
  172. data/dist/lib/Ice/Locator.rb +1 -1
  173. data/dist/lib/Ice/LocatorF.rb +1 -1
  174. data/dist/lib/Ice/Logger.rb +1 -1
  175. data/dist/lib/Ice/LoggerF.rb +1 -1
  176. data/dist/lib/Ice/Metrics.rb +1 -1
  177. data/dist/lib/Ice/ObjectAdapter.rb +1 -1
  178. data/dist/lib/Ice/ObjectAdapterF.rb +1 -1
  179. data/dist/lib/Ice/ObjectFactory.rb +1 -1
  180. data/dist/lib/Ice/Plugin.rb +1 -1
  181. data/dist/lib/Ice/PluginF.rb +1 -1
  182. data/dist/lib/Ice/Process.rb +1 -1
  183. data/dist/lib/Ice/ProcessF.rb +1 -1
  184. data/dist/lib/Ice/Properties.rb +1 -1
  185. data/dist/lib/Ice/PropertiesAdmin.rb +1 -1
  186. data/dist/lib/Ice/PropertiesF.rb +1 -1
  187. data/dist/lib/Ice/RemoteLogger.rb +1 -1
  188. data/dist/lib/Ice/Router.rb +1 -1
  189. data/dist/lib/Ice/RouterF.rb +1 -1
  190. data/dist/lib/Ice/ServantLocator.rb +1 -1
  191. data/dist/lib/Ice/ServantLocatorF.rb +1 -1
  192. data/dist/lib/Ice/SliceChecksumDict.rb +1 -1
  193. data/dist/lib/Ice/ValueFactory.rb +1 -1
  194. data/dist/lib/Ice/Version.rb +1 -1
  195. data/dist/lib/IceBox/IceBox.rb +1 -1
  196. data/dist/lib/IceGrid/Admin.rb +1 -1
  197. data/dist/lib/IceGrid/Descriptor.rb +1 -1
  198. data/dist/lib/IceGrid/Exception.rb +1 -1
  199. data/dist/lib/IceGrid/FileParser.rb +1 -1
  200. data/dist/lib/IceGrid/PluginFacade.rb +1 -1
  201. data/dist/lib/IceGrid/Registry.rb +1 -1
  202. data/dist/lib/IceGrid/Session.rb +1 -1
  203. data/dist/lib/IceGrid/UserAccountMapper.rb +1 -1
  204. data/dist/lib/IcePatch2/FileInfo.rb +1 -1
  205. data/dist/lib/IcePatch2/FileServer.rb +1 -1
  206. data/dist/lib/IceStorm/IceStorm.rb +1 -1
  207. data/dist/lib/IceStorm/Metrics.rb +1 -1
  208. data/ice.gemspec +1 -1
  209. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c87779cb9fe84d339d092ed322e329cfbc4742afa2a6fc6cf08bfc49642be76f
4
- data.tar.gz: aea641220842a3d4a79fc23ab282a4dd60e4fcff8cee0f079bd21434b2f641dc
3
+ metadata.gz: 7803bb2c7b68309e5b85254ddc12b993020b10743c7814ca1572d5ff20094773
4
+ data.tar.gz: 4cbc4eb78607aa7911e7298685731ede1b4cda27ce148174673bc1d427c76cac
5
5
  SHA512:
6
- metadata.gz: 73fb87f520cbb8a8f18d125df39bf1e2ad273f6705b0d2d0b9f46aaea1dcd0893960723af198bda50ed43e220e8a03fcb8ef2cb9dcb50a1e7102bc6fce2d6a2a
7
- data.tar.gz: 9a3c321a21ff4b222a1e972fd233697760659d857d5c9214084fb0cea91d76745cfd9421b6fc2f724c2ac2a9147828b656dbf98757b3359eeb70de1ab81e099e
6
+ metadata.gz: b7843dcce3e01f046c6e193d0fb0f1d998f6825487a30a348aecf78e4425224b58f0b5388bad528a2dc6ddd24ae4f00ea08ed03ab26ecc314e0ce33c501d79e3
7
+ data.tar.gz: 83c531db159ad853d2491407daf6c9d70c652d77ee057f52ba0868dc803bdde9bb2fabeada93c0f83419be7cc20b0cbcf5a59d4730d00c75eac2659b30e61164
@@ -190,7 +190,15 @@ IceRuby_initialize(int argc, VALUE* argv, VALUE /*self*/)
190
190
  seq.insert(seq.begin(), getString(progName));
191
191
 
192
192
  data.compactIdResolver = new IdResolver;
193
- data.valueFactoryManager = new ValueFactoryManager;
193
+
194
+ //
195
+ // The Ruby object that wraps the value factory manager is only marked through the communicator
196
+ // wrapper, which is created at the end of this function. Until then we keep a reference to it on
197
+ // the stack, otherwise the GC can collect it.
198
+ //
199
+ ValueFactoryManagerPtr valueFactoryManager = new ValueFactoryManager;
200
+ volatile VALUE valueFactoryManagerObj = valueFactoryManager->getObject();
201
+ data.valueFactoryManager = valueFactoryManager;
194
202
 
195
203
  if(!data.properties)
196
204
  {
@@ -282,6 +290,7 @@ IceRuby_initialize(int argc, VALUE* argv, VALUE /*self*/)
282
290
 
283
291
  VALUE result = Data_Wrap_Struct(_communicatorClass, IceRuby_Communicator_mark,
284
292
  IceRuby_Communicator_free, new Ice::CommunicatorPtr(communicator));
293
+ RB_GC_GUARD(valueFactoryManagerObj);
285
294
 
286
295
  CommunicatorMap::iterator p = _communicatorMap.find(communicator);
287
296
  if(p != _communicatorMap.end())
@@ -601,7 +610,7 @@ IceRuby_Communicator_getImplicitContext(VALUE self)
601
610
  {
602
611
  Ice::CommunicatorPtr p = getCommunicator(self);
603
612
  Ice::ImplicitContextPtr implicitContext = p->getImplicitContext();
604
- return createImplicitContext(implicitContext);
613
+ return implicitContext ? createImplicitContext(implicitContext) : Qnil;
605
614
  }
606
615
  ICE_RUBY_CATCH
607
616
  return Qnil;
@@ -37,9 +37,9 @@ IceRuby_createProperties(int argc, VALUE* argv, VALUE /*self*/)
37
37
  }
38
38
 
39
39
  Ice::PropertiesPtr defaults;
40
- if(argc == 2)
40
+ if(argc == 2 && !NIL_P(argv[1]))
41
41
  {
42
- if(!NIL_P(argv[1]) && callRuby(rb_obj_is_instance_of, argv[1], _propertiesClass) == Qfalse)
42
+ if(callRuby(rb_obj_is_instance_of, argv[1], _propertiesClass) == Qfalse)
43
43
  {
44
44
  throw RubyException(rb_eTypeError, "invalid properties argument to Ice::createProperties");
45
45
  }
@@ -1286,7 +1286,7 @@ IceRuby::SequenceInfo::unmarshal(Ice::InputStream* is, const UnmarshalCallbackPt
1286
1286
  return;
1287
1287
  }
1288
1288
 
1289
- Ice::Int sz = is->readSize();
1289
+ Ice::Int sz = is->readAndCheckSeqSize(elementType->wireSize());
1290
1290
  volatile VALUE arr = createArray(sz);
1291
1291
 
1292
1292
  for(Ice::Int i = 0; i < sz; ++i)
@@ -1416,7 +1416,7 @@ IceRuby::SequenceInfo::marshalPrimitiveSequence(const PrimitiveInfoPtr& pi, VALU
1416
1416
  const long len = RSTRING_LEN(str);
1417
1417
  if(s == 0 || len == 0)
1418
1418
  {
1419
- os->write(Ice::Int(0));
1419
+ os->writeSize(0);
1420
1420
  }
1421
1421
  else
1422
1422
  {
@@ -2364,7 +2364,7 @@ IceRuby::ProxyInfo::variableLength() const
2364
2364
  int
2365
2365
  IceRuby::ProxyInfo::wireSize() const
2366
2366
  {
2367
- return 1;
2367
+ return 2;
2368
2368
  }
2369
2369
 
2370
2370
  Ice::OptionalFormat
@@ -397,7 +397,8 @@ public:
397
397
  {
398
398
  throwUnmarshalOutOfBoundsException(__FILE__, __LINE__);
399
399
  }
400
- if(i - sizeof(Int) + sz > b.end())
400
+ // sz includes the 4 bytes of the size itself, which we have already read.
401
+ if(sz - 4 > b.end() - i)
401
402
  {
402
403
  throwUnmarshalOutOfBoundsException(__FILE__, __LINE__);
403
404
  }
@@ -465,7 +466,8 @@ public:
465
466
  {
466
467
  throwEncapsulationException(__FILE__, __LINE__);
467
468
  }
468
- if(i - sizeof(Ice::Int) + sz > b.end())
469
+ // sz includes the 4 bytes of the size itself, which we have already read.
470
+ if(sz - 4 > b.end() - i)
469
471
  {
470
472
  throwUnmarshalOutOfBoundsException(__FILE__, __LINE__);
471
473
  }
@@ -505,7 +507,8 @@ public:
505
507
  {
506
508
  throwEncapsulationException(__FILE__, __LINE__);
507
509
  }
508
- if(i - sizeof(Int) + sz > b.end())
510
+ // sz includes the 4 bytes of the size itself, which we have already read.
511
+ if(sz - 4 > b.end() - i)
509
512
  {
510
513
  throwUnmarshalOutOfBoundsException(__FILE__, __LINE__);
511
514
  }
@@ -1148,7 +1151,7 @@ public:
1148
1151
  */
1149
1152
  void skip(size_type size)
1150
1153
  {
1151
- if(i + size > b.end())
1154
+ if(size > static_cast<size_type>(b.end() - i))
1152
1155
  {
1153
1156
  throwUnmarshalOutOfBoundsException(__FILE__, __LINE__);
1154
1157
  }
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -42,7 +42,7 @@
42
42
  # if ICE_INT_VERSION % 100 >= 50
43
43
  # error Beta header file detected
44
44
  # endif
45
- # if ICE_INT_VERSION % 100 < 11
45
+ # if ICE_INT_VERSION % 100 < 12
46
46
  # error Ice patch level mismatch!
47
47
  # endif
48
48
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -44,7 +44,7 @@
44
44
  # if ICE_INT_VERSION % 100 >= 50
45
45
  # error Beta header file detected
46
46
  # endif
47
- # if ICE_INT_VERSION % 100 < 11
47
+ # if ICE_INT_VERSION % 100 < 12
48
48
  # error Ice patch level mismatch!
49
49
  # endif
50
50
  #endif
@@ -268,8 +268,8 @@
268
268
  //
269
269
  // The Ice version.
270
270
  //
271
- #define ICE_STRING_VERSION "3.7.11" // "A.B.C", with A=major, B=minor, C=patch
272
- #define ICE_INT_VERSION 30711 // AABBCC, with AA=major, BB=minor, CC=patch
271
+ #define ICE_STRING_VERSION "3.7.12" // "A.B.C", with A=major, B=minor, C=patch
272
+ #define ICE_INT_VERSION 30712 // AABBCC, with AA=major, BB=minor, CC=patch
273
273
  #define ICE_SO_VERSION "37" // "ABC", with A=major, B=minor, C=patch
274
274
 
275
275
  #if !defined(ICE_BUILDING_ICE) && defined(ICE_API_EXPORTS)
@@ -7,8 +7,8 @@
7
7
 
8
8
  #include "winver.h"
9
9
 
10
- #define ICE_VERSION 3,7,11,0
11
- #define ICE_STRING_VERSION "3.7.11\0"
10
+ #define ICE_VERSION 3,7,12,0
11
+ #define ICE_STRING_VERSION "3.7.12\0"
12
12
  #define ICE_SO_VERSION "37\0"
13
13
  #define ICE_COMPANY_NAME "ZeroC, Inc.\0"
14
14
  #define ICE_COPYRIGHT "\251 ZeroC, Inc.\0"
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -44,7 +44,7 @@
44
44
  # if ICE_INT_VERSION % 100 >= 50
45
45
  # error Beta header file detected
46
46
  # endif
47
- # if ICE_INT_VERSION % 100 < 11
47
+ # if ICE_INT_VERSION % 100 < 12
48
48
  # error Ice patch level mismatch!
49
49
  # endif
50
50
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -45,7 +45,7 @@
45
45
  # if ICE_INT_VERSION % 100 >= 50
46
46
  # error Beta header file detected
47
47
  # endif
48
- # if ICE_INT_VERSION % 100 < 11
48
+ # if ICE_INT_VERSION % 100 < 12
49
49
  # error Ice patch level mismatch!
50
50
  # endif
51
51
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -36,7 +36,7 @@
36
36
  # if ICE_INT_VERSION % 100 >= 50
37
37
  # error Beta header file detected
38
38
  # endif
39
- # if ICE_INT_VERSION % 100 < 11
39
+ # if ICE_INT_VERSION % 100 < 12
40
40
  # error Ice patch level mismatch!
41
41
  # endif
42
42
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -48,7 +48,7 @@
48
48
  # if ICE_INT_VERSION % 100 >= 50
49
49
  # error Beta header file detected
50
50
  # endif
51
- # if ICE_INT_VERSION % 100 < 11
51
+ # if ICE_INT_VERSION % 100 < 12
52
52
  # error Ice patch level mismatch!
53
53
  # endif
54
54
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -36,7 +36,7 @@
36
36
  # if ICE_INT_VERSION % 100 >= 50
37
37
  # error Beta header file detected
38
38
  # endif
39
- # if ICE_INT_VERSION % 100 < 11
39
+ # if ICE_INT_VERSION % 100 < 12
40
40
  # error Ice patch level mismatch!
41
41
  # endif
42
42
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -37,7 +37,7 @@
37
37
  # if ICE_INT_VERSION % 100 >= 50
38
38
  # error Beta header file detected
39
39
  # endif
40
- # if ICE_INT_VERSION % 100 < 11
40
+ # if ICE_INT_VERSION % 100 < 12
41
41
  # error Ice patch level mismatch!
42
42
  # endif
43
43
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -47,7 +47,7 @@
47
47
  # if ICE_INT_VERSION % 100 >= 50
48
48
  # error Beta header file detected
49
49
  # endif
50
- # if ICE_INT_VERSION % 100 < 11
50
+ # if ICE_INT_VERSION % 100 < 12
51
51
  # error Ice patch level mismatch!
52
52
  # endif
53
53
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -35,7 +35,7 @@
35
35
  # if ICE_INT_VERSION % 100 >= 50
36
36
  # error Beta header file detected
37
37
  # endif
38
- # if ICE_INT_VERSION % 100 < 11
38
+ # if ICE_INT_VERSION % 100 < 12
39
39
  # error Ice patch level mismatch!
40
40
  # endif
41
41
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -56,7 +56,7 @@
56
56
  # if ICE_INT_VERSION % 100 >= 50
57
57
  # error Beta header file detected
58
58
  # endif
59
- # if ICE_INT_VERSION % 100 < 11
59
+ # if ICE_INT_VERSION % 100 < 12
60
60
  # error Ice patch level mismatch!
61
61
  # endif
62
62
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -35,7 +35,7 @@
35
35
  # if ICE_INT_VERSION % 100 >= 50
36
36
  # error Beta header file detected
37
37
  # endif
38
- # if ICE_INT_VERSION % 100 < 11
38
+ # if ICE_INT_VERSION % 100 < 12
39
39
  # error Ice patch level mismatch!
40
40
  # endif
41
41
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -39,7 +39,7 @@
39
39
  # if ICE_INT_VERSION % 100 >= 50
40
40
  # error Beta header file detected
41
41
  # endif
42
- # if ICE_INT_VERSION % 100 < 11
42
+ # if ICE_INT_VERSION % 100 < 12
43
43
  # error Ice patch level mismatch!
44
44
  # endif
45
45
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -35,7 +35,7 @@
35
35
  # if ICE_INT_VERSION % 100 >= 50
36
36
  # error Beta header file detected
37
37
  # endif
38
- # if ICE_INT_VERSION % 100 < 11
38
+ # if ICE_INT_VERSION % 100 < 12
39
39
  # error Ice patch level mismatch!
40
40
  # endif
41
41
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -39,7 +39,7 @@
39
39
  # if ICE_INT_VERSION % 100 >= 50
40
40
  # error Beta header file detected
41
41
  # endif
42
- # if ICE_INT_VERSION % 100 < 11
42
+ # if ICE_INT_VERSION % 100 < 12
43
43
  # error Ice patch level mismatch!
44
44
  # endif
45
45
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -38,7 +38,7 @@
38
38
  # if ICE_INT_VERSION % 100 >= 50
39
39
  # error Beta header file detected
40
40
  # endif
41
- # if ICE_INT_VERSION % 100 < 11
41
+ # if ICE_INT_VERSION % 100 < 12
42
42
  # error Ice patch level mismatch!
43
43
  # endif
44
44
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -35,7 +35,7 @@
35
35
  # if ICE_INT_VERSION % 100 >= 50
36
36
  # error Beta header file detected
37
37
  # endif
38
- # if ICE_INT_VERSION % 100 < 11
38
+ # if ICE_INT_VERSION % 100 < 12
39
39
  # error Ice patch level mismatch!
40
40
  # endif
41
41
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -35,7 +35,7 @@
35
35
  # if ICE_INT_VERSION % 100 >= 50
36
36
  # error Beta header file detected
37
37
  # endif
38
- # if ICE_INT_VERSION % 100 < 11
38
+ # if ICE_INT_VERSION % 100 < 12
39
39
  # error Ice patch level mismatch!
40
40
  # endif
41
41
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -35,7 +35,7 @@
35
35
  # if ICE_INT_VERSION % 100 >= 50
36
36
  # error Beta header file detected
37
37
  # endif
38
- # if ICE_INT_VERSION % 100 < 11
38
+ # if ICE_INT_VERSION % 100 < 12
39
39
  # error Ice patch level mismatch!
40
40
  # endif
41
41
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -35,7 +35,7 @@
35
35
  # if ICE_INT_VERSION % 100 >= 50
36
36
  # error Beta header file detected
37
37
  # endif
38
- # if ICE_INT_VERSION % 100 < 11
38
+ # if ICE_INT_VERSION % 100 < 12
39
39
  # error Ice patch level mismatch!
40
40
  # endif
41
41
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -38,7 +38,7 @@
38
38
  # if ICE_INT_VERSION % 100 >= 50
39
39
  # error Beta header file detected
40
40
  # endif
41
- # if ICE_INT_VERSION % 100 < 11
41
+ # if ICE_INT_VERSION % 100 < 12
42
42
  # error Ice patch level mismatch!
43
43
  # endif
44
44
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -35,7 +35,7 @@
35
35
  # if ICE_INT_VERSION % 100 >= 50
36
36
  # error Beta header file detected
37
37
  # endif
38
- # if ICE_INT_VERSION % 100 < 11
38
+ # if ICE_INT_VERSION % 100 < 12
39
39
  # error Ice patch level mismatch!
40
40
  # endif
41
41
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -38,7 +38,7 @@
38
38
  # if ICE_INT_VERSION % 100 >= 50
39
39
  # error Beta header file detected
40
40
  # endif
41
- # if ICE_INT_VERSION % 100 < 11
41
+ # if ICE_INT_VERSION % 100 < 12
42
42
  # error Ice patch level mismatch!
43
43
  # endif
44
44
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -35,7 +35,7 @@
35
35
  # if ICE_INT_VERSION % 100 >= 50
36
36
  # error Beta header file detected
37
37
  # endif
38
- # if ICE_INT_VERSION % 100 < 11
38
+ # if ICE_INT_VERSION % 100 < 12
39
39
  # error Ice patch level mismatch!
40
40
  # endif
41
41
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -39,7 +39,7 @@
39
39
  # if ICE_INT_VERSION % 100 >= 50
40
40
  # error Beta header file detected
41
41
  # endif
42
- # if ICE_INT_VERSION % 100 < 11
42
+ # if ICE_INT_VERSION % 100 < 12
43
43
  # error Ice patch level mismatch!
44
44
  # endif
45
45
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -45,7 +45,7 @@
45
45
  # if ICE_INT_VERSION % 100 >= 50
46
46
  # error Beta header file detected
47
47
  # endif
48
- # if ICE_INT_VERSION % 100 < 11
48
+ # if ICE_INT_VERSION % 100 < 12
49
49
  # error Ice patch level mismatch!
50
50
  # endif
51
51
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.11
5
+ // Ice version 3.7.12
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -36,7 +36,7 @@
36
36
  # if ICE_INT_VERSION % 100 >= 50
37
37
  # error Beta header file detected
38
38
  # endif
39
- # if ICE_INT_VERSION % 100 < 11
39
+ # if ICE_INT_VERSION % 100 < 12
40
40
  # error Ice patch level mismatch!
41
41
  # endif
42
42
  #endif