|
299 | 299 | <Bug pattern="IS2_INCONSISTENT_SYNC"/> |
300 | 300 | </Match> |
301 | 301 |
|
302 | | - <!-- |
303 | | - IS2_INCONSISTENT_SYNC: WolfSSLParameters objects are copied |
304 | | - via copy() before being shared across threads. The copy() |
305 | | - method is synchronized to protect the source object during |
306 | | - copying. Individual getters/setters are intentionally not |
307 | | - synchronized to match JDK SSLParameters behavior. |
308 | | - --> |
309 | | - <Match> |
310 | | - <Class name= |
311 | | - "com.wolfssl.provider.jsse.WolfSSLParameters"/> |
312 | | - <Bug pattern="IS2_INCONSISTENT_SYNC"/> |
313 | | - </Match> |
314 | | - |
315 | 302 | <!-- |
316 | 303 | NM_METHOD_NAMING_CONVENTION: Public native JNI methods use |
317 | 304 | PascalCase to match native wolfSSL C function naming. |
|
461 | 448 | <Bug pattern="PA_PUBLIC_PRIMITIVE_ATTRIBUTE"/> |
462 | 449 | </Match> |
463 | 450 |
|
464 | | - <!-- |
465 | | - AT_STALE_THREAD_WRITE_OF_PRIMITIVE: WolfSSLParameters |
466 | | - objects are copied via copy() before being shared across |
467 | | - threads, providing the thread-safety boundary. Matching |
468 | | - the JDK SSLParameters pattern which also does not |
469 | | - synchronize primitive getters/setters. |
470 | | -
|
471 | | - WolfSSLImplementSSLSession.side is set once during setup |
472 | | - before the session is used across threads. |
473 | | - --> |
474 | | - <Match> |
475 | | - <Class name= |
476 | | - "com.wolfssl.provider.jsse.WolfSSLParameters"/> |
477 | | - <Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE"/> |
478 | | - </Match> |
479 | | - <Match> |
480 | | - <Class name= |
481 | | - "com.wolfssl.provider.jsse.WolfSSLImplementSSLSession"/> |
482 | | - <Field name="side"/> |
483 | | - <Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE"/> |
484 | | - </Match> |
485 | | - |
486 | | - <!-- |
487 | | - RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE: Defensive null |
488 | | - check on getSession() return value. The session could be |
489 | | - null depending on engine state, keeping as defensive check. |
490 | | - --> |
491 | | - <Match> |
492 | | - <Class name="com.wolfssl.provider.jsse.WolfSSLEngine"/> |
493 | | - <Method name="cacheRequestedServerNamesFromNetData"/> |
494 | | - <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/> |
495 | | - </Match> |
496 | | - |
497 | | - <!-- |
498 | | - RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE: Defensive null check |
499 | | - on certPem in catch block after constructor threw. Kept as |
500 | | - defensive coding to free native resources if constructor |
501 | | - behavior changes in the future. |
502 | | - --> |
503 | | - <Match> |
504 | | - <Class name= |
505 | | - "com.wolfssl.provider.jsse.WolfSSLTrustManager"/> |
506 | | - <Method name="LoadAndroidSystemCertsManually"/> |
507 | | - <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE"/> |
508 | | - </Match> |
509 | | - |
510 | 451 | </FindBugsFilter> |
0 commit comments