Bug 4218 - Printing routines need to check for possible NULL variables in expressions
Printing routines need to check for possible NULL variables in expressions
Status: RESOLVED FIXED
Product: PIDL
Classification: Unclassified
Component: ndr
svn
Other Linux
: P3 normal
: ---
Assigned To: Jelmer Vernooij
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-10 13:12 UTC by Jelmer Vernooij
Modified: 2007-01-09 18:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jelmer Vernooij 2006-11-10 13:12:29 UTC
pidl needs to check whether variables used in expressions attribute bodies (for example in switch_is(), length_is(), size_is()) can be NULL. If they can, it needs to add a check to the generated code to not use the expression if one of these variables is NULL.

This could easily be implemented using a companion function to ParseExpr() that simply returns a list of variables that can be NULL.
Comment 1 Jelmer Vernooij 2007-01-09 18:47:03 UTC
Fixed in r20638.