* reed-solomon lib
@ 2005-08-01 15:48 Simon Sudler
2005-08-01 16:22 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Simon Sudler @ 2005-08-01 15:48 UTC (permalink / raw)
To: Linux Kernel Mailing List
Hi folks,
I'm working with the reed-solomon lib. Since i use a
RS(255,191,64) code, i found a strange limitation in
the reed_solomon.c:
194: /* Sanity checks */
if (symsize < 1)
return NULL;
if (fcr < 0 || fcr >= (1<<symsize))
return NULL;
if (prim <= 0 || prim >= (1<<symsize))
return NULL;
if (nroots < 0 || nroots >= (1<<symsize) || nroots > 8)
return NULL;
in line 201 the nroot are limited to max 8. I checkt the
original code from Phil Karn (http://cache.qualcomm.com/code/fec/)
in witch is no limitation. After a closer look a the original
code, i couldn't find any relevant difference exept for
the line above.
After removing of the "nroots > 8" my code was working fine...
perhaps someone was to carful to avoid a errors with the kmalloc
function in rs_init.
Cheers,
Simon
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: reed-solomon lib
2005-08-01 15:48 reed-solomon lib Simon Sudler
@ 2005-08-01 16:22 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2005-08-01 16:22 UTC (permalink / raw)
To: Simon Sudler; +Cc: Linux Kernel Mailing List
On Mon, 2005-08-01 at 17:48 +0200, Simon Sudler wrote:
> if (nroots < 0 || nroots >= (1<<symsize) || nroots > 8)
> return NULL;
....
> After removing of the "nroots > 8" my code was working fine...
> perhaps someone was to carful to avoid a errors with the kmalloc
> function in rs_init.
Honestly, I don't remember why it is there. Definitely not due to the
kmalloc. It can be safely removed. I'll fix this.
tglx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-01 16:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-01 15:48 reed-solomon lib Simon Sudler
2005-08-01 16:22 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox