- 23 1月, 2013 27 次提交
-
-
由 John Ferlan 提交于
test1: Need to check for bitmap before using as well as free it properly test2: need to check for bitsString2 before using it.
-
由 John Ferlan 提交于
Turns out the fix for VIR_FREE made this particular Coverity tag unnecessary, so I'm removing it.
-
由 John Ferlan 提交于
A followon to commit id: 68dceb63 - if iface->iname is NULL, then neither virNetDevOpenvswitchRemovePort() nor virNetDevVethDelete() should be called. Found by Coverity.
-
由 John Ferlan 提交于
-
由 John Ferlan 提交于
-
由 John Ferlan 提交于
-
由 Daniel P. Berrange 提交于
Although the nwfilter driver skips startup when running in a session libvirtd, it did not skip reload or shutdown. This caused errors to be reported when sending SIGHUP to libvirtd, and caused an abort() in libdbus on shutdown due to trying to remove a dbus filter that was never added
-
由 Eric Blake 提交于
When building with static analysis enabled, we turn on attribute nonnull checking. However, this caused the build to fail with: ../../src/util/virobject.c: In function 'virObjectOnceInit': ../../src/util/virobject.c:55:40: error: null argument where non-null required (argument 1) [-Werror=nonnull] Creation of the virObject class is the one instance where the parent class is allowed to be NULL. Making things conditional will let us keep static analysis checking for all other .c file callers, without breaking the build on this one exception. * src/util/virobject.c: Define witness. * src/util/virobject.h (virClassNew): Use it to force most callers to pass non-null parameter.
-
由 Alon Levy 提交于
Adds a "ram" attribute globally to the video.model element, that changes the resulting qemu command line only if video.type == "qxl". <video> <model type='qxl' ram='65536' vram='65536' heads='1'/> </video> That attribute gets a default value of 64*1024. The schema is unchanged for other video element types. The resulting qemu command line change is the addition of -global qxl-vga.ram_size=<ram>*1024 or -global qxl.ram_size=<ram>*1024 For the main and secondary qxl devices respectively. The default for the qxl ram bar is 64*1024 kilobytes (the same as the default qxl vram bar size).
-
由 John Ferlan 提交于
The Coverity static analyzer was generating many false positives for the unary operation inside the VIR_FREE() definition as it was trying to evaluate the else portion of the "?:" even though the if portion was (1). Signed-off-by: NEric Blake <eblake@redhat.com>
-
由 Peter Krempa 提交于
-
由 Peter Krempa 提交于
The count of vCPUs for a domain is extracted as a usingned long variable but is stored in a unsigned short. If the actual number was too large, a faulty number was stored.
-
由 Peter Krempa 提交于
This patch fixes the following issues in the cpu-stats virsh command: 1) Renames label failed_params to no_memory to match coding style 2) Uses proper typed parameter cleanup in error paths to avoid leaks 3) Adds a ret variable and simplifies error labels 4) Changes error message to a slightly more descriptive one and gets rid of the newline at the end: Before: $ virsh cpu-stats tr error: Failed to virDomainGetCPUStats() error: Requested operation is not valid: domain is not running After: $ tools/virsh cpu-stats tr error: Failed to retrieve CPU statistics for domain 'tr' error: Requested operation is not valid: domain is not running
-
由 John Ferlan 提交于
In the error path, the test buffer is free'd, but due to how the free routine is written the 'test' buffer pointer does not return to the caller as NULL and then the free'd buffer address is returned to the caller.
-
由 John Ferlan 提交于
The 'msg' free is handled via virNetMessageFree() already.
-
由 John Ferlan 提交于
It was possible to call VIR_FREE in cleanup prior to initialization
-
由 John Ferlan 提交于
It was possible to call VIR_FREE in cleanup prior to initialization
-
由 John Ferlan 提交于
It was possible to call VIR_FREE in cleanup prior to initialization.
-
由 John Ferlan 提交于
It was possible to call VIR_FREE in error prior to initialization.
-
由 John Ferlan 提交于
It was possible to call VIR_FREE in cleanup prior to initialization
-
由 John Ferlan 提交于
It was possible to call VIR_FREE in cleanup prior to initialization.
-
由 John Ferlan 提交于
It was possible to call VIR_FREE in cleanup prior to initialization
-
由 John Ferlan 提交于
It was possible to call VIR_FREE in cleanup prior to initialization
-
由 John Ferlan 提交于
It was possible to call VIR_FREE in cleanup prior to initialization
-
由 John Ferlan 提交于
It was possible to call VIR_FREE in error prior to initialization
-
由 John Ferlan 提交于
Resolve a couple of instances where variables were not initialized prior to potential VIR_FREE call in cleanup path.
-
由 John Ferlan 提交于
If there was more than one inotify_event found in the read/while loop, then only the last event found would have been queued.
-
- 22 1月, 2013 13 次提交
-
-
由 Claudio Bley 提交于
-
由 John Ferlan 提交于
The local redefinition of PED_PARTITION_PROTECTED results in the error but is not a problem especially if the built code doesn't have the latest definitions.
-
由 John Ferlan 提交于
On error, the 'tapfd' in networkStartNetworkVirtual() is synonymous with 'macTapIfName' and will be closed in the appropriate error path.
-
由 John Ferlan 提交于
Upon successful return of virNetClientStreamEventAddCallback() the allocated cbdata field will be freed by virNetClientStreamEventRemoveCallback() as cbOpaque using the free function remoteStreamCallbackFree().
-
由 John Ferlan 提交于
This avoids "Event negative_returns: A negative constant "-1" is passed as an argument to a parameter that cannot be negative.". The called function uses -1 to determine whether it needs to traverse all the hostdevs.
-
由 John Ferlan 提交于
Coverity misses the nuance of VIR_FREE(privkey) setting privkey = NULL when if (!(virFileExists(privkey))) is true and thus declares the code dead.
-
由 John Ferlan 提交于
The old cpu bitmap setting algorithm causes a couple of complaints which have been tagged.
-
由 John Ferlan 提交于
The use of switch statements inside a bounded for loop resulted in some false positives regarding the "default:" label which cannot be reached since each of the other case statements use the possible for loop values. A [dead_error_begin] was added before the default label. Commit id ebdbe25a adjusted the algorithm and the caller guarantees that the 'params' will have a '_' in the name being searched. Add the [returned_null] tag to the two instances.
-
由 John Ferlan 提交于
The use of switch statements inside a bounded for loop resulted in some false positives regarding the "default:" label which cannot be reached since each of the other case statements use the possible for loop values.
-
由 John Ferlan 提交于
The various _for_i loops with both u.s.car and u.s.cdr were being reported as COPY_PASTE errors by Coverity. This just quiets those messages.
-
由 John Ferlan 提交于
Commit id a994ef2d changed the mechanism to store/update the default security label from using disk->seclabels[0] to allocating one on the fly. That change allocated the label, but never saved it. This patch will save the label. The new virDomainDiskDefAddSecurityLabelDef() is a copy of the virDomainDefAddSecurityLabelDef().
-
由 John Ferlan 提交于
-
由 John Ferlan 提交于
-