Module: wine
Branch: master
Commit: 9fa27f3be3f45a211aec7cb0d56a8d3ddf1eb65b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9fa27f3be3f45a211aec7cb0d…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com>
Date: Sun Nov 12 17:55:09 2006 +0100
rsaenh: Move type-check before len-check (Coverity).
---
dlls/rsaenh/rsa.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/rsaenh/rsa.c b/dlls/rsaenh/rsa.c
index 4d6cd03..00a65e5 100644
--- a/dlls/rsaenh/rsa.c
+++ b/dlls/rsaenh/rsa.c
@@ -62,12 +62,6 @@ int rand_prime(mp_int *N, long len)
{
int type;
- /* allow sizes between 2 and 256 bytes for a prime size */
- if (len < 16 || len > 8192) {
- printf("Invalid prime size!\n");
- return CRYPT_INVALID_PRIME_SIZE;
- }
-
/* get type */
if (len < 0) {
type = LTM_PRIME_BBS;
@@ -78,6 +72,12 @@ int rand_prime(mp_int *N, long len)
/* Original LibTomCrypt: type = 0; */
}
+ /* allow sizes between 2 and 256 bytes for a prime size */
+ if (len < 16 || len > 8192) {
+ printf("Invalid prime size!\n");
+ return CRYPT_INVALID_PRIME_SIZE;
+ }
+
/* New prime generation makes the code even more cryptoish-insane. Do you know what this means!!!
-- Gir: Yeah, oh wait, er, no.
*/
Module: wine
Branch: master
Commit: 7311e9fc8e50531af8b0ca6edc0b1f77a4aabfaa
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7311e9fc8e50531af8b0ca6ed…
Author: Stefan Dösinger <stefandoesinger(a)gmx.at>
Date: Sun Nov 12 12:08:42 2006 +0100
wined3d: Fix a comment.
---
dlls/wined3d/vertexbuffer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/vertexbuffer.c b/dlls/wined3d/vertexbuffer.c
index aeccdab..820309f 100644
--- a/dlls/wined3d/vertexbuffer.c
+++ b/dlls/wined3d/vertexbuffer.c
@@ -184,7 +184,7 @@ inline BOOL WINAPI IWineD3DVertexBufferI
* -> New semantics that have to be converted appear
* -> The position of semantics that have to be converted changes
* -> The stride of the vertex changed AND there is stuff that needs conversion
- * -> (If a vertex buffer is bound and in use assume that nothing that needs conversion is there)
+ * -> (If a vertex shader is bound and in use assume that nothing that needs conversion is there)
*
* Return values:
* TRUE: Reload is needed
Module: wine
Branch: master
Commit: d6f8284c2f9aa8042f13fe47c59bd419b34e4245
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d6f8284c2f9aa8042f13fe47c…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Mon Nov 13 12:53:09 2006 +0100
server: Fix list corruption caused by previous change.
---
server/process.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/process.c b/server/process.c
index b66e492..217710a 100644
--- a/server/process.c
+++ b/server/process.c
@@ -517,7 +517,7 @@ static void terminate_process( struct pr
{
struct list *ptr;
- if (skip) /* move it to the end of the list */
+ if (skip && skip->process == process) /* move it to the end of the list */
{
assert( skip->state != TERMINATED );
list_remove( &skip->proc_entry );