1. 31 Dec, 2020 3 commits
  2. 30 Dec, 2020 2 commits
  3. 27 Dec, 2020 1 commit
  4. 24 Dec, 2020 2 commits
    • Sebastian Dröge's avatar
      Merge branch 'master' into 'master' · 7ad7f558
      Sebastian Dröge authored
      Windows: fix FD_READ condition flag still set on recoverable UDP socket errors.
      
      See merge request !1827
      7ad7f558
    • Marco Mastropaolo's avatar
      Windows: fix FD_READ condition flag still set on recoverable UDP socket errors. · 43b13d7a
      Marco Mastropaolo authored
      Contrary to what the WSARecvFrom seem to imply, a UDP socket is perfectly recoverable and usable after a WSAECONNRESET error (and, I assume, WSAENETRESET).
      However GSocket condition has the FD_READ bit set after a UDP socket fails with WSAECONNRESET, even if no data is available on the socket anymore; this causes select calls to report the socket as readable when, in fact, it's not.
      
      The change resets FD_READ flag on a socket upon the above error conditions; there's no 'if' to filter between datagram and stream sockets as the change should be harmless in the case of stream sockets which are, however, very unlikely to be usable after a WSAECONNRESET.
      43b13d7a
  5. 22 Dec, 2020 1 commit
  6. 21 Dec, 2020 6 commits
  7. 18 Dec, 2020 7 commits
    • Philip Withnall's avatar
      Merge branch 'fix_more_warnings' into 'master' · 2008cb58
      Philip Withnall authored
      Fix more warnings
      
      See merge request !1822
      2008cb58
    • Philip Withnall's avatar
      gdate: Limit length of dates which can be parsed as valid · 15634d64
      Philip Withnall authored
      
      
      Realistically any date over 200 bytes long is not going to be valid, so
      limit the input length so we can’t spend too long doing UTF-8 validation
      or normalisation.
      
      oss-fuzz#28718
      Signed-off-by: Philip Withnall's avatarPhilip Withnall <pwithnall@endlessos.org>
      15634d64
    • Emmanuel Fleury's avatar
      Fix signedness warnings in gio/gcredentials.c:g_credentials_to_string() · e90a7913
      Emmanuel Fleury authored
      gio/gcredentials.c: In function ‘g_credentials_to_string’:
      gio/gcredentials.c:238:31: error: comparison of integer expressions of different signedness: ‘uid_t’ {aka ‘unsigned int’} and ‘int’
        238 |   if (credentials->native.uid != -1)
            |                               ^~
      gio/gcredentials.c:240:31: error: comparison of integer expressions of different signedness: ‘gid_t’ {aka ‘unsigned int’} and ‘int’
        240 |   if (credentials->native.gid != -1)
            |                               ^~
      e90a7913
    • Emmanuel Fleury's avatar
      Fix signedness warning in gio/gbufferedoutputstream.c:g_buffered_output_stream_set_buffer_size() · 477d53b2
      Emmanuel Fleury authored
      gio/gbufferedoutputstream.c: In function ‘g_buffered_output_stream_set_buffer_size’:
      glib/gmacros.h:806:26: error: comparison of integer expressions of different signedness: ‘gsize’ {aka ‘long unsigned int’} and ‘goffset’ {aka ‘long int’}
        806 | #define MAX(a, b)  (((a) > (b)) ? (a) : (b))
            |                          ^
      gio/gbufferedoutputstream.c:211:14: note: in expansion of macro ‘MAX’
        211 |       size = MAX (size, priv->pos);
            |              ^~~
      
      Fix signedness warning in gio/gbufferedinputstream.c:g_buffered_input_stream_real_fill()
      
      gio/gbufferedinputstream.c: In function ‘g_buffered_input_stream_real_fill’:
      glib/gmacros.h:809:26: error: comparison of integer expressions of different signedness: ‘gssize’ {aka ‘long int’} and ‘gsize’ {aka ‘long unsigned int’}K [-Werror=sign-compare]
        809 | #define MIN(a, b)  (((a) < (b)) ? (a) : (b))
            |        ...
      477d53b2
    • Emmanuel Fleury's avatar
      Fix signedness warning in gio/gfileattribute.c:escape_byte_string() · 50c85523
      Emmanuel Fleury authored
      gio/gfileattribute.c: In function ‘escape_byte_string’:
      gio/gfileattribute.c:286:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
        286 |   for (i = 0; i < len; i++)
            |                 ^
      gio/gfileattribute.c:299:21: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
        299 |       for (i = 0; i < len; i++)
            |                     ^
      50c85523
    • Emmanuel Fleury's avatar
      Fix signedness warning in gio/gicon.c:g_icon_to_string_tokenized() · c150e46b
      Emmanuel Fleury authored
      gio/gicon.c: In function ‘g_icon_to_string_tokenized’:
      gio/gicon.c:165:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’}
        165 |   for (i = 0; i < tokens->len; i++)
            |                 ^
      c150e46b
    • Emmanuel Fleury's avatar
      Fix signedness warning in gio/gfileinfo.c:g_file_info_remove_attribute() · dd995ca5
      Emmanuel Fleury authored
      gio/gfileinfo.c: In function ‘g_file_info_remove_attribute’:
      gio/gfileinfo.c:706:9: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’}
        706 |   if (i < info->attributes->len &&
            |         ^
      
      Fix signedness warning in gio/gfileinfo.c:g_file_info_create_value()
      
      gio/gfileinfo.c: In function ‘g_file_info_create_value’:
      gio/gfileinfo.c:1084:9: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’}
       1084 |   if (i < info->attributes->len &&
            |         ^
      
      Fix signedness warning in gio/gfileinfo.c:matcher_matches_id()
      
      gio/gfileinfo.c: In function ‘matcher_matches_id’:
      gio/gfileinfo.c:2624:21: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’}
       2624 |       for (i = 0; i < matcher->sub_matchers->len; i++)
            |                     ^
      
      Fix signedness warnings in gio/gfileinfo.c:g_file_attribute_matcher_enumerate_namespace()
      
      gio/gfileinfo.c: In function ‘g_file_attribute_matcher_enumerate_namespace’:
      gio/gfileinfo.c:2713:21: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’}
       2713 |       for (i = 0; i < matcher->sub_matchers->len; i++)
            |                     ^
      gio/gfileinfo.c:2715:27: error: comparison of integer expressions of different signedness: ‘guint32’ {aka ‘unsigned int’} and ‘int’
       2715 |    if (sub_matchers[i].id == ns_id)
            |                           ^~
      
      Fix signedness warning in gio/gfileinfo.c:g_file_attribute_matcher_enumerate_next()
      
      gio/gfileinfo.c: In function ‘g_file_attribute_matcher_enumerate_next’:
      ../glib.git/gio/gfileinfo.c:2752:13: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
       2752 |       if (i < matcher->sub_matchers->len)
            |             ^
      dd995ca5
  8. 17 Dec, 2020 18 commits