After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 612845 - [typefindfunctions] crash in strncasecmp() on windows
[typefindfunctions] crash in strncasecmp() on windows
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.28
Other Windows
: Normal normal
: 0.10.29
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-14 04:36 UTC by David Hoyt
Modified: 2010-03-15 18:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gsttypefindfunctions.c patch (673 bytes, patch)
2010-03-14 04:36 UTC, David Hoyt
none Details | Review
gsttypefindfunctions.c patch (673 bytes, patch)
2010-03-15 18:32 UTC, David Hoyt
committed Details | Review

Description David Hoyt 2010-03-14 04:36:12 UTC
Created attachment 156095 [details] [review]
gsttypefindfunctions.c patch

Playing an h.264 stream crashed on line 2484 of gsttypefindfunctions.c when compiling with MSVC. The attached patch prevented the crash, but I'm unsure if it's correct or not.

The movie I attempted to play is available at:

http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_h264.mov
Comment 1 Tim-Philipp Müller 2010-03-14 14:44:39 UTC
Do you have any idea why this crashes? Does the system strncasecmp() not like non-ASCII/locale characters? There's nothing wrong with your patch of course, but it would be nice to know what the problem is.
Comment 2 David Hoyt 2010-03-15 16:10:29 UTC
Actually, one of our devs said this may be a bug he introduced and may not be an issue at all w/ the GStreamer code. Sorry about that. I'll revert our copy back to the released version of the code and retest and then file again or reopen this one if it's really an issue.
Comment 3 Sebastian Dröge (slomo) 2010-03-15 16:20:19 UTC
Ok, let's close this one for now then :)
Comment 4 David Hoyt 2010-03-15 18:32:09 UTC
Created attachment 156205 [details] [review]
gsttypefindfunctions.c patch
Comment 5 David Hoyt 2010-03-15 18:32:22 UTC
Reverting our local changes and then compiling with the release version resulted in a compile error. I've proposed a new patch with the changes.
Comment 6 Tim-Philipp Müller 2010-03-15 18:49:01 UTC
commit cfa8de336c2a1693fa53dc2fe727a53b7c5f82cb
Author: David Hoyt <dhoyt@llnl.gov>
Date:   Mon Mar 15 18:45:13 2010 +0000

    typefind: use g_ascii_strncasecmp() instead of strncasecmp()
    
    g_ascii_strncasecmp() is more portable and likely more robust as
    well (with random binary data as input).
    
    Fixes #612845.