Changeset 587
- Timestamp:
- Oct 20, 2025, 10:42:43 PM (12 hours ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_dbIO.c
r579 r587 890 890 { 891 891 sh_file_t * p; 892 int count = 0;893 892 int errflag = 0; 894 893 char * line = SH_ALLOC(MAX_PATH_STORE+2); … … 916 915 else 917 916 sh_hash_remove_unconditional (p->fullpath); 918 ++count;919 917 } 920 918 else … … 1481 1479 const char * outpath, int truncate) 1482 1480 { 1483 static long p_count = 0;1484 1481 sh_filestore_t p; 1485 1482 char * fullpath = NULL; … … 1559 1556 { 1560 1557 write_record(pushdata_fd, &p, fullpath, linkpath, attr_string); 1561 ++p_count;1562 1558 } 1563 1559 -
trunk/src/sh_mem.c
r579 r587 180 180 memlist_t * merrlist = NULL; 181 181 memlist_t * merr; 182 long nerr = 0;183 182 184 183 SL_ENTER(_("sh_mem_check")); … … 205 204 merr->next = merrlist; 206 205 merrlist = merr; 207 ++nerr;208 206 } 209 207 else … … 218 216 merr->next = merrlist; 219 217 merrlist = merr; 220 ++nerr;221 218 } 222 219 if ( this->real_address[SH_MEMMULT-1] != CHECKBYTE ) … … 229 226 merr->next = merrlist; 230 227 merrlist = merr; 231 ++nerr;232 228 } 233 229 } -
trunk/src/sh_string.c
r516 r587 644 644 len = (size_t) tlen; 645 645 646 if (tlen > 0 && r->siz > (r->len + len) && 647 &(s->str[ovector[last]]) ) 646 if (tlen > 0 && r->siz > (r->len + len) /* && &(s->str[ovector[last]]) always true */ ) 648 647 { 649 648 memcpy(p, &(s->str[ovector[last]]), (size_t)len); … … 676 675 { 677 676 len = (size_t)tlen; 678 if (r->siz >= (r->len + len) && 679 &(s->str[ovector[2*i -1]]) ) { 677 if (r->siz >= (r->len + len) /* && &(s->str[ovector[2*i -1]]) always true */ ) { 680 678 memcpy(p, &(s->str[ovector[2*i -1]]), (size_t)len); 681 679 p += (len - 1); -
trunk/src/sh_tiger0.c
r541 r587 134 134 135 135 sh_byte * buffer = SH_ALLOC(PRIV_MAX + 72); 136 137 unsigned long pages_read;138 136 uid_t euid; 139 137 … … 142 140 143 141 #if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE) 142 unsigned long pages_read; 144 143 /*@-nestedextern@*/ 145 144 extern long IO_Limit; … … 219 218 #endif 220 219 220 #if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE) 221 221 pages_read = 0; 222 #endif 222 223 223 224 while (1) … … 228 229 count = sl_read (fd, buffer, PRIV_MAX); 229 230 231 #if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE) 230 232 ++pages_read; 233 #endif 231 234 232 235 if (SL_ISERROR (count)) … … 873 876 sh_string * content; 874 877 878 #if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE) 875 879 unsigned long pages_read; 876 #if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE) 880 877 881 /*@-nestedextern@*/ 878 882 extern long IO_Limit; … … 896 900 } 897 901 902 #if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE) 898 903 pages_read = 0; 899 904 #endif 905 900 906 content = sl_get_content(fd); 901 907 … … 967 973 && n != 0); 968 974 975 #if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE) 969 976 ++pages_read; 977 #endif 970 978 971 979 /* If end of file is reached, end the loop. */ … … 1417 1425 sh_string * content; 1418 1426 1427 #if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE) 1419 1428 unsigned long pages_read; 1420 #if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE) 1429 1421 1430 /*@-nestedextern@*/ 1422 1431 extern long IO_Limit; … … 1445 1454 /* Iterate over full file contents. */ 1446 1455 1456 #if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE) 1447 1457 pages_read = 0; 1448 1458 #endif 1459 1449 1460 content = sl_get_content(fd); 1450 1461 … … 1515 1526 && n != 0); 1516 1527 1528 #if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE) 1517 1529 ++pages_read; 1518 1530 #endif 1531 1519 1532 /* If end of file is reached, end the loop. */ 1520 1533 if (n == 0)
Note:
See TracChangeset
for help on using the changeset viewer.