[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-616-g3a590ee |
Date: |
Mon, 08 Aug 2011 11:26:57 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via 3a590ee72055366634cce51bdcd8762aebf6aa10 (commit)
from f65ac5d9dddcb9ca2a9f2c3e61067f69b727fe8c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=3a590ee72055366634cce51bdcd8762aebf6aa10
commit 3a590ee72055366634cce51bdcd8762aebf6aa10
Author: Benjamin Wolsey <address@hidden>
Date: Mon Aug 8 12:57:25 2011 +0200
Fix assertion.
No data is fine, only negative lengths are bad; a jpeg data size of 0 is
possible. Both Gnash and the pp show a red rectangle (for absent image) in
this case.
diff --git a/libcore/swf/DefineBitsTag.cpp b/libcore/swf/DefineBitsTag.cpp
index c1c9c85..cf8b80e 100644
--- a/libcore/swf/DefineBitsTag.cpp
+++ b/libcore/swf/DefineBitsTag.cpp
@@ -82,7 +82,7 @@ class StreamAdapter : public IOChannel
endPos(maxPos),
currPos(startPos)
{
- assert(endPos > startPos);
+ assert(endPos >= startPos);
}
virtual ~StreamAdapter() {}
@@ -135,7 +135,7 @@ public:
/// Get an IOChannel from a gnash::SWFStream
static std::auto_ptr<IOChannel> getFile(SWFStream& str,
unsigned long endPos) {
- std::auto_ptr<IOChannel> ret (new StreamAdapter(str, endPos));
+ std::auto_ptr<IOChannel> ret(new StreamAdapter(str, endPos));
return ret;
}
};
-----------------------------------------------------------------------
Summary of changes:
libcore/swf/DefineBitsTag.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-616-g3a590ee,
Benjamin Wolsey <=