3713 Commits

Author SHA1 Message Date
Thomas Quinot
e20a9626fa Fix handling of Sync_With_Server request that failed to bind
For a Sync_With_Server request, a reply must be generated (and
the request must be removed from the protocol session's list of
pending requests) in all cases once all location forwarding is
completed, and the servant is identified.

Do not omit this step in the case where the binding phase failed
and no servant could be located (or the request will be destroyed
while still being pointed to by the session's pending request list).

Fixes R706-015
2018-07-11 11:11:55 +02:00
Thomas Quinot
034c14a9f1 Switch to Ada 2012 mode for compatibility with GNAT Community 2018 2018-06-14 12:04:05 +02:00
Thomas Quinot
997e06735f Fix typo in comment 2018-03-26 12:00:28 +02:00
Thomas Quinot
fc5ff43700 Remove SSLv2 support altogether
This protocol is ancient, insecure, obsolete, and deprecated.

For QB24-032

Subversion-branch: /trunk/polyorb
Subversion-revision: 259181
2017-11-28 12:10:19 +00:00
Thomas Quinot
4536bb780c Provide SSLv2_*_method stub only if missing from libssl
Previously these functions were not present in libssl if it was
built without SSLv2, which is indicated by the presence of macro
OPENSSL_NO_SSL2.

However, OpenSSL commit 03c71b84d351a3a5de0bc7d39a99336369277849
changed this to always expose these functions even when building
without SSLv2 (unless OPENSSL_NO_SSL2_METHOD is defined).

So, we need to actually test for the presence of these functions
to determine whether we need to provide our own stubs.

Fix for QB24-032

Subversion-branch: /trunk/polyorb
Subversion-revision: 259150
2017-11-27 12:32:52 +00:00
squirek
aa8c9b0259 Remove ineffective use clauses as per PA07-083 and disable some checks
for
unused entities (-gnatwu) due to generated code violating this warning.

Subversion-branch: /trunk/polyorb
Subversion-revision: 257360
2017-08-29 15:13:55 +00:00
Thomas Quinot
f6b1d049af Remove unnecessary use-type and use-package clauses
These redundant clauses will be flagged by the compiler in the near
future (PA07-083).

Q725-034

Subversion-branch: /trunk/polyorb
Subversion-revision: 257110
2017-08-02 08:40:59 +00:00
Bob Duff
fa0a813d79 * src/polyorb-buffers.adb:
Fix computation of Remainder in case Count > 0.
Add an abort completion point just in case this is
being called from an asynchronous transfer of control
to implement a time-out.

Fixes Q530-002

Subversion-branch: /trunk/polyorb
Subversion-revision: 256328
2017-06-08 16:33:52 +00:00
Bob Duff
dd9dc244dd * src/dsa/s-parint.adb:
Use Ada.Containers.Indefinite_Ordered_Maps instead of the perfect
hashing, to avoid an infinite loop in the rehashing algorithm.

Fixes Q303-003

Subversion-branch: /trunk/polyorb
Subversion-revision: 255972
2017-05-23 19:01:01 +00:00
Thomas Quinot
11cea37a26 Remove unnecessary duplicated code blocks
One suspicious case remains in
compilers/iac/backend-be_corba_ada-common.adb.

Q210-015

Subversion-branch: /trunk/polyorb
Subversion-revision: 254360
2017-02-10 19:54:47 +00:00
Thomas Quinot
55731fc5b2 Remove redundant checks against NULL
These pointers have just been dereferenced

Q208-020

Subversion-branch: /trunk/polyorb
Subversion-revision: 254323
2017-02-08 15:39:02 +00:00
Thomas Quinot
a226e64779 Adjust after improvement to tagged types freezing warnings
Fixup after PB09-031 compiler change

Subversion-branch: /trunk/polyorb
Subversion-revision: 253268
2016-12-21 18:09:24 +00:00
Thomas Quinot
d5d2eaf320 Add more information to exception message for RCI version mismatch
For PA26-008

Subversion-branch: /trunk/polyorb
Subversion-revision: 252116
2016-10-28 18:31:38 +00:00
Thomas Quinot
ba029a97f7 Minor comment rewording
Actually the compiler's behaviour is reasonable and won't change,
so we'll keep warnings disabled here: remove WAG marker.

Followup on P809-029

Subversion-branch: /trunk/polyorb
Subversion-revision: 251155
2016-09-19 14:07:52 +00:00
Thomas Quinot
a5c9e70330 Silence bogus warning for useless assignment to Witness
Assigned value is actually read during finalization.

P809-029

Subversion-branch: /trunk/polyorb
Subversion-revision: 251154
2016-09-19 13:54:02 +00:00
Thomas Quinot
ab558aac47 Add missing initialization dependency
Fixes latent bug P913-006, uncovered by P615-037

Subversion-branch: /trunk/polyorb
Subversion-revision: 250992
2016-09-13 21:36:32 +00:00
Thomas Quinot
661cd40b75 Minor cleanup: fix casing of some identifiers
Subversion-branch: /trunk/polyorb
Subversion-revision: 250990
2016-09-13 21:15:14 +00:00
Thomas Quinot
89af4d056c Relax line length checks for file with configure substitutions
Subversion-branch: /trunk/polyorb
Subversion-revision: 246206
2016-02-10 14:27:23 +00:00
Thomas Quinot
52537d7483 Do not pass -gnatec to the builder
This is not a valid compiler flag for C sources. Instead copy
user-provided
configuration pragmas to src/config.adc.

Fixes O807-004

Subversion-branch: /trunk/polyorb
Subversion-revision: 240737
2015-08-07 09:19:33 +00:00
Thomas Quinot
a382126aae Minor reformatting
Subversion-branch: /trunk/polyorb
Subversion-revision: 239158
2015-05-29 12:37:15 +00:00
Bob Duff
00bc14c1bc Parse new Exception_Information format.
O515-019

Subversion-branch: /trunk/polyorb
Subversion-revision: 238734
2015-05-15 20:52:22 +00:00
Thomas Quinot
967bc06ce8 (PolyORB.Parameters.Static.Parameters): Set high bound to Positive'Last
to
prevent compiler from optimizing away a loop on array elements.

Fixes O415-015

Subversion-branch: /trunk/polyorb
Subversion-revision: 238267
2015-04-28 08:47:46 +00:00
Thomas Quinot
01021439af (Raise_User_Exception_From_Any): Defend against case of
Find_Exception_Info returning null (raise Program_Error instead
of causing a Storage_Error).
Followup on changes for O401-031, O213-032

Subversion-branch: /trunk/polyorb
Subversion-revision: 237731
2015-04-01 16:14:20 +00:00
Thomas Quinot
cb5b3edbff (Find_Exception_Info): Add missing "return null" when exception is not
found

Fixes O401-031
Regression introduced by change for O213-032

Subversion-branch: /trunk/polyorb
Subversion-revision: 237730
2015-04-01 15:59:28 +00:00
Thomas Quinot
e4f76382cd When unmarshalling a user exception that is not part of the list
expected for the operation, fall back to looking up in the list of
all registered exceptions.

Fixes O213-032

Subversion-branch: /trunk/polyorb
Subversion-revision: 236449
2015-02-16 12:17:28 +00:00