Migrants found by the BBC last week drifting off the coast ofThailand have been rescued by Indonesian fishermen.
A BBC reporter who reached their boat says it is filthy and insect-infested.
In a significant change, Malaysia and Indonesia agreed to offer temporary shelter to 7,000 stranded migrants. Thailand also said it would no longer push back the stranded boats.
Nearly 3,000 Bangladeshi and Rohingya migrants have come to shore in recent weeks, but many have been turned away.
Malaysia's Foreign Minister Anifah Aman announced the policy change after emergency talks in Kuala Lumpur with his Indonesian and Thai counterparts on the growing humanitarian crisis.
Thailand earlier failed to join its neighbours in their commitment to shelter the migrants but later said it too would no longer push back boats stranded in its territorial waters. It also said it would continue to provide humanitarian assistance.