Quotes in .spec file cause core dump
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
New
|
High
|
Chris Hillery |
Bug Description
For example, take the spec file:
test/rbkt/
that contains:
Result: $RBKT_SRC_
Error: http://
If you change the Result line such that the path is with quotes like:
Result: "$RBKT_
and run:
ctest -R datetime-
the testdriver dumps core:
#0 0x00007fff8fba3d46 in __kill ()
#1 0x00007fff89699df0 in abort ()
#2 0x00007fff92274a17 in abort_message ()
#3 0x00007fff922723c6 in default_terminate ()
#4 0x00007fff88ec0887 in _objc_terminate ()
#5 0x00007fff922723f5 in safe_handler_caller ()
#6 0x00007fff92272450 in std::terminate ()
#7 0x00007fff922735b7 in __cxa_throw ()
#8 0x00007fff9136241b in std::__
#9 0x00007fff9138bfd4 in std::string::substr ()
#10 0x00000001023735a4 in Specification:
#11 0x000000010236b1a1 in Specification:
#12 0x0000000102368263 in main (argc=2, argv=0x7fff5d89
It means that the code calls string::substr() with a value that is out of range.
Not sure if Chris or Sorin is better. Feel free to reassign.
Also, for whoever fixes this, PLEASE move all that code out of the .h file and into the .cpp file.