Google
  Web www.spinics.net

visualPrivates problem: it's not initialized

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi,
    in file glxvisuals.c, function init_visuals():
 
    static Bool init_visuals(int *nvisualp, VisualPtr *visualp, VisualID *defaultVisp, int ndepth, DepthPtr pdepth, int rootDepth)
 
 
    in this function, code segment :
 
    if (numConfigs == 0) {
         memcpy(pNewVisualConfigs, FallbackConfigs, NUM_FALLBACK_CONFIGS * sizeof(__GLXvisualConfig));
         memset(pNewVisualPriv, 0, NUM_FALLBACK_CONFIGS * sizeof(void *));
    }
    else {
        /* copy driver's visual config info */
        for (i = 0; i < numConfigs; i++) {
            pNewVisualConfigs[i] = visualConfigs[i];
            pNewVisualPriv[i] = visualPrivates[i];
        }
    }
 
 
    use S3 driver, will go into "else" path, but in my machine visualPrivates is 0x0X0, and
    pNewVisualPriv[i] = visualPrivates[i] will cause segmentation fault because visualPrivates[0] is not alloctate memory, so where the pointer visualPrivates is initialized in Xorg7.1?
 
 
Thanks
Jeff
 
 



LOGO 把爱心注入牛奶,共同凝聚这份力量
快来参加蒙牛免费赠奶爱心行动
_______________________________________________
xorg mailing list
xorg@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/xorg

[X Forum]     [Devices]     [XFree86]     [XFree86 Newbie]     [Site Home]     [IETF Annouce]     [Security]     [Fontconfig]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Video for Linux]     [Linux RAID]     [Linux Resources]

Powered by Linux