Commit e3d89e9
committed
fix: Secure ClientContext merging and improve type safety
- Fix critical security vulnerability in where in-place modification of the base object could lead to context leakage across requests.
- Replace with throughout , , , and for better robustness and subclass support.
- Simplify construction logic in for better readability.
Based on suggestions from Gemini Code Assist.1 parent 3611aec commit e3d89e9
File tree
4 files changed
+30
-18
lines changed- google/cloud/spanner_v1
4 files changed
+30
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
226 | 240 | | |
227 | 241 | | |
228 | 242 | | |
| |||
250 | 264 | | |
251 | 265 | | |
252 | 266 | | |
253 | | - | |
| 267 | + | |
254 | 268 | | |
255 | 269 | | |
256 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
| 952 | + | |
952 | 953 | | |
953 | 954 | | |
954 | 955 | | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
| 956 | + | |
959 | 957 | | |
960 | 958 | | |
961 | | - | |
962 | 959 | | |
963 | | - | |
964 | | - | |
965 | | - | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
966 | 964 | | |
967 | 965 | | |
968 | 966 | | |
| |||
0 commit comments