summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * r14045: Coverity fix #14. Ensure if len is set buf != NULL.Jeremy Allison2006-03-081-0/+5
| | | | | | | | Jeremy.
| * r14043: After discussion with Jerry revert part of theJeremy Allison2006-03-081-26/+15
| | | | | | | | | | | | | | | | Coverity null-ref patch - put prs_rpcbuffer_p back to the way it was (with an additional coverity paranoia check) - move the real test into rpcbuf_alloc_size instead. Jeremy.
| * r14042: check that create_local_nt_token() succeeds before dereferncing the ↵Gerald Carter2006-03-081-0/+4
| | | | | | | | NT_USER_TOKEN*
| * r14036: Ok, the last one generated a const warning. Also fix Coverity # 119.Volker Lendecke2006-03-081-6/+13
| | | | | | | | | | | | net rpc vampire is ugly.... Volker
| * r14035: Fix Coverity bug # 124Volker Lendecke2006-03-081-0/+1
| |
| * r14034: Fix Coverity id # 125.Volker Lendecke2006-03-081-0/+2
| | | | | | | | | | | | Jeremy, you might want to take a look here. Volker
| * r14033: Fix Coverity bug # 126Volker Lendecke2006-03-081-0/+1
| |
| * r14031: Coverity bug CID #110. Free all resources correctlyJeremy Allison2006-03-081-0/+2
| | | | | | | | | | on pipe initialization failure. Jeremy.
| * r14030: Fix resource leak in error codepath. Coverity CID #64.Jeremy Allison2006-03-081-2/+6
| | | | | | | | Jeremy.
| * r14026: Fix resource leak on error exit. Coverity CID #65.Jeremy Allison2006-03-081-0/+2
| | | | | | | | Jeremy.
| * r14025: Remove unused code. When we want to export samsync, we better first portVolker Lendecke2006-03-081-80/+0
| | | | | | | | | | | | | | | | pidl... Fix Coverity # 15. Volker
| * r14023: My last bug fix still left a potential null deref.Jeremy Allison2006-03-081-8/+9
| | | | | | | | | | C- "must try harder" :-). Jeremy.
| * r14022: Fix Coverity bug # 92Volker Lendecke2006-03-081-0/+1
| |
| * r14020: Coverity bug CID #66. Missing free on error exit.Jeremy Allison2006-03-081-1/+4
| | | | | | | | Jeremy.
| * r14018: Coverity error CID #27. Missing return -1 on error condition.Jeremy Allison2006-03-081-0/+1
| | | | | | | | Jeremy.
| * r14017: Okay, okay, I have turned a double-free into dead code :-)Volker Lendecke2006-03-081-2/+0
| | | | | | | | | | | | Fix Coverity # 214. Volker
| * r14014: Coverity paranoia. Shut it up by making the guarenteeJeremy Allison2006-03-081-2/+7
| | | | | | | | | | in the code explicit - but this was a false positive (CID #16). Jeremy.
| * r14009: Remove last const warning (have to use CONST_DISCARD).Jeremy Allison2006-03-081-1/+3
| | | | | | | | Jeremy.
| * r14007: Coverity bug CID #197. Don't compare against 0, weJeremy Allison2006-03-081-1/+1
| | | | | | | | | | mean the ttl instead. Jeremy.
| * r14006: Fix a couple of irritating warnings.Jeremy Allison2006-03-081-2/+2
| | | | | | | | Jeremy.
| * r14003: Clarify code that lead to Coverity report #13.Jeremy Allison2006-03-082-13/+16
| | | | | | | | | | Not a bug, but better to remove false positives. Jeremy.
| * r14002: Quick fix for Coverity CID #12.Jeremy Allison2006-03-081-0/+4
| | | | | | | | Jeremy
| * r13999: Quick fix for Coverity bug #11.Jeremy Allison2006-03-081-1/+7
| | | | | | | | Jeremy.
| * r13997: Prefix $prefix by default even to rootsbindir as we else run in troubleLars Müller2006-03-071-2/+2
| | | | | | | | | | | | | | | | | | | | if we use ./configure --prefix=dir && make install Vendors might use ./configure --with-rootsbindir=/sbin && make DESTDIR=/var/tmp/samba/ install if they use a buildroot. Thanks to Björn Jacke for pointing me at the stderr output of the build farm.
| * r13994: Belt and braces - ensure RPC_BUFFER is valid.Jeremy Allison2006-03-071-44/+75
| | | | | | | | Jeremy.
| * r13991: Fix Coverity bug # 69Volker Lendecke2006-03-071-0/+1
| |
| * r13989: Fix for Coverity bug #45 and associated spoolss RPC_BUFFERJeremy Allison2006-03-071-7/+22
| | | | | | | | | | | | problems. Ensure that if the parse succeeds on UNMARSHALL we have a valid (although possibly empty) RPC_BUFFER returned. Jeremy.
| * r13987: Fix Coverity bug # 74. This tool is good...Volker Lendecke2006-03-071-0/+1
| | | | | | | | | | | | Thanks, Volker
| * r13984: Fix Coverity bug # 98Volker Lendecke2006-03-071-1/+3
| |
| * r13983: Fix Coverity bug # 111Volker Lendecke2006-03-071-0/+1
| |
| * r13981: Fix Coverity bug # 138Volker Lendecke2006-03-071-1/+1
| |
| * r13980: Fix Coverity bug # 63. Jeremy, could you take a look at this?Volker Lendecke2006-03-071-5/+16
| | | | | | | | | | | | Thanks, Volker
| * r13979: We've dereferenced my_methods already, so there's no point in ↵Volker Lendecke2006-03-071-1/+1
| | | | | | | | | | | | | | | | checking for != NULL. Coverity #149. Volker
| * r13978: Here is why it's essential to use SAFE_FREE instead of free.Jeremy Allison2006-03-071-6/+6
| | | | | | | | | | | | | | | | If we use free(data.dptr) and then the subsequent tdb_open fails in _reg_perfcount_get_counter_data() then data.dptr is left as a non-zero pointer that has been freed. This would cause it to be reused later on. Coverity bug #162. Jeremy.
| * r13975: Re-fix Coverity #156 - I had left the hidden arg. inconsistentJeremy Allison2006-03-073-5/+6
| | | | | | | | | | between Realloc and realloc_array. Jeremy.
| * r13971: Fix Coverity bugs #209 - #213 - it detected mistakesJeremy Allison2006-03-071-56/+67
| | | | | | | | | | | | | | in the pointer aliasing once realloc could change a pointer. This was in the bugzilla.samba.org database as #687 but we never figured out what it was ! Jeremy.
| * r13968: fix typo, caught by GuentherJim McDonough2006-03-071-1/+1
| |
| * r13965: Make sure we always reset the userAccountControl bits when re-joiningGünther Deschner2006-03-071-1/+1
| | | | | | | | | | | | with an existing account. Guenther
| * r13958: Fix Coverity Bug # 141Volker Lendecke2006-03-071-1/+1
| |
| * r13957: Based on patch from Richard Renard <richard.renard@idealx.com>:Jim McDonough2006-03-071-15/+18
| | | | | | | | | | Fix machine accounts (should not have valid shells) and users with no home directory (were getting previous user's directory).
| * r13955: Fix Coverity ID 139.Volker Lendecke2006-03-071-1/+1
| | | | | | | | | | | | | | Not a bug in the strictest sense, more a clarification. This whole routine assumes new_gid != NULL anyway, so there's no point in checking. Volker
| * r13951: Fix Coverity Bug #163.Volker Lendecke2006-03-071-28/+0
| | | | | | | | | | | | This code was not used anyway :-) Volker
| * r13950: Fix Coverity bug #168Volker Lendecke2006-03-071-0/+1
| |
| * r13948: Fix the build. Remove rpcclient.h include.Jim McDonough2006-03-071-1/+0
| |
| * r13947: Use tabs instead of spaces for indention.Lars Müller2006-03-071-3/+3
| |
| * r13946: Link pam_smbpass with the required object files. Fix bug #3565.Lars Müller2006-03-071-1/+2
| |
| * r13945: Move display_sec.c to lib/ (as suggested by Volker).Günther Deschner2006-03-072-4/+4
| | | | | | | | Guenther
| * r13916: Fix Coverity bug #29. Looks like my code. I wonder how much there is ↵Volker Lendecke2006-03-071-0/+1
| | | | | | | | | | | | | | | | still lurking... Volker
| * r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison2006-03-0755-481/+562
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | realloc can return NULL in one of two cases - (1) the realloc failed, (2) realloc succeeded but the new size requested was zero, in which case this is identical to a free() call. The error paths dealing with these two cases should be different, but mostly weren't. Secondly the standard idiom for dealing with realloc when you know the new size is non-zero is the following : tmp = realloc(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } However, there were *many* *many* places in Samba where we were using the old (broken) idiom of : p = realloc(p, size) if (!p) { return error; } which will leak the memory pointed to by p on realloc fail. This commit (hopefully) fixes all these cases by moving to a standard idiom of : p = SMB_REALLOC(p, size) if (!p) { return error; } Where if the realloc returns null due to the realloc failing or size == 0 we *guarentee* that the storage pointed to by p has been freed. This allows me to remove a lot of code that was dealing with the standard (more verbose) method that required a tmp pointer. This is almost always what you want. When a realloc fails you never usually want the old memory, you want to free it and get into your error processing asap. For the 11 remaining cases where we really do need to keep the old pointer I have invented the new macro SMB_REALLOC_KEEP_OLD_ON_ERROR, which can be used as follows : tmp = SMB_REALLOC_KEEP_OLD_ON_ERROR(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } SMB_REALLOC_KEEP_OLD_ON_ERROR guarentees never to free the pointer p, even on size == 0 or realloc fail. All this is done by a hidden extra argument to Realloc(), BOOL free_old_on_error which is set appropriately by the SMB_REALLOC and SMB_REALLOC_KEEP_OLD_ON_ERROR macros (and their array counterparts). It remains to be seen what this will do to our Coverity bug count :-). Jeremy.
| * r13914: Fix Coverity bug #151.Volker Lendecke2006-03-071-1/+1
| | | | | | | | | | | | | | I think this is actually a false warning, but as I've seen it with high gcc warning levels, lets fix it :-) Volker