Skip to content

Commit

Permalink
Fixed CORE-2612 - Connection lost immediatelly after compiling proced…
Browse files Browse the repository at this point in the history
…ure with RPAD system function
  • Loading branch information
asfernandes committed Aug 31, 2009
1 parent 39ba5a7 commit 82b6f6a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/jrd/cmp.cpp
Expand Up @@ -1915,6 +1915,12 @@ void CMP_get_desc(thread_db* tdbb, CompilerScratch* csb, jrd_nod* node, DSC* des
dsc* targetDesc = FB_NEW(*tdbb->getDefaultPool()) dsc();
args.push(targetDesc);
CMP_get_desc(tdbb, csb, *p, targetDesc);

// dsc_address is verified in makeFunc to get literals. If the node is not a
// literal, set it to NULL, to prevent wrong interpretation of offsets as
// pointers - CORE-2612.
if ((*p)->nod_type != nod_literal)
targetDesc->dsc_address = NULL;
}

DataTypeUtil dataTypeUtil(tdbb);
Expand Down

0 comments on commit 82b6f6a

Please sign in to comment.