Linux-mtd Archive on
 help / color / Atom feed
* Re: [PATCH] ubifs: Fix potentially out-of-bounds memory access inubifs_dump_node
       [not found] ` <>
@ 2020-01-13  8:30   ` Richard Weinberger
  0 siblings, 0 replies; only message in thread
From: Richard Weinberger @ 2020-01-13  8:30 UTC (permalink / raw)
  To: liu song11; +Cc: Richard Weinberger, linux-mtd, linux-kernel, jiang xuexin

----- Ursprüngliche Mail -----
> Although this will change a bit more, but the function of dumping data is
> retained,
> I will modify it as suggested and try to submit a patch, thanks.

Sure but the most common and important case is good then.
in fs/ubifs/file.c we use a fixed buffer size of UBIFS_MAX_DATA_NODE_SZ
to deal with data nodes. So, dumping is safe.

If we don't know the buffer size for minor cases, not a big deal.
Still better than giving up the feature completely.


Linux MTD discussion mailing list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <,,>
     [not found] ` <>
2020-01-13  8:30   ` [PATCH] ubifs: Fix potentially out-of-bounds memory access inubifs_dump_node Richard Weinberger

Linux-mtd Archive on

Archives are clonable:
	git clone --mirror linux-mtd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mtd linux-mtd/ \
	public-inbox-index linux-mtd

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone