Ticket #5707: VRML - 2 crashes with corner cases

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!
Post Reply
User avatar
Kunda1
Veteran
Posts: 13447
Joined: Thu Jan 05, 2017 9:03 pm

Ticket #5707: VRML - 2 crashes with corner cases

Post by Kunda1 »

issue #5707: VRML 2 crashes with corner cases
Forum thread for discussion.
Last edited by Kunda1 on Mon Jun 06, 2022 7:54 pm, edited 1 time in total.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13447
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #5707: VRML - 2 crashes with corner cases

Post by Kunda1 »

@kwahoo do you mind testing to this if issue #5707 is still relevant?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
kwahoo
Posts: 649
Joined: Fri Nov 29, 2013 3:09 pm
Contact:

Re: Ticket #5707: VRML - 2 crashes with corner cases

Post by kwahoo »

Kunda1 wrote: Mon Jun 06, 2022 7:55 pm @kwahoo do you mind testing to this if issue #5707 is still relevant?
Unfortunately, I'm not able to download the files from Mantis (0 byte size) and they are not migrated to Github :(
User avatar
Kunda1
Veteran
Posts: 13447
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #5707: VRML - 2 crashes with corner cases

Post by Kunda1 »

kwahoo wrote: Tue Jun 07, 2022 7:08 pm Unfortunately, I'm not able to download the files from Mantis
The files don't work in
https://tracker.freecad.org/view.php?id=3070 ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
adrianinsaval
Veteran
Posts: 5369
Joined: Thu Apr 05, 2018 5:15 pm

Re: Ticket #5707: VRML - 2 crashes with corner cases

Post by adrianinsaval »

Many files in the mantis tracker don't work
wmayer
Founder
Posts: 19965
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Ticket #5707: VRML - 2 crashes with corner cases

Post by wmayer »

Unfortunately, I cannot find a copy of the files on my disk any more but according to the file names it should be possible to restore the defects of their contents:
  • corrupts memory - name too long.wrl -- a VRML2 file with a very long name of a DEF
  • corrupts memory - name too long (VRML 1).wrl -- the same for a VRML1 file
  • crash - recursive USE.wrl -- a recursive USE definition for a VRML2 file
  • crash - recursive USE (VRML 1).wrl -- the same for a VRML1 file
  • crash - recursive PROTO.wrl -- a recursive PROTO definition
wmayer
Founder
Posts: 19965
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Ticket #5707: VRML - 2 crashes with corner cases

Post by wmayer »

crash - recursive PROTO.wrl:

Code: Select all

#VRML V2.0 utf8
#
# Test case for recursive PROTO definitions. Undefined per specification, but the program should not lifelock in any case.
#
#  T H I S   F I L E   S H O U L D   N O T   R U N


PROTO Recursive [] {
	Group {
		children [
			Recursive { }
		]
	}
}

Recursive { }
crash - recursive USE.wrl:

Code: Select all

#VRML V2.0 utf8
#
# Test case for “USE” of a node in itself (undefined per specification). The program must not lifelock under any circumstances.
# In this test, the recursion is second-level (catches naïve implementations).
#
#   S H O U L D   D I S P L A Y   A   G R E E N   S P H E R E !


DEF recursive Group{
	children [

		Group{
			children [

				USE recursive

			]
		}

	]
}
crash - recursive USE (VRML 1).wrl:

Code: Select all

#VRML V1.0 ascii


DEF recursive Group {
	Group {
		USE recursive
	}
}
So far the crash is fixed for: crash - recursive USE.wrl and crash - recursive USE (VRML 1).wrl
Attachments
corrupts memory - name too long.zip
(1.02 KiB) Downloaded 9 times
Post Reply