You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sending malformed JSON entities to the context.Orion_LD (compiled with an Address Sanitizer) V1 API can ultimately result in a illegal READ access on a zero page in /opt/fiware-orion/src/lib/ngsi/StatusCode.cpp:
From the marked line over here
/opt/fiware-orion/src/lib/serviceRoutines/postUpdateContext.cpp:447
* ****************************************************************************
*
* foundAndNotFoundAttributeSeparation -
*
* Examine the response from mongo to find out what has really happened ...
*
*/
static void foundAndNotFoundAttributeSeparation(UpdateContextResponse* upcrsP, UpdateContextRequest* upcrP, ConnectionInfo* ciP)
{
ContextElementResponseVector notFoundV;
[...]
//
// If nothing at all in response vector, mark as not found (but not if DELETE request)
//
if (ciP->method != "DELETE")
{
if (upcrsP->contextElementResponseVector.size() == 0)
{
if (upcrsP->errorCode.code == SccOk)
{
upcrsP->errorCode.fill(SccContextElementNotFound, upcrP->entityVector[0]->id); <-----------------
}
}
}
Looking to the "Recorded responsible test case" I'm not sure in which sense this JSON is malformed... Could you elaborate so I can try to reproduce, please?
Looking to the "Recorded responsible test case" I'm not sure in which sense this JSON is malformed... Could you elaborate so I can try to reproduce, please?
In other words, how I can generate the request (e.g. with a curl command) that is causing the crash.
Check my reasoning in #3603
Sending malformed JSON entities to the context.Orion_LD (compiled with an Address Sanitizer) V1 API can ultimately result in a illegal READ access on a zero page in
/opt/fiware-orion/src/lib/ngsi/StatusCode.cpp
:From the marked line over here
The crash occurs finally occurs here:
Crash
Recorded responsible test case
The text was updated successfully, but these errors were encountered: