search for: numparamet

Displaying 5 results from an estimated 5 matches for "numparamet".

Did you mean: numparams
2015 Aug 27
2
gallium state tracker calls calloc for 0 sizes arrays ?
...and since I suspected memory corruption replayed it using ElectrFence + glretrace, this finds a 0 sized array allocation at src/mesa/state_tracker/st_glsl_to_tgsi.cpp: 5565: if (proginfo->Parameters) { t->constants = (struct ureg_src *) calloc(proginfo->Parameters->NumParameters, sizeof(t->constants[0])); And if I protect the code against that one, another one at 5618: t->immediates = (struct ureg_src *) calloc(program->num_immediates, sizeof(struct ureg_src)); With the regular glibc malloc these both succeed as it actually returns a valid memory...
2015 Aug 27
2
[Mesa-dev] gallium state tracker calls calloc for 0 sizes arrays ?
...> it using ElectrFence + glretrace, this finds a 0 sized array >> allocation at src/mesa/state_tracker/st_glsl_to_tgsi.cpp: 5565: >> >> if (proginfo->Parameters) { >> t->constants = (struct ureg_src *) >> calloc(proginfo->Parameters->NumParameters, >> sizeof(t->constants[0])); >> >> And if I protect the code against that one, another one at 5618: >> >> t->immediates = (struct ureg_src *) >> calloc(program->num_immediates, sizeof(struct ureg_src)); >> >> With the regular g...
2001 Dec 28
1
(patch) memory leak in loadparm.c
...s structure describes a single service. If you update this, be + * sure to update init_globals below! */ typedef struct { @@ -179,6 +180,7 @@ static int iNumServices = 0; static int iServiceIndex = 0; static BOOL bInGlobalSection = True; +static BOOL bsDefaultInitialized = False; #define NUMPARAMETERS (sizeof(parm_table) / sizeof(struct parm_struct)) @@ -297,6 +299,28 @@ #ifdef LOG_DAEMON Globals.syslog_facility = LOG_DAEMON; #endif + if (!bsDefaultInitialized) { + bsDefaultInitialized = True; +#define maybe_init(x) if (sDefault.x != NULL) sDefault.x = strdup(sDefault.x) + maybe_...
2013 Apr 23
2
Help: Where can I find the code for 'C_Cdqrls'?
Dear all, I’m not sure if it is O.K. to ask this question here. But where can I find the code for the function ‘C_Cdqrls’ which is called by the R function ‘lsfit‘. Thank you all. Sorry for being naïve if so. -------------------- Ziqiang Zhao 2013-04-23 [[alternative HTML version deleted]]
2015 Aug 27
3
[Mesa-dev] gallium state tracker calls calloc for 0 sizes arrays ?
...his finds a 0 sized array >>>> allocation at src/mesa/state_tracker/st_glsl_to_tgsi.cpp: 5565: >>>> >>>> if (proginfo->Parameters) { >>>> t->constants = (struct ureg_src *) >>>> calloc(proginfo->Parameters->NumParameters, >>>> sizeof(t->constants[0])); >>>> >>>> And if I protect the code against that one, another one at 5618: >>>> >>>> t->immediates = (struct ureg_src *) >>>> calloc(program->num_immediates, sizeof(struct...