[Fixed]Can't load example files from start page since 0.19.18194

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
wmayer
Site Admin
Posts: 14623
Joined: Thu Feb 19, 2009 10:32 am

Re: Can't load example files from start page since 0.19.18194

Postby wmayer » Fri Sep 13, 2019 9:21 am

This is not just a simple bug but IMO a very serious security issue. For more details see here: https://forum.freecadweb.org/viewtopic. ... 51#p333951
wmayer
Site Admin
Posts: 14623
Joined: Thu Feb 19, 2009 10:32 am

Re: Can't load example files from start page since 0.19.18194

Postby wmayer » Fri Sep 13, 2019 11:13 am

This is a regression caused by git commit 5e42d4830 because the passed char pointer of a std::string is never null but maybe empty and this wasn't checked in the Document::addObject() method.

Thus, for old projects no valid view provider type could be determined. This is fixed now with: git commit b17bda5a2
User avatar
sgrogan
Posts: 5241
Joined: Wed Oct 22, 2014 5:02 pm

Re: Can't load example files from start page since 0.19.18194

Postby sgrogan » Fri Sep 13, 2019 10:01 pm

wmayer wrote:
Fri Sep 13, 2019 11:13 am
This is fixed now with: git commit b17bda5a2
Thanks wmayer! You are the best.

OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18213 (Git)
Build type: Release
Branch: master
Hash: 22babc09954ac6fda9135ee71d68550921659b1c
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)