1. 18 May, 2021 2 commits
  2. 17 May, 2021 5 commits
  3. 15 May, 2021 1 commit
  4. 14 May, 2021 5 commits
  5. 13 May, 2021 21 commits
  6. 11 May, 2021 6 commits
    • Daiki Ueno's avatar
      gnutls-serv: use only async-signal-safe functions in signal handler · 50ab7130
      Daiki Ueno authored
      
      
      Spotted by gcc analyzer:
        serv.c:1138:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler]
         1138 |         exit(1);
              |         ^~~~~~~
      Signed-off-by: Daiki Ueno's avatarDaiki Ueno <ueno@gnu.org>
      50ab7130
    • Daiki Ueno's avatar
      certtool: tighten allocation check · 94eb1e3f
      Daiki Ueno authored
      
      
      Spotted by gcc analyzer:
        certtool-cfg.c:856:24: warning: use of possibly-NULL 'copy' where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument]
          856 |                 while (strcmp(pass, copy) != 0
              |                        ^~~~~~~~~~~~~~~~~~
      Signed-off-by: Daiki Ueno's avatarDaiki Ueno <ueno@gnu.org>
      94eb1e3f
    • Daiki Ueno's avatar
      psktool: tighten allocation check · 2b759674
      Daiki Ueno authored
      
      
      Spotted by gcc analyzer:
        psk.c:275:21: warning: use of possibly-NULL '_username.data' where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument]
          275 |                 if (strncmp(p, (const char *) _username.data,
              |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Signed-off-by: Daiki Ueno's avatarDaiki Ueno <ueno@gnu.org>
      2b759674
    • Daiki Ueno's avatar
      .gitignore: ignore more files · 887622a5
      Daiki Ueno authored
      
      Signed-off-by: Daiki Ueno's avatarDaiki Ueno <ueno@gnu.org>
      887622a5
    • Daiki Ueno's avatar
      _tls13_{derive,expand}_secret2: fix array parameter mismatch · 47a4b238
      Daiki Ueno authored
      
      
      This suppresses the warning with -Warray-parameter
        secrets.c:85:40: warning: argument 6 of type 'const uint8_t[64]' {aka 'const unsigned char[64]'} with mismatched bound [-Warray-parameter=]
           85 |                          const uint8_t secret[MAX_HASH_SIZE],
              |                          ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
        In file included from secrets.c:28:
        secrets.h:43:41: note: previously declared as 'const uint8_t[32]' {aka 'const unsigned char[32]'}
           43 |                           const uint8_t secret[MAX_CIPHER_KEY_SIZE],
              |                           ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
      Signed-off-by: Daiki Ueno's avatarDaiki Ueno <ueno@gnu.org>
      47a4b238
    • Daiki Ueno's avatar
      _gnutls_retrieve_pin: remove array declarator in function argument · 60f32b84
      Daiki Ueno authored
      
      
      This was originally to eliminate the warnings with -Warray-parameter:
      
        pin.c:70:27: warning: argument 5 of type 'char[256]' with mismatched bound [-Warray-parameter=]
           70 |                      char pin[GNUTLS_PKCS11_MAX_PIN_LEN], unsigned pin_size)
              |                      ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        In file included from pin.c:23:
        ./pin.h:9:48: note: previously declared as 'char *'
            9 |                      unsigned pin_flags, char *pin, unsigned pin_size);
              |                                          ~~~~~~^~~
      
      though it turned out to be unnecessary because the function merely
      delegate the call to the user-supplied callbacks.
      Signed-off-by: Daiki Ueno's avatarDaiki Ueno <ueno@gnu.org>
      60f32b84